herdr-throwaway-repro
Skill42k starsChanged 3 months agoApache-2.0View on GitHub
Create and control a disposable named Herdr session from inside an existing Herdr session. Use for isolated Herdr runtime, pane, terminal, process, API, persistence, or agent reproductions that should be driven through the CLI/API without touching the default session.
Trending
More talk lately.about the whole repository
Who's talking about herdrdev/herdr
- @orhun.dev“New terminal multiplexer in town! 🎉 Powered by @ratatui.rs 🐀 🐑 herdr — run multiple AI coding agents in …”Bluesky · Aug 15, 2026 · 52 likes
- herdrdev/herdr-app“Expose a command to clear terminal screen and scrollback, matching TUI `clear_pane`”GitHub · Nov 2, 2026 · 7 reactions
- stablyai/orca“[Feature]: Add senpi and omo (OmO Native) to the agent catalog”GitHub · Sep 4, 2026 · 6 reactions
- omacom/omarchy“Leave the alternate screen only when the connection dropped”GitHub · Aug 24, 2026 · 4 reactions
- A Hacker News story“Support multiple remote Herdr servers”Hacker News · Sep 7, 2026 · 3 points
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub, Bluesky and Hacker News (30 times).
On GitHub · 23
- Nov 2, 2026Expose a command to clear terminal screen and scrollback, matching TUI `clear_pane` — herdrdev/herdr-app7 reactions · 3 comments
- Sep 4, 2026[Feature]: Add senpi and omo (OmO Native) to the agent catalog — stablyai/orca6 reactions · 3 comments
- Aug 24, 2026Leave the alternate screen only when the connection dropped — omacom/omarchy4 reactions · 7 comments
- Sep 12, 2026feat: make copy mode keybindings configurable — shibayu36/herdr2 reactions
- Aug 20, 2026WezTerm abort()s (180GB MALLOC) when opening terminal-browser inside Herdr — zenbu-labs/terminal-browser2 reactions
18 more on GitHub
- Nov 30, 2026每周维护 2026-11-30:新增 7 条 (0.0.4) — 7ochard/void_links1 reaction · 1 comment
- Nov 19, 2026feat: show plugin actions in pane, tab, and workspace menus — sheprd-labs/sheprd1 reaction · 3 comments
- Nov 17, 2026docs(positioning): Linux-first positioning, sourced multi-agent alternatives and first-run feedback — kamanager2012/dsh-community1 reaction · 1 comment
- Nov 8, 2026Improving interoperability with other Pi extensions (optional memory-only mode?) — jonaslsaa/pi-optchat1 reaction
- Nov 5, 2026Windows: update checks fail silently when curl can't check certificate revocation, and Settings only says "No successful check" — herdrdev/herdr-app1 reaction
- Nov 1, 2026[Feature]: CLI event stream for agent status (`orca events subscribe`) — stablyai/orca1 reaction · 1 comment
- Oct 30, 2026fix: refresh Herdr upstream references and licensing — kunchenguid/firstmate1 reaction · 1 comment
- Oct 27, 2026Should remote connections automatically start a stopped core? — herdrdev/herdr-core1 reaction · 3 comments
- Oct 26, 2026Three herdr sleep plugins exist, want to combine efforts — dalogax/herdr-agent-hibernate1 reaction · 3 comments
- Oct 25, 2026test: add fail-closed test for the pinned Herdr installer — kunchenguid/firstmate1 reaction · 12 comments
- Oct 22, 2026Lazygit intermittently opens in a search/filter state when launched from Herdr UI — jesseduffield/lazygit1 reaction
- Oct 19, 2026feat: add native Omo settings and agent mark — sheprd-labs/sheprd1 reaction · 2 comments
- Sep 30, 2026[BUG] Escape fails in herdr with Kitty keyboard enabled — tw93/Kaku1 reaction · 1 comment
- Sep 27, 2026feat(tmux_helper): detect OSC 8 hyperlink targets in pick-links — idvorkin/Settings1 reaction · 1 comment
- Sep 22, 2026Fix Arch package tokenizer crash by using vendored dependencies — Raudbjorn/spoon1 reaction · 2 comments
- Sep 18, 2026herdr: 0.9.0 -> 0.9.1 — NixOS/nixpkgs1 reaction
- Aug 28, 2026Native Herdr integration - please support — CommandCodeAI/command-code1 reaction · 2 comments
- Aug 2, 2026feat: report async status to Herdr — nicobailon/pi-subagents1 reaction · 1 comment
On Bluesky · 5
- Aug 15, 2026New terminal multiplexer in town! 🎉 Powered by @ratatui.rs 🐀 🐑 herdr — run multiple AI coding agents in persistent terminal sessions and… — @orhun.dev52 likes and reposts · 6 replies
- Oct 24, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 herdrdev / herdr ⭐ 45,619 (+147) 🗒 Rust the runtime your coding agents live on — @github-trending-rs.bsky.social1 likes and repost
- Nov 8, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 herdrdev / herdr ⭐ 49,268 (+374) 🗒 Rust the runtime your coding agents live on — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
- Oct 31, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 herdrdev / herdr ⭐ 47,028 (+264) 🗒 Rust the runtime your coding agents live on — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
- Aug 18, 20264. Herdr is a Rust-based persistent runtime for coding agents, managing durable terminal sessions that survive disconnects while enabling… — @rustaceans.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Sep 7, 2026Support multiple remote Herdr servers3 points
- Oct 10, 2026Herdr does not accept unsolicited pull requests2 points
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- herdr-pre-release-auditSkill
- triageSkill
- herdrSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 22 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
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
- could be automatic: a setting could enforce it
- Very specific: line 8
Use a disposable named Herdr session when a reproduction needs a real Herdr server, panes, PTYs, agents, or socket API without risking the …
- Distinctive: line 14
Never run the reproduction in the default session.
- Very specific: line 15
Never stop, restart, delete, or kill the main Herdr server.
- Very specific: line 16
Never use pkill, broad process matching, or guessed PIDs for cleanup.
- Distinctive: line 17
Create a unique session name.
- Distinctive: line 18
Create a new outer pane and close only that pane during cleanup.
- Distinctive: line 19
Read workspace, tab, pane, terminal, and agent IDs from command output.
- Very specific: line 20
Use /var/tmp for reproduction directories and potentially large artifacts.
- Distinctive: line 21
Do not approve destructive or unnecessary agent actions.
- Distinctive: line 22
Do not spend paid agent tokens without the user's approval.
- Very specific: line 45
Create a sibling shell pane in the current tab without moving focus.
- Very specific: line 47
Use /var/tmp or a dedicated reproduction directory as the new pane's cwd.
- Very specific: line 53
Before launching, explicitly allow nesting in the configuration the disposable client will actually load.
- Distinctive: line 59
Create a test-only config under the reproduction directory using the file-writing tool.
- Very specific: line 67
If reproducing with the user's configuration, copy that configuration into the test directory and enable allow_nested in its existing …
- Distinctive: line 74
Use the same override for config validation and any commands that must load the test config.
- Distinctive: line 80
Run the named session inside the new outer pane.
- Distinctive: line 94
Add reproduction-specific environment variables to this launch command when needed.
- Distinctive: line 101
Do not continue until the named session's API is ready.
- Distinctive: line 105
Every control command issued from the parent must clear inherited socket overrides and explicitly select the temporary session:
- Very specific: line 120
Read the disposable root pane ID from pane list.
- Distinctive: line 126
Use pane commands for shells and ordinary processes:
- Very specific: line 135
Use agent commands only after Herdr recognizes a coding agent:
- Distinctive: line 144
Run the relevant command group's help first because names and options may change.
- Distinctive: line 146
Prefer waits over arbitrary sleeps.
- Distinctive: line 148
When a needed terminal key is unsupported by the high-level command, send its terminal sequence through the disposable pane only after …
- Very specific: line 152
Before launching an agent, inspect its installed --version and --help.
- Distinctive: line 156
Use harmless operations for permission-state testing.
- Very specific: line 170
Read the named session directory and socket from herdr session list instead of assuming their paths.
- Distinctive: line 179
Verify that harmless probe files or other test artifacts do not exist, or remove only artifacts created by this reproduction.
- Distinctive: line 180
Stop the temporary named session with the installed session command.
- Distinctive: line 181
Delete that same stopped session.
- Distinctive: line 183
Wait for the outer pane to return to its shell.
- Distinctive: line 186
Never delete another named session because it looks stale.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Herdr throwaway reproduction
Use a disposable named Herdr session when a reproduction needs a real Herdr server, panes, PTYs, agents, or socket API without risking the user's main session.
The temporary TUI only keeps the disposable session attached and supplies terminal geometry. Drive the reproduction from the parent session through Herdr's CLI/API. Do not manually operate the nested TUI unless the bug specifically requires client input.
Non-negotiable safety
- Never run the reproduction in the default session.
- Never stop, restart, delete, or kill the main Herdr server.
- Never use
pkill, broad process matching, or guessed PIDs for cleanup. - Create a unique session name. Never reuse or delete an unrelated named session.
- Create a new outer pane and close only that pane during cleanup.
- Read workspace, tab, pane, terminal, and agent IDs from command output. Never construct them.
- Use
/var/tmpfor reproduction directories and potentially large artifacts. - Do not approve destructive or unnecessary agent actions.
- Do not spend paid agent tokens without the user's approval. Use the requested low-cost model and the smallest useful prompts.
Learn the installed interface first
The installed binary is the authority. CLI syntax may have changed since this skill was written.
Confirm the caller is inside Herdr and inspect the relevant help before doing anything:
test "${HERDR_ENV:-}" = 1
herdr --version
herdr --help
herdr session
herdr pane
herdr agentInspect nested command help before using unfamiliar or potentially mutating commands. Do not run bare herdr for discovery because it launches or attaches the TUI.
Record which Herdr binary and version the reproduction tests. If testing a checkout build, follow the repository's instructions for running that build instead of silently substituting the installed binary.
Create the outer pane
Create a sibling shell pane in the current tab without moving focus. Use an available Herdr layout tool when the harness provides one. Otherwise use the installed pane split command after checking its help.
Use /var/tmp or a dedicated reproduction directory as the new pane's cwd. Save the returned outer pane ID. This is the only parent-session pane that cleanup may close.
Start the disposable session
Choose a short unique name such as repro-<topic>-<timestamp>.
Before launching, explicitly allow nesting in the configuration the disposable
client will actually load. HERDR_ENV=1 is inherited from the outer pane, so the
launch is otherwise rejected unless [experimental].allow_nested is enabled.
An isolated XDG_CONFIG_HOME does not inherit this setting from the user's global
config, even when nesting is enabled there.
Create a test-only config under the reproduction directory using the file-writing tool. For a default-config reproduction, its contents can be:
[experimental]
allow_nested = trueIf reproducing with the user's configuration, copy that configuration into the
test directory and enable allow_nested in its existing [experimental] table
(or add the table if absent). Do not create duplicate tables or keys. Never edit
the user's global configuration to permit a reproduction, and do not unset
HERDR_ENV to bypass the nesting check.
Pass the absolute test config path as HERDR_CONFIG_PATH when launching below.
Use the same override for config validation and any commands that must load the
test config. This override selects a config file; it does not isolate the saved
machine catalog or other global state. Use test-only XDG_CONFIG_HOME and
XDG_STATE_HOME as well when the reproduction changes saved machines, and retain
those overrides on every command addressing that test environment.
Run the named session inside the new outer pane. Clear inherited session selection, socket overrides, and caller IDs so the nested runtime cannot accidentally address the parent session:
env \
-u HERDR_SOCKET_PATH \
-u HERDR_CLIENT_SOCKET_PATH \
-u HERDR_SESSION \
-u HERDR_WORKSPACE_ID \
-u HERDR_TAB_ID \
-u HERDR_PANE_ID \
HERDR_CONFIG_PATH=<absolute-test-config-path> \
herdr --session <session-name>Add reproduction-specific environment variables to this launch command when needed. Environment variables that configure the server must be present before the named server starts.
Validate the test config with herdr config check using the same config override
before launch. After launch, read the outer pane to catch startup errors such as
nested herdr is disabled by default; do not assume the launch succeeded merely
because pane run returned successfully.
Do not continue until the named session's API is ready. Confirm readiness by addressing that session from the parent and listing its panes.
Address only the disposable session
Every control command issued from the parent must clear inherited socket overrides and explicitly select the temporary session:
env \
-u HERDR_SOCKET_PATH \
-u HERDR_CLIENT_SOCKET_PATH \
-u HERDR_WORKSPACE_ID \
-u HERDR_TAB_ID \
-u HERDR_PANE_ID \
HERDR_SESSION=<session-name> \
herdr pane listRepeat this prefix for every command. Do not rely on shell state persisting between tool calls.
Read the disposable root pane ID from pane list. Confirm its cwd and foreground process before starting anything in it.
Named sessions isolate runtime state, sockets, panes, and persistence. They still share global Herdr configuration and agent manifest overrides by default. Check configuration provenance when it could affect the reproduction. Do not modify shared configuration merely to make the test pass.
Drive the reproduction through the API
Use pane commands for shells and ordinary processes:
pane runto start a command at an available shell prompt.pane wait-outputto wait for deterministic output.pane readto capture terminal contents.pane send-textfor literal input.pane send-keysfor supported keys.pane get,pane process-info, andpane layoutfor runtime state.
Use agent commands only after Herdr recognizes a coding agent:
agent startto launch a supported agent in an existing shell pane.agent promptto submit one prompt atomically.agent waitto wait forworking,blocked,idle,done, orunknown.agent readto capture the agent terminal.agent getandagent explainto inspect state and detection.agent send-keysfor interactive responses.
Run the relevant command group's help first because names and options may change.
Prefer waits over arbitrary sleeps. When timing itself is under test, record timestamps and use bounded polling. Capture state before, during, and after the transition being reproduced.
When a needed terminal key is unsupported by the high-level command, send its terminal sequence through the disposable pane only after confirming the target application's expected key. Never send raw control sequences to the parent pane.
Start agents carefully
Before launching an agent, inspect its installed --version and --help. Pass native agent arguments after Herdr's argument separator.
Use the exact model requested or approved by the user. Verify the model from the live agent screen instead of trusting an alias. Prefer low effort, safe mode, and manual permissions for a baseline when the agent supports them. Repeat with the user's real configuration only when the suspected behavior depends on hooks, plugins, or settings.
Use harmless operations for permission-state testing. Reject the pending action after evidence is captured and verify that no artifact was created.
Collect useful evidence
Record enough information for another person to repeat the result:
- Herdr binary and version.
- Named session and launch environment.
- Target application or agent version and arguments.
- Exact commands or prompts.
- Pane and agent state before and after each transition.
- Relevant
pane read,agent read,agent explain, API output, and session logs. - Whether global config or a local manifest override was active.
Read the named session directory and socket from herdr session list instead of assuming their paths. Keep large evidence under /var/tmp unless the user asks to preserve it elsewhere.
Distinguish observed facts from proposed causes. First reproduce stock behavior, then change one variable at a time.
Cleanup
Cleanup is part of the reproduction, including after failure.
- Reject pending prompts and stop test applications cleanly when practical.
- Verify that harmless probe files or other test artifacts do not exist, or remove only artifacts created by this reproduction.
- Stop the temporary named session with the installed session command.
- Delete that same stopped session.
- Confirm it no longer appears as running.
- Wait for the outer pane to return to its shell.
- Close only the outer pane created by this workflow.
Never delete another named session because it looks stale. Never close the pane running the current agent or any pane not created for the reproduction.
Report the result
State what reproduced, what did not, and the exact transition that failed. Include cleanup status. Mention shared configuration or manifest overrides that may have influenced the result.
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.

