Skip to content

Inside Abandoning a feature

Ilia edited this page Nov 9, 2026 · 1 revision

Work that was decided against is cleared away by sclaude drop. done is the clean-up after success: the PR is merged, the code is in main, all that is left is sweeping. Here it is the opposite, and an abandoned feature has five traces: the worktree, the local branch, the branch in origin, the pull request, the issue. Forgetting any of them means leaving rubbish that will be remembered in a month and not understood.

One command for all five — but not one question for all five, as in done. There the human agrees to a clean-up after the merge, where there is nothing to lose; here every "yes" destroys something nobody asked to have destroyed, and their costs differ: a worktree with uncommitted work cannot be recovered by anything, whereas a closed issue can be reopened. So each action is asked about separately, and refusing one does not cancel the rest: sometimes the branches need tearing down while the issue stays. Every question comes first and the work after it, in order from the irreversible to the reversible: the feature's questions go to its Telegram topic, which goes with the worktree, and a person who changes their mind halfway stops with everything still in place. The pull request is asked about before the branch in origin, and closed before it is deleted: deleting a pull request's head branch closes it on GitHub, so a pull request kept open keeps its branch.

What exactly the feature has, the script works out before the first question and shows as a table: asking "remove the worktree?" without showing that a branch, a PR and an issue stand behind it means leading the person blind. It asks GitHub about the PR's and the issue's state rather than trusting state.json: they may have been closed by hand, and offering to close what is closed is noise people learn to answer without looking. The PR and the issue are not deleted but closed: deleting a PR through the API is not possible at all, and a closed pair remains the history of the decision not to do this work. The issue is closed as "not planned" — in a milestone's report what was abandoned must not look like what was done.

In the menu it is an item of the feature's action list ("Drop the feature", behind the checkbox in the terminal, behind ⚙️ in Telegram), not of the top list: adjacent items, one of which continues the work while the other destroys it, are a mistake waiting for its chance (see "The menu and the action list").


Generated from docs/sclaude.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally