fei2411/agent-bridge/add-coordinator
Claude Code and agent skill by fei2411/agent-bridge
- community
Checking that the SKILL.md file is still in the repository.
Verify that a new host can act as an Agent Bridge coordinator over stdio MCP. Use when adding a coordinator host, checking MCP/skill/timeout/permission setup for Codex, Cursor, Kimi Code, ZCode, Grok Build, or Claude Code, or when a host can also run as a worker and nested dispatch must stay disabled.
Install
npx vskill@latest install fei2411/agent-bridge/add-coordinatorSKILL.md
The same SKILL.md was published earlier as fei2411/agent-bridge/add-coordinator.
Adding a coordinator host to Agent Bridge
This is not add-worker.
- add-worker connects a new execution CLI to Registry / adapters /
agents.toml. - add-coordinator proves a new host can drive the existing workers through the same MCP tools.
Do not add an adapter, a worker block, or a new dispatch protocol for a coordinator. Do not use GUI automation. Do not treat "the config file was written" as an end-to-end pass.
Before writing anything
Answer every item below from the host's current official docs and, when possible, its source. Record units (seconds vs milliseconds) and scope (user vs project).
- stdio MCP config shape, scopes, and precedence. User file vs project file. Whether a native config and a
.agents/mcp.jsonfallback merge or replace each other. Whether the settings UI paste format differs from the on-disk file. - Whether MCP server `instructions` reach the model. Handshake text is one channel; if the host hides it, the skill and
ORCHESTRATION.mdmust still be discoverable. - AGENTS.md / rules loading and size limits. Path, walk order, concatenation, and any byte/token cap.
- Skill directories. Native user dir, project dir, generic
~/.agents/skills, plugin/marketplace paths, and whether discovery is automatic. - MCP startup timeout and tool-call timeout, with units. Recommend a value that leaves room for
wait_taskdefault 180 s (Bridge recommends 600 s / 600000 ms). Document the host default and the short-poll fallback when the default is too short or unknown. - MCP tool permission / approval. How to pre-allow only Agent Bridge tools without turning the whole host into always-approve. Note which keys are user-scoped and must not go in a project example.
- Environment inheritance and executable PATH. Does the host clear the MCP child env (Codex does)? Can it resolve a PowerShell function, or must
commandbe a real executable absolute path? - Can this product also be a Worker? If yes, a Worker that inherits the user's Agent Bridge MCP config will start a nested Bridge. Prove the server-side gate: nested
list_agentsshowsruntime_context=workeranddispatch_enabled=false; nesteddispatch_task(evenuser_requested=true) returnsnested dispatch is disabled. - Real closed loop on the live host:
list_agents→dispatch_task→wait_task→get_result→ samesession_idcontinue →end_session. Verify the file on disk yourself. A timeout is not failure. - Separate automation from human steps. Unit tests and a project-level config fixture are automation. Opening a GUI host and sending one prompt is human. Never call the latter "E2E passed".
Current hosts (verified against their public docs)
| Host | Native MCP file | Skill discovery | Tool timeout field | Notes | |
|---|---|---|---|---|---|
| Codex | ~/.codex/config.toml [mcp_servers.*] | ~/.codex/skills | tool_timeout_sec (seconds) | Clears MCP child env; list env_vars. | |
| Cursor | ~/.cursor/mcp.json or <repo>/.cursor/mcp.json | ~/.cursor/skills | ~45–60 s, not configurable | Short-poll wait_task. | |
| Kimi Code | ~/.kimi-code/mcp.json | ~/.kimi-code/skills | toolTimeoutMs (ms) | Default 60 s without override. | |
| ZCode | user ~/.zcode/cli/config.json (mcp.servers); project <repo>/.zcode/config.json | ~/.zcode/skills | timeoutMs (ms) | UI "完整配置" accepts {name:{...}} or {mcpServers:{...}}. That is not the native file shape. Same-scope .zcode MCP skips .agents/mcp.json entirely. | |
| Grok Build | user ~/.grok/config.toml; project <repo>/.grok/config.toml | ~/.grok/skills, ./.grok/skills, and ~/.agents/skills | startup_timeout_sec / tool_timeout_sec (seconds; tool default 6000) | Also a Worker. MCP stdio inherits the process env (no env_clear). Official permission form is [[permission.rules]] with tool = "mcp" and {server}__{tool} names. [ui] permission_mode is user-scoped only. | |
| Claude Code | user ~/.claude.json top-level mcpServers; project <repo>/.mcp.json; local scope nests under the project path in ~/.claude.json | ~/.claude/skills (does not read ~/.agents/skills) | per-server timeout (ms); MCP_TOOL_TIMEOUT env; CLI default ~28 h | Also a Worker (claude-agent-acp, not product claude). Do not put mcpServers in settings.json. Pre-allow with permissions.allow = ["mcp__agent-bridge__*"]. Native rules file is CLAUDE.md. |
Bridge already installs the coordinator skill into .agents, .cursor, .codex, .kimi-code, .zcode, and .claude. Grok reads ~/.agents/skills; do not add a .grok copy unless a future host stops reading .agents.
Implementation checklist (coordinator only)
- Keep the MCP tool names and arguments unchanged.
- Document the host in
SETUP.mdwith a copy-paste config that uses a resolvedagent-bridgeabsolute path (Get-Command agent-bridge | Select-Object -ExpandProperty Source). Do not invent a home directory. - Update every user-facing coordinator list (README, SETUP, ORCHESTRATION, skill, CLI HELP, package description) so it cannot still say "Codex / Cursor / Kimi only".
- If the host can also be a Worker, add or keep the nested-dispatch tests; do not rely on the model "being careful".
- If
ORCHESTRATION.mdis copied asAGENTS.md(Grok does this), keep the English file ≤ 9500 characters. Chinese can stay longer; behavior must match.
Definition of done
Automation:
- Unit tests cover worker-context refusal (
dispatch_task/set_preferences/cancel_task/end_session), nestedAGENT_BRIDGE_HOME, skill destinations, and docs that distinguish config shapes. uv run pytestanduv buildpass.
Human or live-host:
- A local
lab/workspace fromscripts/setup_lab.py(its own git repo, project-scoped host config; not committed). Do not edit the user's global Codex/Cursor/Kimi/ZCode/Grok/Claude files for the test, and do not usetests/or a Temp folder. list_agentsshowsdispatch_enabled=trueat the top-level host.- Two worker turns on one
session_id; the file on disk has both lines. - If the host is also a Worker: nested
dispatch_taskis rejected withnested dispatch is disabled; nestedcancel_task/end_sessionare also rejected; nested state lives underAGENT_BRIDGE_HOME/nested. Top-levelend_sessionstill tears down the worker tree and its nested Bridge. Top-levelenv_statusdoes not count that nested Bridge as a sibling. - If the host has no stable headless CLI, say "config and unit tests done; UI E2E waiting on one human prompt". Do not claim full verification.
Common failures
- Treating a coordinator as a new worker. No adapter, no
agents.tomlworker block. - Mixing UI JSON with native file JSON (ZCode).
- Mixing seconds and milliseconds.
- Putting user-only keys in a project example (Grok
[ui] permission_mode). - Claiming `.agents/mcp.json` always merges with a native
.zcodefile. It does not. - Calling `grok` / `kimi` from the coordinator shell because MCP tools "looked missing".
- Using `user_requested=true` to bypass a nested Bridge.
- Trusting the worker's self-report instead of
git diff.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/add-coordinator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fei2411/agent-bridge/add-coordinator)