Work with egon
How a day with egon goes, from the idea to the merged FR, which command you use when, and how egon reaches you through the local page and notifications.
You decide what gets built and you merge what needs a person. egon does the work in between: it builds, tests, has the work reviewed and merges where it may. This page follows you through that work and names the moments you act. It assumes egon is set up; if not, start with Set up and first run.
The cycle
| Step | Who acts |
|---|---|
Think the FR through with Claude: /egon:new questions your idea in rounds, looks up in the repository what it can, and writes the FR into draft/ with the next free ID (egon id). See Write a feature request. |
you, with Claude |
Check it with egon validate and egon next. |
you |
Move it to ready/ with /egon:ready <id>: it opens the pull request that moves the FR, checked as it will lie there, and you merge it. A run reads the FRs and the profile only from origin/<base>, never from your working tree or a branch: the FR counts once that pull request is merged. |
you |
Start egon run in a terminal of its own, at the root of the repository. |
you |
Check the base. Before it builds, egon runs verify on the base, once per base commit. |
egon |
Build. egon reserves the branch fr/<id>, a build session writes the tests first, then the code; the core runs its checks, a review session reviews, and egon opens the pull request. |
egon |
| Answer when a session asks: on the local page, or in Telegram if you set it up. The session goes on with your answer. | you |
| Run the checks of the pull request, and ask for a code owner's review where the base requires one. | GitHub |
Merge. egon merges when it may merge by itself and the merge gate holds. Otherwise the FR waits for approval: with merge: manual, or an owner checklist, you merge. |
egon, or you |
| After the merge, GitHub runs the checks of the merge commit, egon waits for them, removes the worktree and the branches, fast-forwards your checkout to the base when it is on that branch, has no uncommitted changes to tracked files and can be fast-forwarded, and sends the owner checklist again. You do what it names for after the merge. | GitHub, egon, then you |
Then the run takes the next FR in ready/, or watches until there is one.
Which command when
egon … runs in a terminal at the root of the repository; /egon:… is a skill in Claude Code.
| Command | When |
|---|---|
/egon:setup |
once per repository and machine, and whenever egon doctor reports something to fix; it goes through the findings with you, and through every setting of the profile |
egon doctor |
before the first run, and when something seems off; it checks machine and repository and changes nothing |
egon doctor --fix |
when egon doctor or the run names it: it repairs what keeps egon run from running and needs no decision, such as the missing worktree of an FR in progress, then checks as without it |
egon notify-test |
to see whether notifications reach you and which way they take |
egon app-key import <file> |
with identity: app: to store the GitHub App's private key in the Keychain |
egon telegram link |
when you set up Telegram: after you sent the bot /start, to confirm your user ID |
/egon:new |
in Claude Code, to write an FR with Claude, from an idea to a file in draft/ |
egon id |
to see the next free FR ID, one above every ID on the base, in your checkout and on the branches of origin; /egon:new uses it for a new draft |
egon validate |
after you wrote or changed an FR, before its pull request to ready/ |
egon next |
to see which FRs can be taken, which wait and which are refused |
/egon:ready <id> |
in Claude Code, to move a draft, or a blocked FR you changed, to ready/: it checks the FR, and on your yes egon ready <id> opens the pull request. You merge it |
/egon:run |
in Claude Code, to see how to start the run; without the shortcut egon, it shows the full path. It never starts the run itself |
egon run |
to start working the queue, in a terminal of its own |
egon run --once |
to work the queue and end where the run would otherwise watch |
egon watch |
in another terminal, to follow the sessions of the FR in progress step by step; egon watch <id> for a given FR. It only reads, and Ctrl-C ends it |
/egon:status |
in Claude Code, to have where egon stands and the next step explained |
egon status |
to see the lock, a halt, verify on the base and every FR in progress |
egon resume |
after a halt (stop condition 9): once the base is fixed and the failed jobs ran again |
egon resume <id> |
after you fixed the cause of a Failed FR |
egon resume --accept-red |
to lift a halt while the checks are still red, for a red that only a later FR can fix |
egon update |
when a new release of egon is out, and after its pull request is merged, once in each clone; it first shows where the clone stands: the version installed here, the pin and the newest release |
egon cleanup |
to list what finished FRs left behind, worktree folders and local fr/ branches, and what stays and why; egon cleanup --yes removes it |
The other commands are for egon's own run and the sessions it starts, not for you. They are in the CLI reference.
While a run works
The run works FR by FR. When nothing can be taken, an FR waits for an approval or a merge, or the base is red, it does not end: it watches. It says so once, looks at GitHub again every two minutes and goes on by itself when something changed, such as a new FR in ready/, a merge, an approval or a new commit on the base. Look again now on the local page ends the pause at once. When a session asks, it waits for your answer. It ends on a halt, when an FR fails, on a refusal, or with Ctrl-C. egon run --once, or watch: false in .claude/egon.local.md, ends it where it would watch instead.
Ctrl-C is safe: egon ends the sessions it started and leaves no lock behind, and the next run picks up where this one was.
A run holds the lock of the repository as long as it runs. egon update, egon resume, egon doctor --fix and egon cleanup --yes take the same lock, so while a run holds it they are refused and name the process that holds it. End the run with Ctrl-C first. After a halt or a Failed FR, the run has ended already. egon watch, egon status, egon cleanup without --yes and egon ready take no lock and work beside a run: you can add FRs while it watches.
The run belongs in a terminal of its own
Not inside Claude Code: a run can take hours, starts its own sessions and waits for answers.
The local page
When channels.local is set in .claude/egon.local.md, the run serves a page on your Mac.
- Open it. The run opens it once in your browser at the start. The terminal shows the link with its key, at the start and again with every question: open that link when the tab is gone. The page trades the key for a cookie; a browser without it gets a hint to open the link from the terminal. Each run has a new key.
- What it shows. Whether the run works or watches, and while it watches, why and when it looks next. Open questions, with their context, the options and the time to answer before. Each FR in progress with a link to its file, its stage, its fix round and its pull request; the session that runs now, with model, effort and its last steps, and the
egon watch <id>that follows it; tokens, cost and duration. The notices, newest first, also those of earlier runs; a notice that a newer one about the same FR follows, or for notices without an FR a newer one without, folds into Earlier. The page and the terminal speak English. The page reloads by itself when something changes. - Answer a question. Pick one of the options or answer in your own words (your own words win over a picked option), then send. egon goes on with the session that asked as soon as you answer. The first answer counts, whichever channel it came from; the other channels show that it is answered. Answer before the time the question shows: without an answer the FR stops with stop condition 11.
- It lives only while
egon runruns. With watching, that is as long as the run waits for the next thing to do. After the run, the page is gone. - It approves nothing. What you send from the page is an answer to an open question, or Look again now while the run watches. Approvals and merges happen on GitHub.
Address, access, tokens and its security are in the reference: Channels.
Notifications
egon tells you when something needs you or has happened: a question, an FR stopped, an FR failed, the queue halted, waiting for approval, and an FR merged. The bell and the notifications on your Mac come with the local page: when channels.local is set in .claude/egon.local.md, the terminal of the run rings its bell each time, and a notification follows the way that channels.local.notify sets:
auto, the default:terminal-notifierwhen it is installed, otherwise a terminal notification (OSC 9) in Ghostty, iTerm or WezTerm, otherwiseosascript.terminal-notifier,terminalorosascript: that way only.off: no notification; the bell still rings.
Without channels.local, there is no bell and no notification: the run only prints these events to its terminal, and sends them to Telegram if you set it up.
A notification carries only egon's own text and the FR's number, never a session's text, in your language (language in .claude/egon.local.md, otherwise the profile's), as Telegram does. Clicked, terminal-notifier opens the local page, without its key. Other notices, such as nothing to take, a pull request closed without a merge, or a lock taken over from a process that is gone, show on the page and in the terminal without a notification.
Reminders. While a question is open, egon reminds you every notify_repeat minutes, 60 by default, until it is answered or its time is up: in the terminal of the run, among the notices of the local page and in Telegram if you set it up, without another notification on your Mac.
When a notification does not show:
egon notify-testrings the bell, sends a test notification and shows which way it took. Withauto, whenterminal-notifierfails, it says so, shows how to let macOS allow it and goes on withosascript. Only when no way gets the notification out, as with a notifier you chose yourself that fails, does it name the other ways and end with an error.egon doctorreads whether macOS allowedterminal-notifier. When macOS has never asked, doctor names the commands that make it ask; you allow notifications and set the alert style to Banners. When macOS refused, it names the command that lets macOS ask again./egon:setupruns them after a yes; if macOS still does not ask, setnotify: osascript.- A Focus delivers silently. If the test notice shows only in Notification Center, without a banner or a sound, a Focus is on, and nothing a notifier reads tells it. Turn the Focus off or allow the notifier in it.
A notifier that fails does not stop the run: the terminal says so once, and the page and the terminal still show everything. With auto, a failing terminal-notifier hands over to osascript for the rest of the run. The ways, the events and Telegram are in the reference: Channels.
When egon stops or waits
What a stop means and every stop condition are on Stop conditions. What you do:
- A stop. egon moves the FR to
blocked/with the reason, in a blocking pull request of its own; an open pull request of the FR is closed first. The blocking pull request goes through the same merge as any other: egon merges it only when it may merge by itself and its gate holds. Otherwise, as withmerge: manual, it waits for you: you merge it, and the run completes the block. Then change the FR and move it fromblocked/back toready/through a pull request:/egon:ready <id>opens it, without the FR's## Blocked, and you merge it; it starts anew. egon never moves it back on its own. - A halt. A check after the merge failed, or a run on the base after the merge is red: stop condition 9. The queue halts and the run ends. Fix the base. When checks of the merge commit went red, the halt names the commands that re-run the failed GitHub Actions jobs; you run them, egon never does. Then
egon resume: it looks at those checks again first and refuses while one is red or still running.egon resume --accept-redlifts the halt anyway, for a red that only a later FR can fix. - A red base before a build is not a halt. egon runs
verifyon the base once per base commit before it builds. When it is red, no FR starts and the run watches. Fix the base through a pull request; the new commit is checked on its own, withoutegon resume. - A Failed FR. A session crashed, a time limit hit, a check ended without a result: the FR is Failed, and the run ends. While an FR is Failed,
egon runrefuses to start and says how to go on. Fix the cause, runegon resume <id>, thenegon run. The counters stay. - Waiting for approval. The pull request is ready and waits for a person, and the run watches. When it waits for a code owner's review, approve it on GitHub, and egon runs the merge gate again and merges. With
merge: manual, a base without protection or a required check, or a base that requires a code owner's review but keeps approvals after a push (dismiss_stale_reviews_on_pushoff), you merge: egon does not merge by itself, even after an approval. With an owner checklist, also undermerge: auto, the pull request and the notice carry the checklist: do what it names for before the merge, then merge. While the run watches, the notice says that egon goes on after the approval or the merge, and it does. Afteregon run --once, or withwatch: false, the run has ended: start it again after your approval or merge.
A new release of egon
In a terminal of your own, at the root of the repository, with no run holding the lock:
egon update
It first shows where the clone stands, the version installed here, the pin on the base and the newest release, then does the next step and names what is left in Next: lines.
- A release newer than the pin:
egon updateopens a pull request that raises the pin in.claude/settings.jsonand changes nothing else..claude/belongs to a code owner: a code owner merges it, egon never does. - After the merge, run
egon updateagain, in each clone: it installs the pinned version and checks the install. The shortcutegonthen runs the new version by itself. Until thenegon runrefuses in that clone, and a run that is still going ends when it next looks at the base: the base pins another version than the one it runs.
The details, and the way from a version before egon update, are on Set up and first run.