GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Exact, durable handoffs between AI coding agents: one turn in the right session, never twice.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"agentbrain-handoffs": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/willykeenan/agentbrain-handoffs:0.1.0",
"mcp",
"--agent",
"{agent_id}"
]
}
}
}在终端中运行这条命令
claude mcp add agentbrain-handoffs -- docker run -i --rm ghcr.io/willykeenan/agentbrain-handoffs:0.1.0 mcp --agent '{agent_id}'粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"agentbrain-handoffs": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/willykeenan/agentbrain-handoffs:0.1.0",
"mcp",
"--agent",
"{agent_id}"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"agentbrain-handoffs": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/willykeenan/agentbrain-handoffs:0.1.0",
"mcp",
"--agent",
"{agent_id}"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 willykeenan 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于42天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Exact, durable handoffs between AI coding agents. Each handoff is one new turn in the recipient's existing session.
Real screenshot of the demo; the data in it is invented sample data.
pip install .
handoffs demo
Open the URL it prints (http://127.0.0.1:8765/). Four simulated agents hand work to each other. Ctrl+C stops and deletes the demo data.
A team of coding agents already has sessions, inboxes and tools. What it lacks is delivery: a message that reaches the right session, waits if that agent is busy, is sent once, and is retried within a bound when the provider drops it.
Without that, handoffs get lost, delivered twice, or pasted into a session that is already in the middle of a turn. AgentBrain Handoffs is the delivery layer. It is a local Python package (Python 3.9+, standard library only) with a command handoffs, a live page, and an MCP server.
From a clone of this repository:
python3 -m venv .venv
.venv/bin/pip install . .venv/bin/handoffs demo
Or, once the package is on PyPI:
pipx run agentbrain-handoffs demo
You should see:
AgentBrain Handoffs demo
Open http://127.0.0.1:8765/ Four simulated agents (Planner, Engineer, Reviewer, Writer) hand work to each other. Nothing real is contacted. The demo data is temporary and deleted when you stop (Ctrl+C).
The page updates every few seconds. Handoffs move through Accepted → Working → Finished. Work is returned and closed on its own. --speed 4 makes the simulated turns finish faster.
To keep the demo on another port: handoffs demo --port 9876.
A longer walkthrough, including your own agents, is in docs/QUICKSTART.md.
A handoff is a message addressed to one registered agent. The delivery engine turns it into exactly one new turn for that agent, at the session it had when the handoff was enrolled.
A work contract is a handoff with a title. The recipient returns a result (or a blocker); the sender closes it as accepted, revision, or blocked. A due time is optional; if it passes, the sender gets one non-waking reminder.
Delivery states, in plain words:
| State | Meaning |
|---|---|
| WAITING | Queued. Next engine pass will try to send it. A provider outage stays here too: the detail explains the hold and no attempt is used. |
| BUSY | The recipient is in the middle of a turn. This waits. |
| HELD | Blocked on purpose: the connection is blocked or delivery is paused. No attempt used. |
| UNAVAILABLE | The agent or its session is gone. Nothing is redirected. |
| OWNER_REJECTED | The session refused the write. One retry is allowed. |
| SENDING | The write is in flight. |
| UNCERTAIN | The write may have landed; the reply was lost, or an accepted turn could not be observed for 10 minutes. Observed, never resent. |
| ACCEPTED | The recipient's session took the turn. |
| RUNNING | The turn is in progress. |
| RETURNED | The turn finished. |
| FAILED | The turn failed or was interrupted, or the session refused it twice (then it was never delivered). |
| ACKNOWLEDGED | The recipient read the message; no separate turn is needed. |
| CANCELLED | Proven absent after enough history scans, or released by a person with handoffs release. Not resent. |
| DUPLICATE | Identical to a handoff still in progress. |
handoffs release ID cancels it; nothing is resent either way.| Provider | Status | What it talks to |
|---|---|---|
demo | Stable | Simulated agents. Used by handoffs demo. |
command | Stable | An argv (no shell) or an HTTP POST. |
codex | Experimental | codex app-server JSON-RPC over stdio. |
claude-code | Experimental | Claude Code headless (claude -p --resume). |
See docs/ADAPTERS.md for settings, examples and the experimental caveats.
Each agent session launches its own MCP server. The identity is fixed at start, so a tool call cannot act as another agent.
Claude Code
claude mcp add handoffs -- handoffs mcp --agent me
Replace me with the agent id you registered (handoffs agent add me --provider claude-code ...).
Codex (~/.codex/config.toml)
[mcp_servers.handoffs]
command = "handoffs" args = ["mcp", "--agent", "me"]
Cursor (MCP servers in Cursor settings)
{
"mcpServers": { "handoffs": { "command": "handoffs", "args": ["mcp", "--agent", "me"] } } }
Point every process at the same database with --db or HANDOFFS_DB. The engine (handoffs serve or handoffs run) is what actually delivers; the MCP server only writes to the inbox. Details: docs/MCP.md.
ContextLib keeps a project's decisions, facts and lessons as plain Markdown files. Install it and point the same server at a library, and each agent gets the context_* tools (brief, search, get, record, supersede, review, capture, export, import, status) next to its handoff tools:
pip install "git+https://github.com/willykeenan/agentbrain-contextlib"
claude mcp add handoffs -- handoffs mcp --agent me --context-library "/Volumes/SSD/ContextLib"
$CONTEXTLIB_ROOT works in place of the flag. The plugin runs as the server's fixed agent id, so an agent's records are authored by exactly the agent that sent its handoffs. Without a library, the server offers handoff tools only.
handoffs init
handoffs agent add planner --provider demo handoffs agent add builder --provider demo --name Builder handoffs send planner builder "Add a health check" --title "Health check" --due-minutes 30 handoffs serve # engine + live page on http://127.0.0.1:8765/ handoffs inbox builder handoffs read ID --as builder handoffs return ID --as builder --summary "Health check is green" handoffs close ID --as planner accepted handoffs status --json handoffs tick # one delivery pass (Codex and Claude Code turns wait for run or serve) handoffs release ID # stop tracking a stuck delivery; never resent handoffs run # engine only handoffs mcp --agent builder # stdio MCP server
--db PATH or HANDOFFS_DB selects the database (default ./.handoffs/handoffs.sqlite3). --json is accepted on the commands that print records. Usage errors exit 2.
| Command | Purpose | ||
|---|---|---|---|
init | Create the database. | ||
| `agent add\ | list\ | remove` | Register agents. --set KEY=VALUE is JSON when it parses. |
allow / block | Directed connections. | ||
config KEY VALUE | enabled, enabledAfter, connections, outageGuard. | ||
send FROM TO MESSAGE | Inbox message; --title makes it work. --key is idempotent. | ||
inbox / read / accept / return / close | Work lifecycle. --as or HANDOFFS_AGENT. | ||
status / tick / run / serve / mcp / demo | Inspect and deliver. | ||
release ID | Cancel one stuck delivery (for example UNCERTAIN) so its recipient is free. Nothing is sent. |
The live page binds to loopback and refuses non-loopback Host headers (DNS-rebinding). POST /api/send needs the token in .token (mode 0600). --public-demo exists only on handoffs demo (simulated agents, temporary data); that page cannot send and shows plain state sentences instead of adapter errors. MCP identity is the --agent you started with. Full model: docs/SECURITY-MODEL.md.
outageGuard.The image is published at ghcr.io/willykeenan/agentbrain-handoffs for Apple silicon and Intel.
docker run --rm -p 8765:8765 ghcr.io/willykeenan/agentbrain-handoffs demo --host 0.0.0.0 --public-demo # the live demo
claude mcp add handoffs -- docker run -i --rm -v ~/.handoffs:/data ghcr.io/willykeenan/agentbrain-handoffs mcp --agent me
The MCP server writes to the handoff database in ~/.handoffs; run the engine (handoffs serve) on the machine where your agents live so it can deliver.
Apache-2.0. Copyright KE Studios.
Source: github.com/willykeenan/agentbrain-handoffs. Live demo: huggingface.co/spaces/willykeenan/agentbrain-handoffs.
AgentBrain Handoffs is the open delivery layer for AgentBrain, the agent runtime coming to Agent Rooms (agentrooms.io).