Skip to content

Inside Starting from an issue

Ilia edited this page Nov 9, 2026 · 1 revision

The cycle starts from a choice rather than from a name thought up on the spot. The list's top item is to type a name by hand, and below it are the repository's open issues: first those assigned to whoever gh is authenticated as, then all the rest. The arrow keys move through the list, Enter chooses, q cancels. The chosen issue suggests a branch name (34-sample-site-and-multiple) — the suggestion is edited right in the input line, and a title in a non-Latin script, of which nothing survives slugify, comes down to issue-27.

The issue's number lives in .sclaude/local/feature/state.json until the cycle ends: step 1 gets the issue itself — the body, the comments, the parent and the links — in the prompt already, and step 3 ends the pull request's body with a Closes #N line, by which GitHub closes the issue on the merge. No network, no gh, no open issues — there simply will be no list, and the old question about a name remains; a failed fetch says so first ("Could not fetch the issue list"), an empty repository does not. With no feature in progress the list opens anyway, with the name and config, the project's settings, which the menu would otherwise offer: there they are a key away rather than a command.

The list and the suggestion are sclaude/lib/github/issue_list.py's, which the bot's Mini App uses too: it offers the same choice on a phone and starts sclaude new with the answers as options — --issue <n> with the branch name, --blocked-ok once the blockers were shown, --create-issue or --no-issue for a name — so cmd_new asks none of it again (new_from_args).


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

Clone this wiki locally