Skip to content

Herdr runtime integration: role/workspace tagging (L1) + orchestration adapter (L2) #216

Open

Description

@blitzcrieg1

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=1 plus HERDR_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_hash present, 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

  1. added a commit that references this issue on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions