Profile reference
Two files configure egon, the profile of the repository and the values of one machine, which may only tighten the profile.
Both files are Markdown with YAML frontmatter. Every key is optional; what you leave out has the default shown in the templates below.
.claude/egon.md: the profile
The profile belongs to the repository. The core reads it from origin/<base>, never from a branch, so you change it through a pull request, like CLAUDE.md. Put it under CODEOWNERS with the rest of the agent configuration.
---
# The profile of egon for this repository (ADR-003). The core reads it from
# origin/<base>, never from a branch; change it through a pull request, like CLAUDE.md.
# Every key is optional; the values below are the defaults unless the comment says otherwise.
base: main
paths:
features: docs/features # FRs in <features>/<status>/NNNN-title.md
builds: off
reviews: off
test_env: none # Phase 1: none only
commands: # run through `egon exec`, never from an FR (ADR-004)
setup: "" # tools and dependencies in the worktree
verify: "" # all deterministic gates; required before the first FR
pr: "" # checks with PR data (EGON_PR_TITLE, ...)
post_merge: "" # check on the base after the merge (ADR-006)
report: "" # after every merged FR of the owner
lockfiles: [] # allowed besides touches when new_dependencies names something
weakening_patterns: [] # patterns that switch a gate off (biome-ignore, @ts-expect-error, ...)
env_pass: [] # variables profile commands and sessions get from the machine
merge: auto # auto | manual; auto needs a protected base with a required check
identity: user # user | app (app: Phase 1 step 10)
language: en # language of everything written into the repository and GitHub
permission_mode: auto # auto | acceptEdits | dontAsk; bypassPermissions only autonomous
sessions: # model and effort per role
pick: { model: sonnet, effort: medium }
build: { model: opus, effort: high }
review: { model: opus, effort: high }
build_allowed: # what an FR may choose with its frontmatter field `build`
model: []
effort: []
review: # level of /code-review (ADR-004 2.6)
code_review: auto # auto | low | medium | high
low_max: 50 # auto: up to this many changed lines low
medium_max: 400 # auto: up to this many medium, above high
limits:
fix_rounds: 2
session_minutes: 120
command_minutes: 30
ci_minutes: 60
post_merge_minutes: 30
answer_hours: 24
---
Instructions for the sessions that hold only for this project. They add to egon's
rules and to CLAUDE.md; they never relax them.
The text below the frontmatter holds instructions for the sessions that hold only in this project. They add to egon's rules and to CLAUDE.md; they never relax them.
Base and paths
| Key | Default | Meaning |
|---|---|---|
base |
main |
the branch egon builds on and merges into |
paths.features |
docs/features |
where the FRs live, in <features>/<status>/NNNN-title.md; no trailing / |
paths.builds, paths.reviews |
off |
must stay off for now; evidence goes into the pull request and the FR's notes |
test_env |
none |
only none is built; verify is the test |
Commands
egon knows no test framework, only commands and their exit codes. Sessions call them through egon exec <name>, so environment and time limit always hold. The core never reads a command from an FR.
| Key | Runs | Notes |
|---|---|---|
commands.setup |
tools and dependencies in the worktree | |
commands.verify |
every deterministic gate: style, types, tests, coverage, licences, secrets | required before the first FR; the core runs it on the base once per base commit, and red means no FR starts |
commands.pr |
checks that need pull request data | after the review, before the push; gets EGON_PR_TITLE, EGON_BASE_SHA, EGON_PR_AUTHOR |
commands.post_merge |
a check on the base after the merge | after all check runs of the merge commit are done; gets EGON_MERGE_SHA |
commands.report |
a report after every merged FR of the owner | its output goes to you over the channels |
Each command runs in the FR's worktree with EGON_FR and EGON_WORKTREE, under limits.command_minutes, in an environment the core builds anew: no GitHub token, no Git credentials, no SSH agent, no cloud logins. What verify runs is code from the FR.
Rules for files and environment
| Key | Default | Meaning |
|---|---|---|
lockfiles |
[] |
lockfiles that may change besides touches when the FR names something in new_dependencies |
weakening_patterns |
[] |
patterns that switch a gate off, such as biome-ignore or @ts-expect-error; every new line that matches goes to the review |
env_pass |
[] |
variables of your machine that commands and sessions get in addition to the base set; names that would bring back a credential or override a value of the core are rejected |
Merge and identity
| Key | Default | Values |
|---|---|---|
merge |
auto |
auto: the core merges after the merge gate. manual: it stops before the merge and you merge. auto needs a protected base with a required check; where a code owner must approve, a new push must also dismiss approvals. Otherwise egon waits for you instead. |
identity |
user |
user: your GitHub login. app: a GitHub App you set up with /egon:setup; it opens and merges the pull requests. |
language |
en |
a code such as en or de-CH: the language of everything egon writes into the repository and to GitHub |
Sessions
| Key | Default | Meaning |
|---|---|---|
permission_mode |
auto |
auto, acceptEdits, dontAsk or bypassPermissions, from loose to strict: bypassPermissions, auto, acceptEdits, dontAsk. bypassPermissions is refused in attended operation. Deny rules hold in every mode. |
sessions.pick |
sonnet, medium |
model and effort of the session that chooses the FR |
sessions.build |
opus, high |
model and effort of the session that writes tests and code |
sessions.review |
opus, high |
model and effort of the session that reviews |
sessions.build_allowed |
empty lists | which model and effort an FR may choose with its build field; an empty list allows nothing |
Effort is one of low, medium, high, xhigh, max. An FR can change only the build session, only within build_allowed, and never the review.
Review
| Key | Default | Meaning |
|---|---|---|
review.code_review |
auto |
the level of /code-review: low, medium, high, or auto by the size of the diff |
review.low_max |
50 |
with auto: up to this many changed lines, low |
review.medium_max |
400 |
with auto: up to this many, medium; above, high |
Changed lines are counted without the features path and the lockfiles. Within one FR the level never goes down. /security-review runs always.
Limits
| Key | Default | What happens at the limit |
|---|---|---|
limits.fix_rounds |
2 |
stop condition 7: the fix loop is exhausted |
limits.session_minutes |
120 |
the session is stopped; the FR is Failed |
limits.command_minutes |
30 |
the command is stopped; the FR is Failed |
limits.ci_minutes |
60 |
how long the core waits for CI on the pull request |
limits.post_merge_minutes |
30 |
how long the core waits for the checks on the base after a merge |
limits.answer_hours |
24 |
stop condition 11: a question stayed unanswered |
.claude/egon.local.md: this machine
The values of one machine. It is not in Git: /egon:setup adds it to .git/info/exclude. It may tighten the profile, never loosen it. The core reads it once when a run starts; if it changes during the run, the next session does not start and the FR is Failed.
---
# Values of this machine for egon (ADR-003 2.2). Not in git: /egon:setup puts
# this file into .git/info/exclude. It may only tighten the profile, never loosen it.
operation: attended # attended | autonomous (autonomous: Phase 3)
# language: de # what the core says to you; default: the profile's language
claude_token: keychain # the long-lived token from `claude setup-token`, in the Keychain
claude_token_created: YYYY-MM-DD
# permission_mode: dontAsk # only stricter than the profile
# app_id: "123456" # the GitHub App, with identity: app (ADR-006)
# app_key: keychain # its key: egon app-key import <file>
notify_repeat: 60 # minutes between reminders while a question is open
channels:
local: {} # the page on 127.0.0.1; notify: auto | terminal-notifier | terminal | osascript | off
# telegram: # one bot per repository and machine; token in the Keychain
# user_id: "123456789" # the one person whose answers count: egon telegram link
# bot: my_repo_bot
---
| Key | Default | Meaning |
|---|---|---|
operation |
attended |
attended: on your machine, in your checkout. autonomous, for a separate macOS user, is not built yet; egon refuses it. |
language |
the profile's | the language egon talks to you in: the local page, notices, the terminal |
claude_token |
must be keychain: the token from claude setup-token, in the Keychain under egon-claude-token. Required. |
|
claude_token_created |
the date you made the token, YYYY-MM-DD; egon doctor warns 14 days before it expires |
|
permission_mode |
the profile's | only a stricter mode than the profile's |
app_id, app_key |
with identity: app: the App ID in quotes, and keychain for the key you stored with egon app-key import <file> |
|
notify_repeat |
60 |
minutes between reminders while a question is open |
channels |
which channels run: local, telegram. See Channels. |