Claude Code plugin
Feature requests in, reviewed and merged code out.
Write a feature request as a file in your repository. egon builds it tests first, has the change reviewed by a fresh session, merges it through the rules of your main branch, and stops only when a stop condition holds.
/egon:setupSet up egon
One conductor, three players
The code drives, the model judges. The core is a loop in TypeScript without a model: it runs the steps, the checks and the merge. Claude sessions decide what needs judgment: which FR, what code, whether a finding holds.
The core
Takes FRs from ready/, reserves a branch, starts the sessions, runs its own checks, pushes, opens the pull request, waits for CI and merges through the merge gate. Push, pull request and merge are its commands, never a session's.
Pick
When more than one FR can be taken, chooses one and gives the reason for the pull request. The core accepts the choice only from its own list.
Build
Writes the tests from the FR's test requirements first, in a commit of their own, then the code, in a worktree of its own. It never pushes.
Review
A fresh session without the build's conversation. It sees the FR, the diff and the check results, runs /code-review and /security-review, and weighs each finding against the FR.
- ready/0042-title.md
- reserve fr/0042
- build, tests first
- checks of the core
- review
- pull request and CI
- merge gate
- main
It stops when it should
egon never reads a requirement in its own favour. A session reports a stop condition with its number and evidence, and the core carries it out: the FR moves to blocked/ with the reason and what it takes to go on. A person brings it back.
1The FR is ambiguous, and a question does not resolve it
A session asks first, over a channel, and goes on with your answer. Only an answer that does not settle it stops the FR.
2A test or acceptance requirement of the FR would have to change
Even when an answer suggests it. The FR is the only yardstick, and only a person changes it.
6A path outside touches would have to change, or the branch changed the agent configuration
The branch may not touch .claude/, CLAUDE.md, AGENTS.md or .mcp.json either. Agent configuration is changed by people.
7The fix loop is exhausted
Findings go back to a new build session, two rounds by default. Then the FR stops instead of trying forever.
Rules in code and on GitHub, not in prompts
A session can be talked into things. So nothing that follows from a session is more than commits in its own worktree; everything else is checked by the core and by the rules of your main branch.
The core enforces
Reservation, scope against touches, fix rounds and the merge gate are tested code. What the core refuses does not happen.
GitHub has the last word
merge: auto works only with a protected main and a required check. If main requires a code owner's review, it must also dismiss approvals on a new push. egon squash-merges the commit it checked, never with --admin or a bypass.
Honest about the gap
Deny rules, the auto-mode classifier and an environment without GitHub logins keep sessions away from GitHub. A session that deliberately reads the Keychain gets past them. Read the security model.
Start with one feature request
Pin egon to a release tag in your repository and install the plugin in each clone. Then /egon:setup checks your machine and repository and sets up what is missing, one yes at a time. Put an FR into docs/features/ready/. /egon:run then shows the command that starts the run in a terminal of your own.
/egon:setup /egon:run