Set up and first run
What egon needs, how /egon:setup sets up a repository and a machine, and how the first run goes.
egon runs attended: on your own Mac, in your own checkout, while you work. You start a run, egon works through the FRs in ready/, and it reaches you over a channel when it needs an answer or an approval.
What you need
- A Mac. egon keeps its tokens in the macOS Keychain and notifies through macOS.
- Node 22.18 or later. The core is TypeScript that Node runs directly, without a build step.
- Claude Code with a subscription, and a long-lived token from
claude setup-tokenin the Keychain. Sessions start only with this token. - The GitHub CLI,
gh, logged in. Withidentity: user, egon pushes, opens pull requests and merges with your login. - A repository on GitHub with a base branch. To let egon merge on its own (
merge: auto), the base must be protected and have at least one required check. If it requires a code owner's review, it must also dismiss approvals on a new push; otherwiseegon doctorreports an error andegon runrefusesmerge: auto.
Install the plugin
Each project pins egon to a release tag, so every clone runs the same version. The repository of egon is its own plugin marketplace, named egon.
1. Pin the release
Add the marketplace and the plugin to the project's .claude/settings.json. If the file exists already, add the two keys to it:
{
"enabledPlugins": {
"egon@egon": true
},
"extraKnownMarketplaces": {
"egon": {
"source": {
"source": "github",
"repo": "bmoers/egon",
"ref": "v0.1.2"
}
}
}
}The current release is v0.1.2.
Commit the file through a pull request. It is agent configuration, so give .claude/ to a code owner (/egon:setup proposes the CODEOWNERS lines).
2. Trust the folder
Open Claude Code in the repository and accept the trust dialog. Claude Code reads the marketplace from the project settings only in a folder you trust.
3. Install it in each clone
Enabling the plugin in the project settings does not install it, and claude plugin install alone does not know a marketplace that only the project settings declare. Everyone who works in the repository runs these two commands once, in its root:
claude plugin marketplace add bmoers/egon@v0.1.2 --scope project
claude plugin install egon@egon --scope projectThe first command writes the same declaration into .claude/settings.json again and may re-sort its keys; do not commit a change that only re-sorts them. Then run /reload-plugins in Claude Code, or start a new session. /egon:setup is now available.
A new release
Raise ref in .claude/settings.json through a pull request. Then run these two commands in each clone, with the new tag:
claude plugin marketplace add bmoers/egon@<new tag> --scope project
claude plugin update egon@egon --scope project
claude plugin marketplace update egon is not enough: it fetches the tag the machine registered first, not the raised one. marketplace add with the new tag points the registration at it, and plugin update installs it. Claude Code installs only a changed version from .claude-plugin/plugin.json, so every tag of egon carries a new version. egon doctor reports an error while the running version does not match the pinned tag.
Never in the user scope
A plugin enabled in your user settings overrides every pin. egon doctor reports it as an error.
Run /egon:setup
In Claude Code, in the repository:
> /egon:setup
The skill runs egon doctor, goes through its findings one by one, says what each fix is for and shows the exact command or change. It acts only after you said yes to exactly that fix.
- Tools. It installs what doctor names, such as
ghorterminal-notifier. For Node it asks how you manage versions first. - Notifications. macOS asks for
terminal-notifier's permission only for an app it knows, and the Homebrew folder is not where it looks. When doctor finds that macOS has never asked, setup runs the two commands doctor names, after a yes: it registers the app with LaunchServices (lsregister -f) and sends one notification, so macOS asks. You allow notifications and set the alert style to Banners in System Settings > Notifications > terminal-notifier. When macOS refuses, doctor namestccutil reset UserNotification, which lets macOS ask again. If macOS still does not ask, setup offersnotify: osascriptin.claude/egon.local.md. - Local files. It adds
.egon/and.claude/egon.local.mdto.git/info/exclude, never to.gitignore, and creates.claude/egon.local.mdfrom the template. It asks in which language egon should talk to you and whether the local page should run. - Profile. When the repository has no
.claude/egon.md, it creates one from the template with your base branch, where the FRs live, theverifycommand and the language. It leaves the file in the working tree: you commit it through a pull request. - CODEOWNERS. It proposes lines that give the agent configuration (
.claude/,CLAUDE.md,AGENTS.md,.mcp.json) to an owner you name, for the same pull request. - Rules for the base. It never changes them. With
merge: autoit shows thegh apicommands for a ruleset on the default branch: pull request, no required approvals, code owner review, approvals dismissed by a new push, the required check, strict, squash only, and a bypass for admins in the mode "pull requests only". It tells you what the dismissal costs: when the base moves after an approval, egon merges it in, and a code owner approves again; egon asks them. - GitHub App, when the profile says
identity: app: one app per account or organization, one private key per machine. If you have an app for that account already, you install it on this repository too. Otherwise it opens the form for a private app, filled in, under the organization when an organization owns the repository, else under your account. You create the app, install it on this repository only and store its key withegon app-key import <file>.egon doctorthen shows the key's fingerprint, to compare on the app's page under "Private keys". - Telegram, if you want questions on your phone. See Channels.
Some steps need a login or a hidden prompt, so you run them in a terminal of your own:
gh auth login
claude setup-token
security add-generic-password -U -a "$USER" -s egon-claude-token -w
Paste the token at the prompt of the last command, then set claude_token_created in .claude/egon.local.md to today's date. egon doctor warns 14 days before the token expires.
What setup never does
It never types, shows or reads back a token or key, never logs in for you, never pushes, approves or merges, never changes branch protection, and never enables a plugin in the user scope.
Check with egon doctor
egon doctor checks the machine and the repository and says how to fix each finding. It only checks; it changes nothing. It reads terminal-notifier's permission from terminal-notifier -diagnose, which only reads, and names the commands that get it (lsregister, tccutil). Run it until it reports no error. Two more checks are worth it once:
egon notify-testsends a test notification and shows which way notifications take. When the notifier fails, it says so and ends with an error; whenterminal-notifierfailed, it shows the way to its permission. If the test notice shows only in Notification Center, without a banner or a sound, a Focus is on: a Focus delivers silently, and nothing a notifier reads tells it.egon doctor --livestarts a tiny real session, for a few tokens.
The first run
-
Write an FR and move it to
docs/features/ready/through a pull request. Moving a file toready/is the handover to egon. See Write a feature request. -
Calibrate first. For the first FRs of a project, set
merge: manualin the profile: egon stops before the merge and you merge yourself. -
Start the run in a terminal of your own. In Claude Code,
/egon:runshows the exact command with the path of the plugin's version:<plugin root>/bin/egon runThe run opens its local page in the browser when
channels.localis set, asks there and notifies on your Mac. A notifier that fails does not stop the run: withnotify: auto, a failingterminal-notifierhands over toosascriptfor the rest of the run, and a notifier that still fails is reported once in the terminal. See Channels.
The run works FR by FR. It ends when nothing can be taken, when an approval is needed, when the queue halts or when an FR fails. While it runs, /egon:status in Claude Code shows where it stands. Stopping it with Ctrl-C is safe: the next run picks up where it was.
Do not start the run inside Claude Code
A run can take hours, starts its own sessions and waits for answers. It belongs in its own process.