herdr
Skill1 starsChanged 2 months agoMITView on GitHub
Control Herdr, a terminal multiplexer for coding agents. Use only when the user explicitly mentions Herdr or asks to use Herdr to inspect or control panes, tabs, workspaces, commands, or another agent. Do not use merely because a task could benefit from a background terminal, delegation, or parallel work. Requires HERDR_ENV=1.
26 other projects use a version of this, 13 of them edited; 9 of 13 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 3 the 4 before.
How people change it
9 of 13 edited versions changed its rules, and some changes recur.
Of the 13 edited versions we compared: 4 keep every rule, 9 made changes of their own.
Rules people drop
- Do not close workspaces, tabs, panes, or sessions you did not create unless the user explicitly asked.
workspace close --groupcloses the primary workspace and its linked worktree workspaces; never add it merely to bypassworkspace_group_close_required.dropped by 8 of 9 - Use
--trust-repositoryonly after the user has verified the repository. It grants per-request Git trust; it is not a routine retry for a failed worktree command.dropped by 8 of 9 - Create a sibling pane with the same geometry rule, preserve the caller's working directory, and keep user focus unchanged:dropped by 5 of 9
- Use the kind requested by the user. Run
herdr agentto inspect the installed kind list and options. Pass native agent arguments only after--:dropped by 4 of 9 - Use
--untilonly for a state-specific workflow, such as waiting for an already-running agent to request input:dropped by 4 of 9 - Use logical keys for interactive agent UI controls:dropped by 3 of 9
- Before issuing any control command, verify that this agent is running inside a Herdr-managed pane:dropped by 2 of 9
- If the check fails, say that you are not running inside Herdr and stop. Do not inspect or control the focused Herdr session from outside Herdr.dropped by 2 of 9
Rules people add
- Do not close workspaces, tabs, panes, or sessions you did not create unless the user explicitly asked.added by 8 of 9
- If a wait fails or returns
blocked, inspectagent getandagent readbefore deciding what input to send. Use the pane surface only when raw terminal control is intentional.added by 4 of 9 - After that failed read, ask the agent to write its complete response as Markdown in a temporary directory and reply only with the file path, then read the file directly. Use this only as a fallback; do not request file output in the initial prompt.added by 4 of 9
- Use workspace and tab commands for organization. Use worktree commands only when you intentionally want Herdr to create, open, or remove a Git checkout.added by 3 of 9
- Read
result.pane.pane_idfrom the JSON response. Give the pane a useful label, then start the requested agent by running only its normal executable so its interactive TUI opens:added by 3 of 9 - Use the executable that belongs to the requested agent:added by 3 of 9
- Do not pass the task as an argv prompt by default. Do not add non-interactive flags. Only change the normal interactive launch when the user explicitly asks for a different launch mode or command.added by 3 of 9
- If the user is watching that tab, completion reports
idleinstead, so wait foridle. Always treat eitheridleordoneas completed when inspectingpane get; the difference is whether the result has been seen.added by 3 of 9
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- runkids/my-skillsword for word, first seen Oct 3, 2026
- davidondrej/skillstheir own version, first seen Oct 3, 2026
- Arylmera/Geneseedtheir own version, first seen Oct 1, 2026
- compozy/compozyedited, first seen Oct 1, 2026
- NAMEWTA/wta-skills-hubtheir own version, first seen Sep 30, 2026
- VicenteOlmos/opencode-herdredited, first seen Sep 27, 2026
Used with
Projects with it also use wayfinder, to-spec and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillwayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
Also in 3 projects that use this
AWSSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
Also in 3 projects that use this
VercelSkillshadcn
Pre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with Radix UI + Tailwind CSS components.
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
Other versions26 projects use a version of this.
Word for word · 3
- herdrdev/herdr★ 42k100% same
- runkids/my-skills★ 14100% same
- wyattjoh/skills★ 2100% same
Edited · 13
- compozy/compozy★ 2.8k99% same
- dmmulroy/skills★ 42885% same
- caikiji/skills-lab★ 499% same
- cypher0n3/dotagents★ 318% same
- las-pinter/persona-agents★ 279% same
- stewartcelani/skills★ 238% same
- VicenteOlmos/opencode-herdr★ 231% same
- wutongyuonce/skills★ 299% same
- cormacc/dotagents★ 199% same
- ElyzeSolutions/skills★ 189% same
3 more not listed
Wrote their own version · 10
- davidondrej/skills★ 4.1ksame name
- ninehills/skills★ 280same name
- ninehills/public-skills★ 86same name
- ulises-jeremias/agent-toolkit★ 18same name
- Arylmera/Geneseed★ 1same name
- bmaltais/skills★ 1same name
- xeroc/skills★ 1same name
- NAMEWTA/wta-skills-hub★ 0same name
- qduc/skills★ 0same name
- wprzechrzta/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-remote-control-serverSkill
- cross-reviewSkill
- fastcontextSkill
- gh-stackSkill
- merge-queueSkill
- needs-youSkill
- orchestrate-sessionsSkill
- quotaSkill
- scarce-resourceSkill
- test-auditSkill
- unnarrateSkill
- unslopSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 7 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Before issuing any control command, verify that this agent is running inside a Herdr-managed pane:
- Distinctive: line 16
If the check fails, say that you are not running inside Herdr and stop.
- Very specific: line 18
When the check passes, the herdr binary in PATH talks to the current session.
- Very specific: line 43
Do not run bare herdr for discovery.
- Very specific: line 77
Prefer --current when a pane command should target the calling pane.
- Distinctive: line 109
Default to a sibling pane in the current tab and the current working directory.
- Very specific: line 131
Use the kind requested by the user.
- Very specific: line 149
Use --until only for a state-specific workflow, such as waiting for an already-running agent to request input:
- Distinctive: line 157
Use logical keys for interactive agent UI controls:
- Distinctive: line 175
Create a sibling pane with the same geometry rule, preserve the caller's working directory, and keep user focus unchanged:
- Very specific: line 181
Read the new pane ID from .result.pane.pane_id, then run and inspect the command:
- Distinctive: line 191
Use the read source that matches the task:
- Very specific: line 198
Use --format ansi when colors and terminal styling are evidence.
- Very specific: line 206
Use --no-focus for background work unless the user asked to switch context.
- Very specific: line 207
Use --current, an explicit pane ID, or a unique agent name.
- Very specific: line 209
Do not close workspaces, tabs, panes, or sessions you did not create unless the user explicitly asked.
- Very specific: line 210
Use --trust-repository only after the user has verified the repository.
- Very specific: line 212
Never run herdr server stop from an active session unless the user explicitly intends to stop the server and its pane processes.
- Distinctive: line 213
Never kill the main Herdr process.
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Herdr
Herdr organizes terminals into workspaces, tabs, and panes, recognizes coding agents running inside panes, and exposes the current session through the herdr CLI.
Before issuing any control command, verify that this agent is running inside a Herdr-managed pane:
test "${HERDR_ENV:-}" = 1If the check fails, say that you are not running inside Herdr and stop. Do not inspect or control the focused Herdr session from outside Herdr.
When the check passes, the herdr binary in PATH talks to the current session. Use it to inspect neighboring work, create terminal layout, start agents and commands, read output, and wait for state changes.
Learn the current CLI
The installed binary is the authority for command syntax. Start with:
herdr --helpThen print the relevant command group by running the group without a subcommand:
herdr agent
herdr pane
herdr workspace
herdr tab
herdr worktree
herdr terminal
herdr notification
herdr integration
herdr session
herdr machineDo not run bare herdr for discovery; it launches or attaches the TUI. Do not probe a mutating nested command by omitting arguments. Commands such as herdr workspace create are valid with defaults and will execute.
Most control commands return JSON. Read identifiers and state from those responses instead of predicting them.
Understand layout, panes, and agents
Choose the primitive that matches the job:
- Workspace, tab, and pane topology organize terminal locations.
- Pane commands control raw terminals, shells, tests, servers, input, and output.
- Agent commands control the recognized coding agent currently occupying a pane.
A pane exists whether or not it contains an agent. agent start requires an existing available shell pane and never creates, splits, or moves layout. Use pane commands for ordinary processes. Use agent commands when Herdr must validate agent identity or interpret idle, working, blocked, done, and unknown lifecycle states.
Agent commands accept either a unique live agent name or the pane ID currently hosting that agent. They do not accept terminal IDs or bare agent-kind labels. Names must match [a-z][a-z0-9_-]{0,31} and be unique among live agents. A name follows the current pane occupant and is cleared when that agent exits, is released, or is replaced.
idle and done both mean the agent is ready for input. The CLI/API uses the server's seen state to distinguish them; explicit focus commands mark the target seen, while reads do not. Each TUI client tracks viewed completions independently, so its Done badge can differ from the CLI or another client's badge. blocked means Herdr recognized an approval or question UI. unknown means an agent is present but Herdr cannot classify it confidently; it does not prove completion.
Use IDs and caller context
Public IDs are opaque stable handles:
- workspace:
w1 - tab:
w1:t1 - pane:
w1:p1
Closed tab and pane IDs are not reused. A pane moved into another workspace receives a new workspace-qualified pane ID. After pane move, continue with .result.move_result.pane.pane_id or the live agent name. The old value is reported as .result.move_result.previous_pane_id; only the moved process's inherited caller context keeps resolving that old ID, so do not use it as a general agent target.
Herdr injects the caller's context into each managed pane:
printf '%s\n' "$HERDR_WORKSPACE_ID" "$HERDR_TAB_ID" "$HERDR_PANE_ID"Prefer --current when a pane command should target the calling pane. An omitted pane split target uses the calling pane when HERDR_PANE_ID is available, otherwise the focused pane. Other commands may use the UI-focused pane, which can belong to the user or another client.
Discover live state with:
herdr workspace list
herdr tab list --workspace "$HERDR_WORKSPACE_ID"
herdr pane current --current
herdr pane list --workspace "$HERDR_WORKSPACE_ID"
herdr agent listCreation responses expose the IDs to use next. workspace create returns .result.workspace, .result.tab, and .result.root_pane. tab create returns .result.tab and .result.root_pane. pane split returns the new pane as .result.pane.
IDs and live agent names are scoped to one server. Two saved SSH machines can both have w1:p1 or an agent named reviewer. Selecting a machine in the TUI does not retarget commands running in your pane: without --machine, they still use the inherited session and socket context.
To control a saved SSH machine, use the same global prefix for discovery and every later command:
herdr --machine <label-or-id> agent list
herdr --machine <label-or-id> pane list
herdr --machine <label-or-id> agent prompt <remote-agent-name> "Reply with your current status." --wait --timeout 120000The selector must be an enabled saved profile ID or a unique, case-sensitive label, not an arbitrary SSH hostname. Commands use that profile's remote session without an open TUI. Do not combine --machine with --session or --remote. Discover IDs on that machine; inherited local IDs and --current do not identify remote panes.
Both installations must support machine API forwarding, and the remote server must already be running and API-compatible. Forwarding never installs, starts, or restarts a server and never falls back to Local. Local configuration, session management, installation commands, and interactive attachment are not forwarded. Remote worktree paths must be absolute, ~, or start with ~/; plugin link paths must be absolute. A connection failure does not prove a mutation was not applied: inspect remote state before retrying.
herdr machine list lists saved connection profiles, not a cross-machine pane inventory; add --json for scripts. Only add, remove, enable, or disable profiles when the user asks. Removing a profile disconnects the client but does not stop remote sessions. Interactive machine add discovers running remote sessions and may ask the user to pick one; non-interactive setup uses the remote default session unless --remote-session is explicitly supplied. Use herdr machine status [<label-or-id>] --json to diagnose a failing machine. herdr machine reconnect needs the user to complete SSH authentication in their terminal; do not run it for them. Setup asks before stopping an incompatible server and defaults to No; do not approve replacement without the user's consent. Experimental handoff is not part of machine add.
Start and coordinate an agent
Default to a sibling pane in the current tab and the current working directory. Do not create a workspace, tab, worktree, or different cwd unless the user explicitly requests that topology or location.
Honor a direction requested by the user. Otherwise inspect the caller pane:
herdr pane layout --pane "$HERDR_PANE_ID"Split a wide pane to the right and a narrow or tall pane down. Avoid repeated same-direction splits that create unusably narrow columns or short rows. Keep the user's focus in the calling pane and explicitly preserve the caller's working directory:
herdr pane split --current --direction right --cwd "$PWD" --no-focusReplace right with down when appropriate. Read the new pane ID from .result.pane.pane_id.
An available shell pane must be at its interactive prompt, with the shell itself in the foreground and no foreground command, editor, or agent running. Start a supported agent in that pane with a useful unique name:
herdr agent start reviewer --kind codex --pane <returned-pane-id>Use the kind requested by the user. Run herdr agent to inspect the installed kind list and options. Pass native agent arguments only after --:
herdr agent start reviewer --kind codex --pane <returned-pane-id> -- <agent-args...>A successful agent start returns only after Herdr detects the expected agent in the same pane and considers it ready for interactive input. If the agent is blocked during startup, the command returns agent_not_ready immediately but keeps the name available for agent read and agent send-keys. Wait until the agent becomes idle before prompting it. Startup defaults to a 30-second timeout.
Submit work through the agent surface:
herdr agent prompt reviewer "Review the current diff and report only actionable findings." --wait --timeout 120000agent prompt honors the pane's live bracketed-paste mode and sends text followed by encoded Enter as one ordered submission. It reports successful submission only after both have been written; that alone does not prove the agent started a turn. For Codex on Windows, Herdr sends a paste boundary before Enter so submission does not depend on prompt size. It rejects an agent already waiting at an approval or question dialog with agent_blocked before sending any input. Inspect the blocked UI and ask the user before answering it. For normal agent work, --wait is enough: it waits for the first settled idle, done, or blocked state. Do not repeat those defaults with --until.
With --wait, a prompt sent from a non-working state must produce observed working or blocked activity. After submission, Herdr waits up to five seconds for that activity; unrelated idle, done, or session changes do not satisfy this gate. It returns agent_prompt_stalled if no activity is observed, or timeout if the caller's timeout expires first. The caller timeout includes submission time. Without a timeout, the settled-state wait is indefinite after activity is observed. This wait tracks lifecycle state, not an individual turn; if the agent is already working, completion of the active turn may satisfy it.
Use --until only for a state-specific workflow, such as waiting for an already-running agent to request input:
herdr agent wait reviewer --until blocked --timeout 120000Without --until, standalone agent wait uses the same settled-state defaults as agent prompt --wait.
Use logical keys for interactive agent UI controls:
herdr agent send-keys reviewer esc
herdr agent send-keys reviewer ctrl+cHerdr validates all keys before writing any bytes. Read the result through the resolved agent:
herdr agent get reviewer
herdr agent read reviewer --source recent-unwrapped --lines 120If a wait fails or returns blocked, inspect agent get and agent read before deciding what input to send. A timeout or stalled response does not prove the prompt was never delivered; do not blindly submit it again. Use the pane surface only when raw terminal control is intentional.
Run an ordinary command in another pane
Create a sibling pane with the same geometry rule, preserve the caller's working directory, and keep user focus unchanged:
herdr pane split --current --direction right --cwd "$PWD" --no-focusRead the new pane ID from .result.pane.pane_id, then run and inspect the command:
herdr pane run <returned-pane-id> "just test"
herdr pane wait-output <returned-pane-id> --match "test result" --timeout 120000
herdr pane read <returned-pane-id> --source recent-unwrapped --lines 120pane run atomically sends command text and Enter. pane wait-output searches the selected snapshot immediately, so output that already exists can match. Use --match <text> for a literal substring or --regex <pattern> for a Rust regular expression. Omitting --timeout allows an indefinite wait.
Use the read source that matches the task:
visible: the currently rendered viewport.recent: recent rendered output, including soft wraps.recent-unwrapped: recent output with soft wraps joined; prefer it for logs and transcripts.detection: the plain-text bottom-buffer snapshot used for agent detection.
Use --format ansi when colors and terminal styling are evidence. Otherwise use text.
--lines asks Herdr for more rows from the pane's available screen and host scrollback. Alternate-screen rows do not enter ordinary host scrollback. For supported idle agents, Herdr can collect application-owned history and restore the viewport afterward, but not every application or response can be recovered this way.
If a larger recent read still does not reveal the completed response, ask the agent to write it as Markdown in a temporary directory and reply only with the file path, then read that file on the same machine. Use this only as a fallback; do not request file output in the initial prompt.
Safety and coordination rules
- Use
--no-focusfor background work unless the user asked to switch context. - Use
--current, an explicit pane ID, or a unique agent name. Do not rely on another client's focused pane. - Parse IDs from JSON responses. Do not derive them from sidebar order or examples.
- Do not close workspaces, tabs, panes, or sessions you did not create unless the user explicitly asked.
workspace close --groupcloses the primary workspace and its linked worktree workspaces; never add it merely to bypassworkspace_group_close_required. - Use
--trust-repositoryonly after the user has verified the repository. It grants per-request Git trust; it is not a routine retry for a failed worktree command. - Client and server versions can differ after an update. Check
herdr statusbefore relying on new server features. A missing method is not permission to stop or upgrade a server. - Never run
herdr server stopfrom an active session unless the user explicitly intends to stop the server and its pane processes. - Never kill the main Herdr process. Use named test sessions for experiments that need an isolated server.
- CLI server errors are JSON on stderr with exit status 1. CLI syntax errors exit with status 2.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

