Herdr
$ herdr Official Med RiskHerdr (herdr) is a persistent terminal workspace multiplexer tailored for running parallel AI coding agents (claude, codex, etc.), supporting --remote, --session <name>, and --default-config. Its companion control CLI hc provides hc run --bg --name --json, hc ls --json, hc read, hc send, hc wait, and hc agent start.
brew install herdr hc (hc run --bg --json, hc read, hc send, hc wait) is explicitly designed as a programmatic terminal control CLI for orchestrating sibling agent panes.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Companion hc CLI exposes --json (auto-enabled when piped), run --bg --name, ls, read, send, and wait, while herdr handles --session and --remote TUI multiplexing.
hc run --bg --name --json,hc ls,hc read,hc send,hc wait, andherdr --remote --session
Read-only hc ls / hc read inspection vs explicit hc run / hc send execution; HERDR_ENV=1 guards prevent blind recursion, though spawned panes inherit full local shell permissions.
HERDR_ENV=1context marker and read/writehccommand separation
Installable via brew install herdr, mise, and official install scripts across macOS, Linux, and Windows.
- Homebrew (
herdr), Mise, macOS/Linux.sh, and Windows.ps1installers
Purpose-built alternative to tmux for multi-agent supervision with structured hc wait and JSON pane control.
- Built-in
hc wait,hc agent start, and JSON pane orchestration
Official herdrdev/herdr repository under Apache-2.0 license.
- Official
herdrdev/herdrrepo under Apache-2.0
Clear herdr.dev site and GitHub README documenting herdr flags, hc subcommands, and HERDR_ENV=1 skill integration.
- Official docs at
herdr.devand GitHub README
Security, Auth & Guardrails
Stores workspace/session configs locally; --remote connections use local SSH/daemon config without extra API keys.
100% free and Apache-2.0 open-source.
# Herdr (herdr / hc) Agent Rules - Use `hc` (`hc ls --json`, `hc run --bg --json`, `hc read`, `hc wait`) in agent loops; never invoke the interactive `herdr` TUI directly. - Check `HERDR_ENV=1` before spawning recursive panes to avoid runaway session nesting.
Agent-Ready Command Recipes
Safe Read-Only Queries
hc ls --all --json
Lists active and completed terminal panes managed by the Herdr server in JSON format.
hc read worker-1
Prints the screen history and recent output of the worker-1 terminal pane without attaching interactively.
Controlled Writes & Previews
hc run --bg --name worker-1 --json -- npm test
Starts npm test in a persistent named background Herdr pane and returns pane metadata as JSON.
Strengths for Agents
- + Companion
hcCLI makes spawning, reading, and waiting on background agent panes scriptable with--json. - + Sets
HERDR_ENV=1inside managed panes so agent skills know when orchestration is available. - + Clean multi-platform installation via Homebrew and shell scripts.
Caveats & Pitfalls
- ! The top-level
herdrcommand launches an interactive TUI multiplexer rather than returning CLI JSON (usehcfor headless control). - ! Requires the background
hc serverdaemon running to manage panes.