Agents
Which agents toge works with, and how your comments reach them.
toge plugs into each agent the way that agent is meant to be extended: hooks, plugins or extensions. No terminal tricks.
| Agent | What toge install adds | How your comments reach it |
|---|---|---|
| Claude Code | Hooks in settings.json, and a skill | A background hook wakes Claude, even when it’s idle |
| Codex | Hooks in hooks.json, a note in AGENTS.md | Codex can’t be woken, so its turn waits while you review; press Done to let it go on |
| OpenCode | A plugin, a note in AGENTS.md | The plugin sends a new prompt once the session is idle |
| Pi | An extension, a note in AGENTS.md | The extension starts a new turn |
| oh-my-pi | The same extension | Same as Pi |
Any other agent that can run shell commands can use toge pull to fetch waiting comments.
The commands an agent uses
toge open report.html --title "Checkout latency RCA" # put a page up for review
toge reply c_1a2b3c4d "Added p95 next to p99" # answer a thread
toge pull # fetch comments, if there are no hooks
toge done p_12ab34cd # end the review from the agent's side
Agents can’t resolve threads or publish anything. Only you can, from the page.
Which session gets the comments
The session that ran toge open gets the page’s comments. Claude Code and Codex tell toge which
session they are. OpenCode and Pi can’t, so the first of their sessions to ask from the page’s
folder claims it; if you run two in one folder, pass --session to be sure.
If a comment doesn’t get through
toge keeps a comment until the agent confirms it has it. If the session was closed or the connection dropped, the comment goes to the next session listening, within a minute. You may now and then see the same comment twice; you won’t lose one.
- Claude Code’s background hook listens for up to 23 hours after a turn. After that, comments come along with your next message.
- Codex’s hook holds its turn for up to about 55 minutes. Comments sent after that come along with your next message.
Adding an agent
Each agent is one small driver. See
internal/agents/README.md.