Skip to main content
Glama
megamen32

agent-herder

by megamen32

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.

Русский · 简体中文

Animated Agent Herder session lineage

Start in 30 seconds

Run it without cloning a repository:

npx -y agent-herder

Add 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 serve

Related 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 opencode serve

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 ENABLE_QODER=true

Core MCP tools

Group

Tools

Discover

list_agents, agent_info, audit_worktrees

Lineage and context

find_parent, list_children, get_transcript, search_transcripts

Control

send_message, resume_agent, stop_agent

Permissions and models

respond_permission, set_permissions, list_models, change_model

Summaries

summarize_session

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_KEY for Codex when the Codex app-server requires it.

Configuration

The common switches are:

Variable

Default

Purpose

ENABLE_OPENCODE

true

Enable the OpenCode adapter

ENABLE_CLAUDE

true

Enable the Claude Code adapter

ENABLE_CODEX

true

Enable the Codex adapter

ENABLE_QODER

false

Enable the Qoder ACP adapter

OPENCODE_URL

http://127.0.0.1:4096

OpenCode server URL

OPENCODE_SERVER_PASSWORD

OpenCode server password, if configured

CODEX_TRANSPORT

app-server

Codex native transport or cli fallback

QODER_CWD

current directory

Workspace used by Qoder

SUMMARIZER_API_KEY

Enables summarize_session

Example for Qoder:

export ENABLE_QODER=true
export QODER_CWD=/path/to/project
npx -y agent-herder

Develop locally

npm ci
npm test
npm run build
npm run inspect

The local stdio entrypoint is dist/index.js.

The optional web UI runs on loopback:

export AGENT_HERDER_WEB_PORT=8787
npm start

Open 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

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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