What is the Herdr skill?
Herdr is a coding skill by davidondrej for Claude Code, Cursor, Codex and other AI coding agents. Operate and coordinate AI agents in Herdr workspaces in Ghostty. Use when the user mentions Herdr or asks to inspect, message, wait for, or coordinate its agents. Excludes cmux and ordinary terminal sessions.
Herdr's CLI controls terminal panes through a local socket; it provides neither native agent-to-agent communication nor shared memory. It works with Pi, Codex, Claude Code, Cursor CLI, and other terminal agents. Native integrations improve detection, status accuracy, and session restoration.
When to use it
Use when the user mentions Herdr or asks to inspect, message, wait for, or coordinate its agents.
What the SKILL.md covers
- Preconditions
- Inspect, message, wait, read
- Operational details
- Sessions and targeting
- Input
- Reading and status
- Workspace and tab lifecycle
- Other details
- Launch agents only when the user asks
- Cursor CLI
- Author
- davidondrej
- Pack
- davidondrej/skills (30 skills)
- Category
- Coding, #667 of 1826
- Alyn Score
- 69 / 99
- Files
- 1
- License
- MIT
- Last updated
- 2 days ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Herdr compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Herdr · davidondrej | 69 | 4.4k | 2 days ago |
| Terminal · zhinkgit | 48 | 812 | 8 days ago |
| Wait What · Matt Pocock | 82 | 332k | 31 h ago |
| Competition Lsass Ticket Material · zhaoxuya520 | 83 | 45k | 11 days ago |
Install Herdr
Pick your agent. Every command is ready to paste.
npx alyn-cli add herdrDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add davidondrej/skills --skill herdrOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads herdr when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the herdr skill”. In Codex, type $herdr.
Herdr
Herdr's CLI controls terminal panes through a local socket; it provides neither native agent-to-agent communication nor shared memory. It works with Pi, Codex, Claude Code, Cursor CLI, and other terminal agents. Native integrations improve detection, status accuracy, and session restoration.
Preconditions
Run the controlling agent inside Herdr in Ghostty. Verify access and workspace scope:
test "${HERDR_ENV:-}" = "1"
test -n "${HERDR_WORKSPACE_ID:-}"
If either fails, tell the user this agent must be launched inside Herdr; do not claim access to other agents.
One-time installation:
npx skills add ogulcancelik/herdr --skill herdr -g
Inspect, message, wait, read
Append --session <name> to every Herdr command. HERDR_SESSION alone can silently select an already-running server. Discover pane IDs; never guess them.
herdr pane list --workspace "$HERDR_WORKSPACE_ID" --session <name>
herdr pane read <pane-id> --source recent-unwrapped --lines 200 --session <name>
# For TUI agent composers, separate text from Enter
herdr pane send-text <pane-id> "Check the failing tests and report back." --session <name>
sleep 1
herdr pane send-keys <pane-id> enter --session <name>
# Confirm submission, then wait for completion (idle if the integration uses it)
herdr agent wait <pane-id> --status working --timeout 120000 --session <name>
herdr agent wait <pane-id> --status done --timeout 120000 --session <name>
herdr pane read <pane-id> --source recent-unwrapped --lines 200 --session <name>
Stay in the current workspace. Read before messaging; send nothing for inspection-only requests. Confirm submission through a native status transition to working/blocked after Enter, never merely changed pane content. Wait for done, idle, or blocked, then read again; do not assume the prompt was acted on. Corroborate idle with pane text as described below.
When coordinating agents, share missing context, prevent duplicate work, and return one combined summary.
Do not close, rename, move, resize, or reconfigure panes you did not create. Create or close panes only when the user explicitly asks. “Use the Herdr skill” means execute the CLI workflow, not merely explain it.
Operational details
Sessions and targeting
- Use named
herdr session stop <name>/herdr session delete <name>for destructive operations. Never useherdr server stop; it targets the ambient server. - Targets are
<session>:<pane-id>. Pane IDs contain a colon (w1:p2); split on the first colon only. - CLI calls do not auto-start a server. Start headless with
herdr server --session <name>. - Managed processes receive
HERDR_ENV=1andHERDR_PANE_ID. Inside nested tmux,$TMUXwins: treat the pane as tmux. - Use an isolated named session, never
default, for risky experiments. Re-checkherdr session list --json --session <name>immediately before stopping or deleting.
Input
pane send-texttypes without submitting.pane runsends text + Enter and works at shell prompts, but TUI composers (Claude Code, Cursor CLI) may swallow Enter as part of a paste. Use separatesend-text, ~1s pause, thensend-keys <pane> entercalls for TUIs.- C0 control bytes (e.g. ASCII 0x1f) trigger terminal actions and can erase typed text. Use U+2063 INVISIBLE SEPARATOR for invisible text markers.
- Slash-command autocomplete may consume the first Enter to close the popup or fill an argument placeholder.
escapedismisses the popup while preserving text.
Reading and status
pane read --lines Nreturns empty output if N is below viewport height. Request at least 200 lines and at least the viewport height; trim locally withtail -n N.pane get.cwdis fixed at creation;.foreground_cwdis live.- Use
pane read --format ansito distinguish placeholder text from human drafts: suggestions are dim (SGR-2) or dark truecolor; typed input renders normally. Plain text cannot reliably distinguish them. herdr agent get <pane>reports nativeworking/idle/done/blocked/unknownstatus; prefer it to regex guesses. Long-running foreground tools may still reportidle; check busy banners such as "esc to interrupt" before treating the pane as free or stale.- Native waits:
herdr agent wait <pane> --status <s> --timeout MS,herdr wait agent-status <pane> --status <s> --timeout MS, andherdr wait output <pane> --match <text>. - Socket protocol >=16 offers
pane.agent_status_changedandpane.output_matchedevents. Prefer events, with polling as a backstop. - Scripts can register via
pane report-agentand report idle/working/blocked.
Workspace and tab lifecycle
- Labels are not unique. Check duplicates yourself; find-by-label adopts the first match. Unlabeled workspaces display their cwd basename, which can collide with an explicit label.
workspace createseeds tab1. Closing the last tab deletes the workspace; closing a tab's only pane closes the tab.- Workspace/tab creation respects
--no-focus, except the first workspace in an empty session.pane split --no-focusstill shrinks the host viewport: focus and geometry are separate. - Named-session restarts preserve IDs and labels, but not processes or agent registrations. Restored panes are fresh shells (
agent_not_found), not live duplicates; close and replace them only within the pane permissions above.
Other details
- Do not use
tput colsfor layout in scripts launched throughpane run; it can report a stale default of 80. herdr integration install <harness>(claude, codex, cursor, pi, ...) enables native status detection.herdr notification show <title>displays an alert.
Launch agents only when the user asks
ALWAYS launch agents with auto-approval — an unattended worker can otherwise stall on an unanswered prompt:
- Cursor CLI:
cursor-agent --yolo "task"(alias for--force) - Codex CLI:
codex --yolo "task" - Claude Code:
claude --dangerously-skip-permissions "task"
First-run trust dialogs may still appear; inspect the pane after launch. Install each integration once for native status detection.
Verify launch with herdr agent wait <pane> --status working --timeout MS or herdr wait output <pane> --match <text>, then read. Never use sleep N && pane read as launch verification; the short input-submission pause above serves a different purpose.
Cursor CLI
Use cursor-agent in scripts. agent is an alias/new docs name; the user's interactive cur shorthand may expand to cursor-agent --yolo, but aliases do not expand in scripts.
Discover available model slugs with cursor-agent --list-models before launching into an existing shell pane:
herdr pane run <pane-id> "cd <worktree> && cursor-agent --model <verified-model-slug> --yolo 'fix the failing tests'" --session <name>
- Interactive:
cursor-agent "task", or no argument for an empty session. Headless:cursor-agent -p "task" --output-format text|json|stream-json. - Permissions:
--force/--yoloskips per-command approval;--sandbox enabled|disabledcontrols sandboxing. Script auth:CURSOR_API_KEY. - Model:
--model <slug>at launch,/modelin-session. Slugs vary by version/account; never invent them from memory. - Effort: no
--effortflag. Use full slugs ending in-low,-medium,-high, or-xhigh(e.g.gpt-5.3-codex-xhigh,claude-opus-4-8-thinking-high).-fastcontrols speed, not effort. Despite--help,model[effort=high]is unsupported. - Some builds silently drop
--modelreasoning suffixes. Verify with/modelafter launch;--disable-auto-updatepreserves a working build. - Resume:
cursor-agent resume(latest),--resume <chatId>, orcursor-agent lsto list.
Direct shortcuts
Most defaults use Ctrl+B. Direct Ctrl+Alt shortcuts rarely conflict. Add to ~/.config/herdr/config.toml:
[keys]
new_workspace = "ctrl+alt+n"
workspace_picker = "ctrl+alt+w"
goto = "ctrl+alt+g"
new_tab = "ctrl+alt+c"
Apply with:
herdr server reload-config --session <name>
To keep prefixed shortcuts with a different prefix, set prefix = "ctrl+a" under [keys].
Tips for Herdr
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Herdr
What does the Herdr skill do?
Operate and coordinate AI agents in Herdr workspaces in Ghostty. Use when the user mentions Herdr or asks to inspect, message, wait for, or coordinate its agents. Excludes cmux and ordinary terminal sessions.
How do I install Herdr?
Run "npx alyn-cli add herdr" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Herdr work in Cursor and Codex?
Yes. Herdr uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Herdr skill?
Use when the user mentions Herdr or asks to inspect, message, wait for, or coordinate its agents.
What is inside the Herdr skill?
The SKILL.md covers Preconditions, Inspect, message, wait, read, Operational details, Sessions and targeting, Input, Reading and status.
What is a good alternative to Herdr?
Terminal by zhinkgit is the highest-ranked similar skill from another creator, with an Alyn Score of 48 compared to 69 for Herdr.
Is Herdr free?
Herdr is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Herdr?
Herdr is published by davidondrej in the davidondrej/skills repository, together with 29 other skills.


