Channels
How a session's question reaches you and your answer gets back, and the two channels egon has, the local page and Telegram.
Sessions run headless and cannot ask you directly. The core is the postman: sessions never talk to a messenger themselves.
How a question travels
Every session ends with a structured status:
| Status | Content | The core |
|---|---|---|
done |
the result | goes on |
question |
the question, its context, options if there are any | asks you over the channels |
stop |
the number of a stop condition and the evidence | carries out the stop |
- The core sends the question with the FR, the stage and the options to every channel. The FR is Waiting for input, and the queue waits.
- The first valid answer counts. Valid means: from the sender this channel knows. The other channels show that it is answered.
- The core continues the same session with your answer, marked as a quote.
- Question and answer go into the pull request description and the FR's implementation notes.
- If nobody answers within
limits.answer_hours(24 by default), that is stop condition 11: the FR moves toblocked/with the open question.
Waiting costs no usage: the session has ended, only the core waits. A new run waits for the same open question instead of asking again, and the deadline counts from the first time it was asked.
An answer clarifies, it does not change a requirement
If a test or acceptance requirement would have to change, the session reports stop condition 2, and you change the FR.
Setting channels
Channels are set per machine, in .claude/egon.local.md. Several may run at once; a notice goes to all of them, and so does a question.
notify_repeat: 60
channels:
local: {}
telegram:
user_id: "123456789"
bot: my_repo_bot
local: a page on your Mac
A small page on 127.0.0.1, served by the run: the queue, stage and status of each FR, fix rounds, pull requests, measurements and open questions with a field for the answer. It lives only as long as the run.
- Address. A free port per run, or a fixed one with
channels.local.port(1024 to 65535). Two repositories never collide. - Access. A random token per run, only in a link the run prints in the terminal (at the start and with every question) and opens once in your browser. The page trades it for a cookie and from then on needs that cookie, and a form key from the page itself for every answer. The token never appears in the run state, a log, a notification or a process argument.
- Notifications.
channels.local.notify:auto(the default),terminal-notifier,terminal,osascriptoroff. Withauto, egon usesterminal-notifierif it is installed, otherwise a terminal notification in Ghostty, iTerm or WezTerm, otherwiseosascript. It rings the terminal bell always. - A notifier that fails (it ends with an error or takes longer than 10 seconds) does not stop the run, and it is reported: once per run, the terminal says that notifications fail and why, and that the page and the terminal still show everything. With
auto, a failingterminal-notifierfirst hands over toosascriptfor the rest of the run. - Trying it out.
egon notify-testrings the bell, sends a test notification and shows which way notifications take. When the notifier fails, it says so, names the other ways (osascript,terminal,off) and ends with an error. Whenterminal-notifierfailed, also whenautowent on withosascript, it shows the way to its permission. After a test notification that went out, it names a Focus: if the 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; turn the Focus off or allow the notifier in it. - terminal-notifier's permission. macOS asks for it only for an app it knows, and a
terminal-notifierfrom Homebrew is not where macOS looks; until macOS has asked, every notification fails and nothing shows.egon doctorreads the permission fromterminal-notifier -diagnose, which only reads. When macOS has never asked, doctor names the commands that get it: register the app with LaunchServices (lsregister -fwith the app's path), send one notification, allow it, and set the alert style to Banners in System Settings > Notifications > terminal-notifier. When macOS refuses, doctor namestccutil reset UserNotificationwith the app's bundle ID, which lets macOS ask again./egon:setupruns the commands after a yes; if macOS still does not ask, setnotify: osascript. - Language. Page, notices and terminal speak the
languageof.claude/egon.local.md, otherwise the profile's; English and German are built in. - The page itself sends
Content-Security-Policy: default-src 'self', loads nothing from elsewhere and escapes everything that comes from a session or an FR. Its stylesheet, fonts and icons come with the plugin, from a fixed list.
telegram: on your phone
A bot you create with @BotFather. The run polls it with long polling, so it needs no public address.
- One bot per repository and machine. Telegram lets only one process poll a bot; two runs on one bot throw each other off.
- The token is in the Keychain (service
egon-telegram-token, account<owner>/<repo>), stored by you in your own terminal. egon removes it from every text it passes on. - Only you count. Only messages from
user_id, in a private chat, are taken; everything else is dropped. You answer with a button or by replying to the question. - No pause between polls. Telegram lets a bot confirm a button press only for a short while. So with Telegram set, the run asks all channels at once while a question is open and adds no pause of its own. If a press still comes too late, the bot confirms your answer with a plain message instead.
- What leaves your Mac. Notices carry only the FR and the link to the pull request; details of errors and stops stay local, in
egon status. Questions carry their text, options and context, shortened. Never a diff, a log or command output. - Setting it up. Send the bot
/start, then runegon telegram link: it shows the bot and who sent/start, so you can confirm your user ID before it goes into.claude/egon.local.md./egon:setupwalks you through it.
Which channel when
The trust in an answer depends on the channel. A session runs as the same macOS user as the local page and could, in principle, call the page itself. Telegram brings an identity a session cannot fake.
| Operation | Channel | Why |
|---|---|---|
| attended | local |
you sit at the Mac; nothing to set up; the gap is accepted, as described in the security model |
| autonomous | telegram |
you are not at the machine, and the sender cannot be faked |
Notices
| Event | When |
|---|---|
question |
a session asks |
stopped |
a stop condition was carried out |
waiting_approval |
a code owner's review, merge: manual, or a base without protection |
failed |
an FR is Failed |
merged |
an FR is merged, with its owner checklist if it has one |
halted |
the queue halted after stop condition 9 |
report |
the output of the profile's report command |
Every notice names the FR, the event, the repository and the next step: answer in the channel, a link to the pull request, or egon resume. While the state lasts, egon repeats it every notify_repeat minutes.