Repository navigation
v0.2.0
tmag 0.2.0 lets people and agents act on the agents in tmux panes, not only see them, and lets agents work with each other.
Control surface
send,interrupt,requestandanswerwork the same for Claude Code and Codex, wherever a session runs. tmag picks the channel itself: the session's proven pane, the Codex daemon's control socket, or Claude Code's permission hook.- Every verb rechecks the session's state under its lock and delivers once. Its event records
fromandby. A channel that can't carry the verb is refused asunsupported. - Permission prompts become requests with ids. In Claude Code,
tmag answer-hookwaits beside the dialog, which stays on screen, and whoever answers first decides.@tmag-answer(on,agents,off) says who may answer. - Callers are proven from process ancestry. An agent never acts on its own session.
Agents working with each other
- New
tmag-peersplugin for each host, holding thepeersskill.prefix + M-ainstalls it;@tmag-peers offremoves it. - When an agent sends a prompt, tmag writes its first line (
[tmag] From …) from the proven caller. People's prompts get no such line, and no prompt may start with[tmag]itself. send --replyandtmag replylet an agent take its answer later as a prompt.tmag read ID --lastreads the reply that ended a session's last turn from the agent's transcript and keeps nothing.
Checked live with Claude Code 2.1.318 and Codex 0.166, in both directions.
Fixes
- The Codex plugin declares the 3 s timeout Codex allows
SessionEndandInterrupthooks, which removes two startup warnings.
Contract
tmag/v1 gains only optional fields: transcript, capabilities, requests and subagents on sessions; every state event now reports the whole session; caller in list --json; Halt and Answer events; and the refusals unsupported, idle, self and agent.
Updating
prefix + U updates the plugin, which fetches this binary on the next load. Then prefix + M-a brings the agent plugins to 0.2.0 and adds tmag-peers. Codex then asks you once to review tmag's changed hooks. Trust them in /hooks: until you do, they don't run.
Design records: ADR 0001, ADR 0002.
Full Changelog: v0.1.0...v0.2.0