agent-coord
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-coordCheck the coordination board."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-coord
A tiny, zero-dependency coordination layer that lets multiple coding agents — Claude Code, Codex, or anything that speaks MCP — work on the same repository at the same time without clobbering each other.
It solves a specific, real problem: when two agents run in parallel (e.g. each in
its own git worktree), they edit the same files, claim the same task, and
generally trip over each other. agent-coord gives them a shared board to
coordinate through:
🔒 File locks — reserve repo-relative globs before editing; others see them.
🧩 Task claims — claim a plan/task id so the other agent picks something else.
📣 Status messages — a lightweight broadcast channel between agents.
🛡️ Hard enforcement on Claude Code — a
PreToolUsehook blocks edits to a file another agent has locked, and auto-claims files Claude touches.
No SDK, no npm install, no database. The board is a single JSON file
(~/.agent-coord/board.json) guarded by an atomic, multi-process-safe mutex.
How it works
Claude Code ──┐ ┌── Codex
(MCP client) │ stdio MCP ┌────────────┐ │ (MCP client)
├───────────────▶│ server.mjs │◀───┤
PreToolUse │ └─────┬──────┘ │ (cooperative:
hook (guard) │ │ │ calls the tools)
blocks edits ─┘ ┌─────▼──────┐ │
to locked files │ board.json │◀───┘
│ (shared) │
└────────────┘Every agent points at the same board file, which lives outside any worktree — so locks made in worktree A are visible in worktree B.
Locks are keyed on the repo-relative path (+ a project id derived from the git top-level dir), so
src/cart.tsis the same lock in every worktree of the repo, and unrelated repos never collide.Claude Code gets enforcement (the hook can deny an edit). Codex has no pre-tool hook, so it cooperates voluntarily by calling the MCP tools — which is why the agent instructions (below) matter for it.
Best paired with separate git worktrees per agent. With one worktree per agent, git itself handles file merges;
agent-coordstops the two agents from duplicating work or racing the same file before it's committed.
Related MCP server: session-coord-mcp
Install
git clone https://github.com/ThatHunky/agent-coord
cd agent-coord
node test/smoke.mjs # optional: verify (no deps required)Requires Node ≥ 18. There is nothing to build.
Wire up Claude Code
Register the MCP server (user scope, identity = claude):
claude mcp add agent-coord -s user \
-e AGENT_COORD_AGENT=claude \
-- node /ABSOLUTE/PATH/TO/agent-coord/src/server.mjsAdd the enforcement hook to ~/.claude/settings.json (see
examples/claude-settings.json):
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "AGENT_COORD_AGENT=claude node /ABSOLUTE/PATH/TO/agent-coord/src/guard.mjs"
}
]
}
]
}
}Wire up Codex
Add to ~/.codex/config.toml (see examples/codex-config.toml):
[mcp_servers.agent_coord]
command = "node"
args = ["/ABSOLUTE/PATH/TO/agent-coord/src/server.mjs"]
env = { AGENT_COORD_AGENT = "codex" }Tell both agents to use it
Paste docs/AGENTS-snippet.md into your project's
CLAUDE.md and AGENTS.md so each agent knows the protocol.
MCP tools
Tool | What it does |
| Show the board: active locks, task claims, recent messages. Call first. |
| Reserve repo-relative path globs; returns cross-agent conflicts. |
| Release a lock ( |
| Claim a task/plan id; fails if another agent holds it. |
| Mark a claimed task done. |
| Broadcast a status message. |
| Show this agent's identity, project, and board path. |
CLI (for humans)
Watch what both agents are doing, live:
agent-coord watch # live board for the current repo
agent-coord status [project] # one-shot
agent-coord post "message" # broadcast (set AGENT_COORD_AGENT first)
agent-coord locks # every lock across all projects
agent-coord clear # drop all of your agent's locks(Run via node src/cli.mjs …, or npm link to get the agent-coord binary.)
Configuration
All optional, via environment variables:
Variable | Default | Meaning |
|
| This agent's identity ( |
|
| Where the shared board lives. |
| git top-level basename | Project id for scoping locks. |
|
| Default lock expiry. |
|
| Claude hook auto-claims edited files ( |
|
| TTL for auto-claimed locks. |
|
| Message ring-buffer size. |
Design notes & limits
Fail-open. The Claude hook never blocks your work on a bug — any unexpected error allows the edit. The only thing that denies is a genuine, unexpired lock held by a different agent.
Locks expire. They're a coordination hint with a TTL, not a permanent reservation, so a crashed agent can't wedge the repo.
Codex is cooperative, not enforced. Without a pre-tool hook, Codex respects the board only by calling the tools. The agent instructions make that reliable.
One machine. The board is a local file; this is for agents sharing a filesystem, not across machines.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceA shared memory and coordination server for multiple AI coding agents, built on the Model Context Protocol (MCP).Last updated5MIT
- Alicense-qualityDmaintenanceA local-first MCP server for coordinating parallel AI coding sessions with tools like Claude Code and Codex in a single repository.Last updated2MIT
- Alicense-qualityDmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.Last updated1734MIT
- Alicense-qualityAmaintenanceA provider-agnostic MCP server that synchronizes work-in-progress between multiple coding sessions to prevent file conflicts.Last updated672MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
ArcAgent MCP server for bounty discovery, workspace execution, and verified coding submissions.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThatHunky/agent-coord'
If you have feedback or need assistance with the MCP directory API, please join our Discord server