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, search, and coordinate AI coding sessions from one MCP server: OpenCode, Claude Code, Codex CLI, and Qoder.
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.
Read the latest messages or search one transcript with bounded context.
Send, resume, stop, steer, or recover sessions where the harness supports it.
Review permissions, switch models, inspect worktrees, and summarize sessions.
Typical request:
Find the parent of this session, list its children, then show the last five messages from 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, or one dashboard for several AI coding agents. It is especially useful for parent/child agent workflows, parallel coding tasks, bounded context, and session recovery.
Supported harnesses
Harness | Connection | Enablement |
OpenCode | HTTP API | Enabled by default; run |
Claude Code | SDK/CLI and session files | Enabled by default |
Codex CLI | Native app-server with CLI fallback | Enabled by default |
Qoder CLI | Native ACP | Set |
Core MCP tools
Group | Tools |
Discover |
|
Lineage and context |
|
Control |
|
Permissions and models |
|
Summaries |
|
get_transcript accepts a session ID, an optional number of latest messages,
and an optional search prompt. It returns only the useful slice instead of
loading an entire conversation into context.
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 |
|
| OpenCode server URL |
| — | OpenCode server password, if configured |
|
| Codex native transport or |
| current directory | Workspace used by Qoder |
| — | Enables |
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.
FAQ
Does Agent Herder replace my coding agent? No. It connects your MCP client to the sessions owned by OpenCode, Claude Code, Codex, or Qoder.
Does get_transcript load everything? No. Ask for the latest N messages or
search for a prompt; the result is bounded for practical agent context.
Can I use only one harness? Yes. Disable adapters you do not run with the
ENABLE_* variables.
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.Last updated1121MIT
- Alicense-qualityFmaintenanceEnables 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.Last updated2814MIT
- 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.Last updated100
- Alicense-qualityDmaintenanceMCP bridge for calling local coding-agent CLIs (Codex, Claude) from another agent, enabling bounded tasks like code review, verification, and bug hunting.Last updatedMIT
Related MCP Connectors
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Agent Replay Debugger MCP — record every agent step + deterministic replay. Step-debugger for
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
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