Codex
Coordigent registers itself in ~/.codex/config.toml and adds hooks that deliver messages to running Codex agents, in every repo.
Set it up
Install Coordigent once per machine. It finds Codex when ~/.codex exists or codex is on your PATH, and wires it at user level. Install Codex later and it is wired on its own.
A repo joins your project on its own when a Codex agent starts in it. Codex agents are read only in repos connected on this machine; a teammate's connection doesn't count.
Restart any Codex agent that was already running, to pick up the tools.
For a team that commits Codex's files, run this inside the repo:
coord connect --repo-files --clients codexWithout --clients, --repo-files writes them if the repo has a .codex/ directory, or if you say yes to its one question about the other agent apps here.
What gets written
On this machine
One table in ~/.codex/config.toml:
[mcp_servers.coordigent]
command = "/Users/you/.tower/bin/coord-mcp"
args = []
env_vars = ["COORDIGENT_TOKEN", "COORDIGENT_SERVER_URL", "COORDIGENT_REPO", "COORDIGENT_CLIENT", "TOWER_TOKEN", "TOWER_SERVER_URL", "TOWER_DIR"]
[mcp_servers.coordigent.env]The edit is textual: only Coordigent's tables are added, so your tables, their order and comments stay. An existing [mcp_servers.coordigent] is kept unless its binary no longer exists. An old [mcp_servers.tower] that runs tower-mcp is removed. No token is stored: coord-mcp reads your login from ~/.tower/config.json.
Codex filters the environment it passes to MCP servers. env_vars lets Coordigent's settings through.
~/.codex/hooks.json gets the four hooks listed below (yours are kept). Edits are captured from Codex's rollout log. The hooks deliver handoffs, messages and before-edit warnings.
In the repo, with --repo-files
.codex/config.toml: the same server, found through$HOMEso every teammate's file matches, with the repo inCOORDIGENT_REPO. Codex reads it only once you trust the project..codex/hooks.json(yours are kept): -SessionStart: hands a new agent a pending handoff, the coordination rules, and the project's memory. With memory on, that is the block (notes from earlier agents, fenced, at most 2,000 characters; a could-not-load line when the daemon cannot answer in time). Oldercoordversions still get the context pack. -UserPromptSubmit: waiting messages and conflict warnings at the start of each turn. -PreToolUse(^apply_patch$): warns before a patch touches a held file. -PostToolUse: waiting messages during a turn.
An older install with only the first two gets the rest on the next --repo-files run or coord update.
--repo-files also writes Claude Code's repo files.
Only for Codex
coord install codex --usercoord install codex writes Codex's repo files without the rest of coord connect. --user writes ~/.codex/config.toml instead. Both print the matching codex mcp add coordigent command. Coordigent does not write AGENTS.md. coord update removes the Coordigent block from an old copy and leaves the rest of the file.
Update
coord updateGets the current coord and coord-mcp, refreshes capture hooks (adding missing events such as PreToolUse / PostToolUse) and restarts the daemon. Restart Codex to load the new coord-mcp.
Check it
coord doctorcodex mcp get coordigentcoord doctor shows codex with a ✓ and its config file, and a Hooks: line (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse), or none. A ✗ line names its fix.
In Codex, ask the agent to call coordigent_status. Its row is marked (you).
What works and what degrades
Codex supports MCP resources and none of the optional features: no prompts, sampling, elicitation, roots or server notifications. Coordigent does not need them.
- Files in use and conflicts. The daemon reads Codex's session log, so Codex agents show their edits like Claude Code agents.
PreToolUseonapply_patchwarns before a patch touches a held file. Codex's hooks start the daemon if it isn't running. - Messages.
PostToolUsedelivers during a turn.UserPromptSubmitcovers the next turn and edits outsideapply_patch. Messages also arrive as a⚠ COORD:banner on the next Coordigent tool result;coordigent_message_inboxreads the rest. - Idle chats. An idle Codex chat hears nothing until someone types. After two minutes of waiting messages, the daemon shows a desktop notification: "Codex 3f2a · widgets: 2 Coordigent messages waiting. Type anything in that chat to deliver them." At most one per chat every 10 minutes, none for the chat's own messages.
{"desktopNotifications": false}in~/.tower/preferences.jsonturns these and the other notifications off.
Remove
- This machine:
coord uninstall(--dry-runto preview). Keeps your hand edits. - One repo:
coord unenrollthere.
By hand, delete the [mcp_servers.coordigent] tables from ~/.codex/config.toml and the repo's .codex/config.toml, and the Coordigent hooks from both hooks.json files. If an older install left a Coordigent block in AGENTS.md or ~/.codex/AGENTS.md, delete the text between the <!-- coordigent:start --> markers.