Repository navigation
Description
Context
Herdr (Apache-2.0) is a persistent terminal runtime for coding agents: a background server owns the terminals of agent CLIs, sessions survive disconnects and restarts, agents can start/prompt/wait on each other, and per-agent state is exposed as working / blocked / done / idle / unknown. Raised $6M, 1,445 community plugins, Herdr Cloud on the way.
What is verified (Level 0, done 2026-10-03)
Agents run unchanged under Herdr, so the existing hook path captures them. Verified on Windows 11 (dogfood):
- Herdr 0.9.3 installed; SHA-256 checked against the release manifest.
- Pane processes receive
HERDR_ENV=1plusHERDR_PANE_ID,HERDR_TAB_ID,HERDR_WORKSPACE_ID,HERDR_SOCKET_PATH,HERDR_BIN_PATH. - The production hook client (
scripts/agentmetry_ingest.py claude hook PostToolUse) executed from inside a Herdr pane posted to the local orchestrator, and the event landed on the hash-chained trail:tool_called,agent.name: claude,input_hashpresent, chain intact.
Not yet verified (no CLI on the test machine): a live Claude Code session driven through a Herdr pane. Hooks are executed by the agent CLI reading user settings, independent of which process owns the terminal, so this is expected to work; it should be dogfooded once and ticked off.
Level 1: role/workspace tagging (small, additive)
The hook client already runs inside the pane process tree, so it can read the HERDR_* variables directly. Additive canonical schema fields (1.3): agent.runtime (herdr), agent.workspace_id, agent.pane_id, and optionally a human label from herdr workspace get. Tagging is a claim, not verified identity: same boundary as operator attribution. Fleet inventory and the future cloud views then show Herdr workspaces as first-class groupings.
Level 2: orchestration adapter (the interesting one)
All current detection rules run within a single session. Herdr exposes exactly the missing graph: agent start/exit, state transitions, and (through its CLI/socket API, which agents themselves use) one agent prompting or waiting on another. An adapter alongside adapters/crewai and adapters/opensre would poll herdr agent list / herdr agent explain <target> --json or subscribe via plugin event hooks, and ingest orchestration events into the trail. That unlocks cross-agent sequences: an agent prompted by a peer right after a credential read, an agent approving another agent's write, escalation chains across the herd. Candidate canonical event types: agent_started, agent_state, agent_prompted (schema 1.3 additions).
Level 3: distribution (no code)
A herdr integration install agentmetry contribution upstream, and when Herdr Cloud ships, Agentmetry Enterprise deployed beside it as the governance plane for Herdr-hosted fleets.
Activity
Merge pull request #217 from blitzcrieg1/feat/herdr-capture-verified
docs: Herdr is a verified capture environment (blitzcrieg1#216)