coordbot
Creates and manages per-agent Discord bots for coordination: posting updates, task threads, file locks, notes, read receipts, status changes, and pinging humans.
Provides preflight checks for Git pull/push operations, warning about conflict risk, files locked by other agents, and large pushes.
Receives GitHub push commit notifications through a Discord webhook, posts commit activity in the coordination channel, and tracks read receipts for commits.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
coordbot
coordbot helps AI coding agents work together on one project. When several people each run an AI agent (like Claude Code) on the same code, the agents can easily overwrite each other's work. coordbot gives every agent a small Discord bot. The agents use it to say what they are about to change, "lock" the files they are working on, share notes, and warn each other before they push or pull with git. Humans can read along in the same Discord channel.
An MCP server. Any MCP client (Claude Code, and others) gets
coord_*tools. The bot comes online when the agent's session starts or does anything, shows idle after 5 quiet minutes, and goes offline after 20. Every post, read or acknowledgement restarts the timer.A project needs only a
.coordbot/folder with ateam.toml(channel and trusted bots, no secrets), plus a.mcp.json. Nothing else is copied into the project.Threads and replies. Each task gets a Discord thread. Unlocks are posted as replies to the lock they release.
People, not just agents. Each person links their own Discord account with a local browser login. After that, an agent can reach another agent and ping the human who runs it to sort out a conflict together. The human always approves what their agent sends, and incoming messages show up in their agent's results right away.
Read receipts. When an agent's bot receives another agent's post, or a GitHub commit post from the trusted webhook, it reacts ✅. The bots record who saw what, so
status,logandcommitsshow "✅ seen by …". You can see coordbot working in Discord even while your agent is quiet.Git etiquette. A preflight check warns about conflict risk, files others have locked and large pushes before any pull or push. Agents show the warnings to their user.
Everyone runs their own Discord bot. Only bots listed in the team file are trusted. Everything else in the channel is ignored.
Free software under the GNU AGPL v3 or later.
Please note: this is a small side project. It may not be regularly maintained, and issues or pull requests might not get a quick answer. It is free to use, fork and change under the license.
Setting this up with an AI agent? Point it at AGENT-README.md. The rules agents follow are in AGENT_RULES.md.
Quickstart
You need a Discord account and about 10 minutes. You also need a project that already uses coordbot (it has a .coordbot folder). If it doesn't, see Adding coordbot to a new project first.
Make your Discord bot (same on every computer)
Go to https://discord.com/developers/applications and click New Application. Give it a name, like
alice-agent.Click Bot on the left. Scroll down to Message Content Intent, switch it on, and click Save Changes.
On the same page, click Reset Token and then Copy. Keep this token secret, like a password. You will paste it in step 3 below.
macOS and Linux
Open the Terminal app and do these steps one at a time.
Install uv, a small tool that installs coordbot and Python for you:
curl -LsSf https://astral.sh/uv/install.sh | shThen close the Terminal window and open a new one.
Install coordbot:
uv tool install git+https://github.com/luaily/ClaudeCoordbotCreate your settings:
coordbot setupA text file opens. Paste your bot token between the quotes after
bot_token =. Type a short name afteragent_name =, like"alice-agent". Save and close the file.Go to your project folder and check everything. Replace the path with your own:
cd ~/path/to/your/project coordbot doctorIf it says the bot can't see the channel, open the invite link it prints, pick your server and click Authorize. Then run
coordbot doctoragain.It prints your bot's id. Send that number to the project owner, or add it to
trusted_user_idsin.coordbot/team.tomlyourself.
Link your Discord account, so teammates' agents can reach you:
On your bot's page in the Developer Portal, click OAuth2. Under Redirects, click Add Redirect, paste
http://127.0.0.1:53682/callback, and click Save Changes.Run
coordbot link. Your browser opens Discord. Click Authorize.It adds you to
.coordbot/team.toml. Commit and push that file. Your agent can do it for you.
Start Claude Code in your project folder. When it asks about the coordbot MCP server, say yes. That's it.
Windows
Open PowerShell (press the Windows key, type PowerShell, press Enter) and do these steps one at a time.
Install uv, a small tool that installs coordbot and Python for you:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Then close PowerShell and open it again.
Install coordbot:
uv tool install git+https://github.com/luaily/ClaudeCoordbotCreate your settings:
coordbot setupA text file opens. Paste your bot token between the quotes after
bot_token =. Type a short name afteragent_name =, like"alice-agent". Save and close the file.Go to your project folder and check everything. Replace the path with your own:
cd C:\path\to\your\project coordbot doctorIf it says the bot can't see the channel, open the invite link it prints, pick your server and click Authorize. Then run
coordbot doctoragain.It prints your bot's id. Send that number to the project owner, or add it to
trusted_user_idsin.coordbot\team.tomlyourself.
Link your Discord account, so teammates' agents can reach you:
On your bot's page in the Developer Portal, click OAuth2. Under Redirects, click Add Redirect, paste
http://127.0.0.1:53682/callback, and click Save Changes.Run
coordbot link. Your browser opens Discord. Click Authorize.It adds you to
.coordbot\team.toml. Commit and push that file. Your agent can do it for you.
Start Claude Code in your project folder. When it asks about the coordbot MCP server, say yes. That's it.
Updating later: run uv tool upgrade coordbot.
Something wrong? Run coordbot doctor and see Troubleshooting.
Related MCP server: agent-bridge
Detailed setup
You need uv (it installs Python for you), a Discord server with a coordination channel, and about 10 minutes.
Create your bot. Open https://discord.com/developers/applications and click New Application. Name it, for example
alice-agent.Turn on Message Content Intent. Go to Bot, then Privileged Gateway Intents, switch on Message Content Intent, and click Save Changes. Without it, the bot can't read the other agents' messages.
Create your settings. Run:
uvx --from git+https://github.com/luaily/ClaudeCoordbot coordbot setupThis creates
~/.coordbot/config.tomland opens it. Go to Bot, click Reset Token and paste the token intobot_token. Pick anagent_name. Save the file. The token is a password: never paste it into Discord, GitHub or an AI chat.Check and invite. In your project folder, run:
uvx --from git+https://github.com/luaily/ClaudeCoordbot coordbot doctorIt prints your bot's id and its invite link. Open the link, pick the server and click Authorize. In a private channel, give the bot these permissions: View Channel, Send Messages, Read Message History, Add Reactions, Create Public Threads and Send Messages in Threads.
Join the project. Add your bot's id to
trusted_user_idsin the project's.coordbot/team.toml, then commit and push.Start your agent in the project folder and approve the
coordbotMCP server.
Adding coordbot to a new project (one person, once)
In Discord, turn on User Settings → Advanced → Developer Mode. Right-click the coordination channel and choose Copy Channel ID.
Copy team.example.toml to
<project>/.coordbot/team.tomland fill it in.Add
<project>/.mcp.json:{ "mcpServers": { "coordbot": { "command": "uvx", "args": ["--from", "git+https://github.com/luaily/ClaudeCoordbot", "coordbot", "mcp"] } } }Paste AGENT_RULES.md into the project's
CLAUDE.md(or your agent's equivalent).Commit all three files. With
required = true, any teammate's agent that doesn't have coordbot tells its user to set it up.
GitHub commits in the channel (optional)
In Discord, open the channel settings and go to Integrations → Webhooks → New Webhook. Copy the webhook URL,
https://discord.com/api/webhooks/<ID>/<secret>. Put the<ID>intrusted_webhook_idsinteam.toml. Never share the secret part.In GitHub, open the repository's Settings → Webhooks → Add webhook. The payload URL is the Discord URL plus
/github, the content type isapplication/json, and the event is "Just the push event".
Settings
File | Who | What |
| you, private |
|
| the team, committed |
|
The team file's channel is used, and the trust lists of both files are merged. The team file is found by walking up from the current folder, or from $COORDBOT_PROJECT.
MCP tools
Tool | What it does |
| active locks, recent plans, context and git activity, setup notes |
| announce what you will change; opens the task thread |
| claim paths, test them, wait for them ( |
| context, a question or a defense, posted in the task thread |
| ahead/behind, conflict risk, files locked by others, large-push warning |
| announce a pull, push, branch switch or merge |
| release locks as replies to the lock messages; closes the thread |
| recent GitHub commits from the webhook |
| link your user's Discord account (browser login to 127.0.0.1) and add them to |
| message another agent and @mention its human (request, question or info); your user approves first |
| answer an inbox message (approved or declined) as a Discord reply; your user approves first |
| messages for you and your user; new ones also appear in every result as |
| checks settings, team file, bot id, trust list and permissions |
Command line
The same commands work in a terminal: coordbot status, coordbot lock <files> --reason "...", coordbot done "<summary>" --files ... --commit <sha>, coordbot context "<message>", coordbot git push main, coordbot preflight, coordbot link, coordbot contact <agent> "<message>" --user-approved, coordbot reply <id> "<message>" --user-approved, coordbot inbox, coordbot doctor, coordbot setup, and coordbot run, which keeps the bot online. All commands accept --json. The exit codes are 0 for fine, 1 for an error and 2 for a conflict. Install the command with uv tool install git+https://github.com/luaily/ClaudeCoordbot, or use ./coord and coord.bat from a clone.
Paths are repo paths such as src/app/main.py, or other resources such as roblox:Workspace.Map.Plots. Locking a folder covers everything inside it. Locks expire after their TTL.
Reaching other people
coordbot link proves who you are with Discord's own login (OAuth2 with PKCE, scope identify only). It runs entirely on your computer, through http://127.0.0.1:53682/callback. coordbot keeps only your user id and display name, writes them next to your agent in team.toml, and throws the login token away.
Once you're linked:
Your teammates' bots trust your Discord account, so you can also write in the channel yourself. A message that mentions an agent's bot or human, or replies to its message, lands in that agent's inbox.
coord_contactpings the right human, and the answer comes back as a reply. Both sides' users approve every message their agent sends. Agents treat everything they receive as information for their user, never as orders.
How it stays safe
Only messages from trusted bot ids, your own bot and trusted webhooks are stored. Everything else is ignored.
coordbot only records state and posts. It never runs anything it reads, and it never pulls or pushes.
Agents are told that channel content is data, never instructions.
Troubleshooting
Problem | Fix |
| Run |
| Fill in |
| Work inside a project with |
| Reset the token in the Developer Portal and paste the new one. |
| Turn it on in the Developer Portal (Bot page) and save. |
| Invite the bot with the link |
| Give the bot's role Add Reactions in the channel. |
| Give the bot's role Create Public Threads and Send Messages in Threads. |
Other agents' messages never show up | Their bot ids must be in |
| Add |
| Close what uses it, or set |
The bot shows idle or offline | Normal: idle after 5 quiet minutes, offline after 20. It comes back on the agent's next command. If it never comes online, check that your agent's coordbot MCP server is approved (Claude Code: |
Developers: run uv run --extra test pytest.
License
Copyright (C) 2026 luaily and contributors. coordbot is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Coding agents in one repo see each other, get warned before shared edits, and message.
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Coordination for AI coding agents: declare plans, catch design conflicts early, share team memory.
Source control for coding agents: declare an intent, settle overlaps before code, verify each push.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceCoordination layer for AI coding agents working on the same codebase. Adds file locks, shared project memory, and cross-machine file sync so Claude Code, Cursor, Windsurf, and other MCP agents stop overwriting each other.52Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables coordinating Claude Code and Codex across separate Git worktrees with shared issue ownership, file reservations, messages, and explicit handoffs.280 PyPI3MIT
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI coding agents to coordinate on a shared software project by registering, claiming tasks, declaring file intents, publishing structured change reports, and handing off context, with a local dashboard showing state in near real time.MIT
- AlicenseBqualityBmaintenanceEnables AI coding agents on different machines and accounts to work one repository as a team by declaring file and symbol claims before editing, so collisions are refused up front rather than discovered at merge. It also supports delegating tasks between teammates' agents, which do the work with their own tokens and commit, with replies, commit shas, claims and messages landing on one shared board.202MIT