herdr
Skill0 starsChanged 9 days agoMITView on GitHub
Drive Herdr panes, tabs, agents, and worktrees via the herdr CLI. Use when a Herdr pane or agent must be read or driven. Not for process lists (session-finder).
59 other projects use a version of this.
Adopted by
Most recently taken up by
- skalskidaniel/agent-skillstheir own version, first seen Nov 29, 2026
- alvaroofernaandez/dotfilestheir own version, first seen Nov 29, 2026
- TudorAndrei/skillstheir own version, first seen Nov 29, 2026
- tonanywhere/my-favorite-promptstheir own version, first seen Nov 29, 2026
- compozy/compozytheir own version, first seen Nov 28, 2026
- DanaResearchGroup/agent-skillstheir own version, first seen Nov 25, 2026
Used with
Projects with it also use rex, better-accessibility and 10 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.
gowizzardSkillrex
Use the rex CLI to manage Rex sessions, open tabs, arrange panes, run commands, inspect terminal output, and control connected Rex apps.
Also in 3 projects that use this
AnasX7Skillbetter-accessibility
Helps your project comply with accessibility standards and best practices.
Also in 4 projects that use this
AnasX7Skillbetter-layout
Helps with grouping, alignment, reading order, progressive disclosure and other details that make a good layout.
Also in 3 projects that use this
GoogleSkillwayfinder
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 9 projects that use this
kannaka-labsSkillskill-doctor
Environment diagnostics — check providers, auth, config, hooks, scheduler, and more. Use when: AUTOMATICALLY ACTIVATE when user asks about:. \"doctor\" or \"run doctor\" or \"diagnostics\". \"check my setup\" or \"is everything working\"
Also in 3 projects that use this
GoogleSkillto-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 9 projects that use this
- +3 more from AnasX7
- +1 more from google
Other versions59 projects use a version of this.
Word for word · 1
- trac3r00/agent-skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 58
- ogulcancelik/herdr★ 53ksame name
- herdrdev/herdr★ 53ksame name
- davidondrej/skills★ 4.4ksame name
- compozy/compozy★ 2.9ksame name
- dmmulroy/skills★ 428same name
- ninehills/skills★ 280same name
- sammcj/agentic-coding★ 174same name
- ninehills/public-skills★ 86same name
- romiluz13/mifal★ 49same name
- stealth-factory/opscope★ 40same name
48 more not listed
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 repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- 3d-designSkill
- anti-bsSkill
- api-testerSkill
- apple-homeSkill
- apple-suiteSkill
- apple-tvSkill
- apps-handoffSkill
- appshotSkill
- astra-initSkill
- browser-asideSkill
- changelog-genSkill
- ci-test-rebuildSkill
- claim-auditSkill
- claude-designSkill
- cleanup-worktreesSkill
- code-reviewSkill
- comment-checkerSkill
- context-budgetSkill
- create-skillsSkill
- cron-auditSkill
- cyber-bypassSkill
- dftSkill
- diff-reviewSkill
- discord-messengerSkill
- doc-readerSkill
- env-gateSkill
- ext-scaffoldSkill
- fddSkill
- finderSkill
- finish-prSkill
- game-filmSkill
- gate-graphSkill
- graph-toolsSkill
- image-genSkill
- init-readmeSkill
- init-rulesSkill
- iphone-mirroringSkill
- json-diffSkill
- kakao-messengerSkill
- karpathy-promptSkill
- loeSkill
- log-analyzerSkill
- macos-settingsSkill
- max-buildSkill
- mofficeSkill
- net-probeSkill
- notionSkill
- obsidian-vaultSkill
- omo-runnerSkill
- open-loopsSkill
- optimize-omo-configSkill
- phone-facetimeSkill
- portfolio-auditSkill
- preflightSkill
- project-sessionsSkill
- prompt-builderSkill
- pro-reviewSkill
- proxmox-veSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 57 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read a reference only when the task needs it:
- Very specific: line 47
Never run bare herdr (it attaches the interactive TUI) and never probe a mutating command by dropping arguments: herdr workspace create …
- Distinctive: line 63
Pane vs agent: Use pane commands for shells, tests, servers, and log tails.
- Distinctive: line 139
If a large read still misses the answer, have the agent write its report to a temp Markdown file and reply with the path.
- Distinctive: line 144
Every CLI verb wraps one socket method, one JSON object per line:
- Very specific: line 160
Don't close workspaces, tabs, panes, or sessions you didn't create.
- Distinctive: line 163
Never answer another agent's dialog, stop the server, or kill the main Herdr process without the user's explicit say.
- Very specific: line 165
After an update, client and server versions can differ.
“Common” is measured: kept by at least 6 in 10 of the 57 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 is a terminal workspace manager for coding agents: workspaces -> tabs -> panes.
It recognizes the agent in a pane, tracks its state (idle, working, blocked, done,
unknown), and exposes everything through the herdr CLI and a Unix-socket JSON API.
With it you can run commands in sibling panes and drive other agents the way a person would.
Read a reference only when the task needs it:
| File | Read when |
references/cli-reference.md | You need a subcommand or flag not shown below |
references/recipes.md | Worktrees, --machine remotes, named sessions, notifications, diagnosis |
references/api.md | Talking to the socket directly, event subscriptions, error codes |
references/config.md | Editing config.toml, keybindings, themes |
references/integrations.md | Installing or checking agent-state integrations |
1. Environment gate (always first)
test "${HERDR_ENV:-}" = 1 && echo "pane $HERDR_PANE_ID" || echo "not inside Herdr"- Inside Herdr. You have caller context:
HERDR_PANE_ID,HERDR_WORKSPACE_ID,HERDR_TAB_ID,HERDR_SOCKET_PATH,HERDR_BIN_PATH. Prefer--currentand treat your pane as home base. - Outside Herdr. The CLI still reaches the default socket (
~/.config/herdr/herdr.sock), so read-only discovery and explicit-ID control work. There's no--current, and the UI-focused pane may belong to the user. Always pass explicit--pane/--workspace/--tabIDs and never infer targets from sidebar order. - Herdr.app instead.
HC_TERMINAL_IDset andHERDR_ENVunset means the macOS app over herdr-core. Terminals aret7-style addresses, the window is driven byherdr-app(ls,status,commands,do <cmd>), terminals byhc(ls,get,read,send,keys,interrupt,wait,events). This skill'sherdrcommands don't apply; readherdr-app --skillandhc --skill. If both env sets exist, terminal Herdr is the host.
Never run bare herdr (it attaches the interactive TUI) and never probe a mutating
command by dropping arguments: herdr workspace create runs with defaults. Use
herdr <group> [<sub>] --help for discovery.
2. Mental model
| Object | Example | Notes |
| Workspace | w1, w1J | Directory-scoped sidebar space |
| Tab | w1:t1 | Workspace-qualified |
| Pane | w1:p1 | Hosts a terminal, maybe an agent |
IDs are opaque; closed IDs are never reused. Read IDs from creation responses, never
predict them: workspace create -> .result.workspace, .result.tab, .result.root_pane;
tab create -> .result.tab, .result.root_pane; pane split -> .result.pane.pane_id.
Pane vs agent. Use pane commands for shells, tests, servers, and log tails. Use agent
commands when Herdr must check agent identity or state. An agent target is a unique live
agent name ([a-z][a-z0-9_-]{0,31}) or the hosting pane ID, never a kind label like
claude. A name is cleared when that agent exits or is replaced.
States. idle and done both mean ready for input. blocked means Herdr saw an
approval or question dialog. unknown is an unclassified agent and is not proof of
completion.
Defaults. An omitted pane split target means your own pane when HERDR_PANE_ID
exists. Other commands may default to the UI-focused pane, which can be someone else's.
Be explicit for anything that writes.
3. Waiting from OmO: subscribe, don't sleep
Herdr's own waits block until the condition holds, so they are the event. From an OmO
eval cell, run them under tool.monitor and keep working; the watch wakes the turn:
tool.monitor({ description: "tests in sibling pane",
command: `herdr pane wait-output ${pane} --match "passed" --timeout 600000 && echo HERDR_READY`,
filter: "^HERDR_READY$" })Same shape for herdr agent wait <target> --timeout <ms> (default matches idle, done,
or blocked) and herdr agent prompt <target> "<text>" --wait --timeout <ms>. Always pass
--timeout: without it these wait forever. Never write sleep loops or repeated
pane read polls. For many agents at once, the socket's events.subscribe stream is the
single subscription (see references/api.md).
4. Recipes
Run a command in a sibling pane, keep the user's focus
herdr pane layout --pane "$HERDR_PANE_ID" # wide -> right, tall -> down
herdr pane split --current --direction right --cwd "$PWD" --no-focus # read .result.pane.pane_id
herdr pane run "$NEW" "pytest -q" # text plus Enter, atomically
herdr pane wait-output "$NEW" --match "passed" --timeout 120000
herdr pane read "$NEW" --source recent-unwrapped --lines 120wait-output checks existing output first, then keeps checking; --match is a literal
substring, --regex a Rust regex, --source is visible|recent|recent-unwrapped. Don't
stack same-direction splits into unusable slivers.
Start another agent and give it work
herdr agent start reviewer --kind codex --pane "$NEW" # pane must sit at a shell prompt
herdr agent prompt reviewer "Review the staged diff; report only actionable findings." \
--wait --timeout 120000
herdr agent read reviewer --source recent-unwrapped --lines 120agent start creates no layout and returns once the agent is detected and ready
(default 30 s, max 300 s); pass native agent flags after --.
agent prompt outcomes:
agent_blocked: the agent was already at a dialog, nothing was sent. Read the screen and ask the user before answering it.agent_prompt_stalled: noworking/blockedwithin 5 s of submission.timeout: your--timeoutexpired first.- It doesn't track turns. If the agent was already working, that turn's end may match.
A stall or timeout doesn't prove the prompt wasn't delivered: run agent get and
agent read before retrying. Keys go through herdr agent send-keys <target> esc
(validated before any byte is written). Catch an agent asking for input with
herdr agent wait <target> --until blocked --timeout <ms>.
Read output well
--source visible (viewport), recent (default, soft wraps kept), recent-unwrapped
(best for logs), detection (the bottom-buffer text Herdr classifies; pane read only).
--lines N pulls more scrollback, --format ansi keeps styling, --raw keeps escapes.
If a large read still misses the answer, have the agent write its report to a temp
Markdown file and reply with the path.
5. Socket API in one screen
Every CLI verb wraps one socket method, one JSON object per line:
{"id":"cli:pane:get","method":"pane.get","params":{"pane_id":"w1:p1"}}
{"id":"cli:pane:get","result":{"type":"pane_info","pane":{"pane_id":"w1:p1","agent_status":"idle"}}}
{"id":"cli:pane:get","error":{"code":"pane_not_found","message":"pane w99:p9 not found"}}herdr api schema --json is the authority on methods; herdr api snapshot returns live
{agents, panes, tabs, workspaces, layouts, focused_*}. Exit codes: 0 ok, 1 server
error, 2 syntax.
6. Safety
--no-focusfor background work unless the user asked to switch context.- Target with
--current, an explicit ID, or a unique agent name. - Don't close workspaces, tabs, panes, or sessions you didn't create.
workspace.close'sclose_groupalso closes linked worktree workspaces; never add it just to get pastworkspace_group_close_required. - Never answer another agent's dialog, stop the server, or kill the main Herdr process without the user's explicit say.
- After an update, client and server versions can differ. Check
herdr status --jsonbefore relying on new features; a missing method isn't permission to restart the server.
Verified environment
Checked on 2026-11-08 with read-only --help and status --json: herdr 0.9.5, client
and server protocol 22, server capabilities live_handoff, surface_interest,
health_check, ssh_agent_registration (detached_server_daemon false), macOS arm64,
socket ~/.config/herdr/herdr.sock. hc and herdr-app help match the Herdr.app notes
above. Re-run herdr --version and herdr api schema --json after an update.
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.

