agent-herder
Agent Herder is an MCP server that provides a unified control plane for monitoring, inspecting, and coordinating AI coding agent sessions across multiple harnesses: OpenCode, Claude Code, Codex CLI, and Qoder.
Discovery & Inspection
List all sessions with filters for harness, status (running, idle, stopped, needs_input, error), age, and working directory, with optional last-message previews
Get detailed info about a specific session, including model and last message
List available AI models for each harness
Session Control
Send messages to agents in sync (wait for response), queue (fire-and-forget), or steer (redirect) mode
Stop running agent sessions
Resume stopped sessions, optionally with a message
Permissions
Respond to pending permission requests (allow/deny)
Set tool permissions and permission mode for agents
Model Management
Change the AI model per-session (OpenCode) or as a global default (Claude/Codex)
Summaries & Context
Summarize session transcripts using a built-in LLM, returning structured output (Task, Progress, Current State, Issues), with a concise 1–3 sentence mode available
Search within session transcripts and retrieve bounded transcript context
Discover session lineage (parent/child sessions) and audit worktrees
Monitor and manage Codex CLI coding agent sessions, including listing agents, inspecting details, sending messages, resuming/stopping agents, and setting permissions.
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-herderlist all running agents"
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 Herder
MCP control center for coding agents.
Monitor, inspect, and coordinate AI coding sessions from one MCP server: OpenCode, Claude Code, Codex CLI, Qoder, and ZCode.
Start in 30 seconds
Run it without cloning a repository:
npx -y agent-herderAdd the same command to any MCP client:
{
"mcpServers": {
"agent-herder": {
"command": "npx",
"args": ["-y", "agent-herder"]
}
}
}Start the harness you want to observe first. For OpenCode, that means:
opencode serveRelated MCP server: all-agents-mcp
What it does
Monitor, inspect, and coordinate. Agent Herder gives your MCP client one control plane for coding-agent sessions that normally live in separate tools.
See running, idle, stopped, and waiting sessions in one list.
Find a session's parent and children without guessing IDs.
Send, resume, stop, steer, or recover sessions where the harness supports it.
Review permissions, switch models, and inspect worktrees.
Typical request:
Find the parent of this session, list its children, then export the raw transcript of the child that is currently working on the bug.
Why people use it
Use Agent Herder when you need an MCP server for OpenCode, a Claude Code session manager, Codex CLI transcript search, ZCode app-server control, or one dashboard for several AI coding agents. It is especially useful for parent/child agent workflows, parallel coding tasks and session recovery.
Supported harnesses
Harness | Connection | Enablement |
OpenCode | HTTP API | Enabled by default; run |
Claude Code | SDK/CLI, current and legacy session files, native | Enabled by default |
Codex CLI | Native app-server with CLI fallback | Enabled by default |
Qoder CLI | Native ACP | Set |
ZCode | Local stdio ZCode Protocol app-server | Enabled by default; set |
Fast Agent | Read-only persisted session home | Set |
Core MCP tools
Group | Tools |
Discover |
|
Lineage and transcript |
|
Named sessions |
|
Control |
|
Permissions and models |
|
export_transcript copies the adapter-owned raw transcript for one session and
its in-workspace parent/child lineage, then always returns a short navigation
card. It deliberately does not rank or compress the conversation: use the
normal filesystem tools available to the agent to inspect exactly the slice it
needs.
Claude Code autopilot is packaged under .claude-plugin/: /autopilot toggles
the exact current session, the native Stop hook asks the shared AI judge to
continue or finish, and ambiguous decisions appear as NoticePlace/web buttons.
See the autopilot guide.
new_or_resume identifies a session by the exact tuple (harness, canonical CWD, name). It reuses one matching native session or creates it, then delivers
one message. Multiple exact matches fail closed before delivery. queue reports
native acceptance; sync waits for the adapter response. Event idempotency
belongs to the webhook/control plane that calls Agent Herder.
Requirements
Node.js 22+ and npm.
At least one supported harness installed and available in
PATH.OPENAI_API_KEYfor Codex when the Codex app-server requires it.
Configuration
The common switches are:
Variable | Default | Purpose |
|
| Enable the OpenCode adapter |
|
| Enable the Claude Code adapter |
|
| Enable the Codex adapter |
|
| Enable the Qoder ACP adapter |
|
| Enable the local ZCode app-server adapter |
|
| Enable the read-only persisted fast-agent observer |
|
| OpenCode server URL |
| — | OpenCode server password, if configured |
|
| Codex native transport or |
| current directory | Workspace used by Qoder |
| current directory | Workspace used by ZCode |
|
| Existing fast-agent home to observe; no process is started |
| current directory | Workspace shown for persisted fast-agent sessions |
|
| ZCode server runtime executable |
|
| ZCode stdio app-server entrypoint |
|
| Fallback command when the bundled server entrypoint is unavailable |
|
| Relative archive path inside the MCP process CWD |
|
| Archive retention size budget (100 MiB) |
|
| Remove unmodified archive bundles by modification time |
Example for Qoder:
export ENABLE_QODER=true
export QODER_CWD=/path/to/project
npx -y agent-herderDevelop locally
npm ci
npm test
npm run build
npm run inspectThe local stdio entrypoint is dist/index.js.
The optional web UI runs on loopback:
export AGENT_HERDER_WEB_PORT=8787
npm startOpen http://127.0.0.1:8787/. For a persistent ACP profile, set
ACP_AGENT_COMMAND, ACP_AGENT_ARGS as a JSON array, and
ACP_AGENT_PROFILE before starting the server.
Set AGENT_HERDER_WEB_PORT to the loopback upstream expected by your reverse
proxy (the managed agent.bezrabotnyi.com deployment uses 18787).
The matching user-service template is
deploy/systemd/agent-herder.service.
FAQ
Does Agent Herder replace my coding agent? No. It connects your MCP client to the sessions owned by OpenCode, Claude Code, Codex, Qoder, or ZCode.
Does export_transcript load everything into the model? No. It writes the
raw source to a CWD-scoped archive and returns only the permanent navigation
card. The card shows sed for the first lines, tail for the last lines, and
rg examples for literal text, regex, or a timestamp.
Can I use only one harness? Yes. Disable adapters you do not run with the
ENABLE_* variables.
Transcript archive
export_transcript atomically copies the adapter-owned raw source under the MCP
process CWD and writes a lineage manifest beside it. The archive never falls
back to display-only text. Its manifest names the source, format, timestamp
coverage, and whether the adapter can prove completeness. Parent or child
sessions outside the MCP CWD are recorded as excluded, not copied.
The navigation card is returned for every export, regardless of transcript size. It shows how to view the first or last lines and how to use literal, regular-expression, or timestamp searches. OpenCode and ACP archives are explicitly partial until their upstream APIs offer a verified complete-history source.
License
MIT
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
- AlicenseAqualityFmaintenanceProvides unified access to multiple CLI AI agents (Codex, Gemini, Claude, and OpenCode) through a single MCP interface with real-time task monitoring, enabling specialized code analysis, UI design, implementation, and prototyping workflows.1121MIT
- AlicenseBqualityFmaintenanceEnables orchestrating multiple AI CLI agents (Claude Code, Codex, Gemini CLI, Copilot CLI) through a unified MCP interface for task delegation, cross-agent comparison, and specialized tools like code review and debugging.141814MIT
- FlicenseBqualityAmaintenanceA disciplined engineering harness for AI coding agents that provides ground-truth MCP tools and adversarial enforcement skills to transform generic LLMs into high-precision engineers.1001
- AlicenseNot gradedqualityCmaintenanceMCP bridge for calling local coding-agent CLIs (Codex, Claude) from another agent, enabling bounded tasks like code review, verification, and bug hunting.MIT
Related MCP Connectors
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Agent Replay Debugger MCP — record every agent step + deterministic replay. Step-debugger for
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/megamen32/agent-herder'
If you have feedback or need assistance with the MCP directory API, please join our Discord server