Logo: Herdr

Herdr

Communautéit
ninehills
herdr

Steiert herdr vu bannen eraus. Verwalte Workspaces an Tabs, deelt d'Fënster op, féiert Kommandoen aus, liest d'Ausgab a waart op Ännerungen am Zoustand — alles iwwer CLI-Kommandoen, déi iwwer e lokale Unix-Socket mat der lafender herdr-Instanz kommunizéieren. Benotzt dës Skill, wann Dir an herdr schafft (HERDR_ENV=1).

Add to TypingMind

Iwwersiicht

Editeurninehills
Repositoryskills
Skill-Nummherdr
Stären
278
Forks
26
Matgeliwwert Dateien
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ninehills huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Herdr an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ninehills/skills/tree/main/herdr
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ninehills/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/herdr .claude/skills/herdr
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Herdr an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Herdr automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Herdr net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

herdr — agent skill

you are running inside herdr, a terminal-native agent multiplexer. herdr gives you workspaces, tabs, and panes — each pane is a real terminal with its own shell, agent, server, or log stream — and you can control all of it from the cli.

this means you can:

  • see what other panes and agents are doing
  • create tabs for separate subcontexts inside one workspace
  • split panes and run commands in them
  • start servers, watch logs, and run tests in sibling panes
  • wait for specific output before continuing
  • wait for another agent to finish
  • spawn more agent instances

the herdr binary is available in your PATH. its workspace, tab, pane, and wait commands talk to the running herdr instance over a local unix socket.

if you need the raw protocol or full api reference, read the socket api docs.

verified version

this skill documents herdr v0.5.8. commands were verified against the actual binary. do not assume newer features (like herdr agent subcommands) exist unless confirmed.

concepts

workspaces are project contexts. each workspace has one or more tabs. unless manually renamed, a workspace's label follows the first tab's root pane — usually the repo name, otherwise the root pane's current folder name.

tabs are subcontexts inside a workspace. each tab has one or more panes.

panes are terminal splits inside a tab. each pane runs its own process — a shell, an agent, a server, anything.

agent status is detected automatically by herdr. the api exposes one public field for it:

  • agent_status — idle, working, blocked, done, unknown

done means the agent finished, but you have not looked at that finished pane yet.

plain shells still exist as panes, but herdr's sidebar agent section intentionally focuses on detected agents rather than listing every shell.

ids — herdr v0.5.8 uses opaque workspace-scoped pane ids like w651d456f8444f3-2. tab ids look like w651d456f8444f3:2. workspace ids look like w651d456f8444f3. always re-read ids from herdr pane list before using them — do not hardcode or guess.

discover yourself

see what panes exist and which one is focused:

bash
herdr pane list

the focused pane is yours (look for "focused": true). other panes are your neighbors.

list workspaces:

bash
herdr workspace list

do not redirect pane output to files

do not use shell redirection like > /tmp/output.txt or 2>&1 | tee /tmp/log when running commands in a herdr pane via herdr pane run. herdr's value is seeing the live terminal stream — the agent's own output, colours, formatting, and progress indicators. redirecting hides all of that and makes the pane appear frozen.

instead, observe output with:

  • herdr pane read <id> --source recent --lines N — read what is already in the scrollback
  • herdr wait output <id> --match "pattern" --timeout N — block until expected output appears
  • herdr pane read <id> --source visible --ansi — get an ANSI snapshot for TUI feedback loops

pane commands (the only way to interact with panes)

herdr v0.5.8 does not have herdr agent commands. all interaction goes through herdr pane:

  • herdr pane list — list all panes, find your pane id and neighbors
  • herdr pane read <id> --source recent --lines N — read what is on the screen
  • herdr pane send-text <id> "text" — send text without pressing enter
  • herdr pane send-keys <id> Enter — press a key (Enter, CtrlC, Escape, etc.)
  • herdr pane run <id> "command" — send text + enter atomically
  • herdr pane split <id> --direction right|down [--no-focus] [--cwd PATH] — split and create a new pane
  • herdr pane close <id> — close a pane
  • herdr pane rename <id> "label"|--clear — assign or clear a pane label
  • herdr pane get <id> — get detailed info about a pane

sending messages to a pane

herdr pane run <id> "text" sends text + Enter atomically and returns immediately. it does not wait for the receiving side to process the message.

bash
# send a complete message — runs "npm test" in the pane's shell
herdr pane run w651d456f8444f3-3 "npm test"

# send text to an agent in the pane
herdr pane run w651d456f8444f3-3 "review the test coverage in src/api/"

herdr pane send-text <id> "text" sends raw text without pressing enter. use herdr pane send-keys <id> Enter to press enter separately:

bash
# send text without enter
herdr pane send-text w651d456f8444f3-3 "hello"

# press enter
herdr pane send-keys w651d456f8444f3-3 Enter

important: pane run appends \r (carriage return) to the text, equivalent to pressing enter. the command runs in the pane's existing shell process — it does not start a new shell. if the pane is at an agent prompt (e.g. > or the pi input line), the command text will be sent to the agent, not executed as a shell command.

there is no built-in delay or --wait flag on pane run or pane send-text. both return immediately. to pace messages to an agent, use herdr wait agent-status --status idle between sends:

bash
# send a message
herdr pane run w651d456f8444f3-3 "review the test coverage"

# wait until the agent is idle again
herdr wait agent-status w651d456f8444f3-3 --status idle --timeout 120000

# now send the next message
herdr pane run w651d456f8444f3-3 "also check src/utils/"

spawn a new agent

split a new pane, then run the agent in it:

bash
# split to the right without stealing focus
herdr pane split w651d456f8444f3-2 --direction right --no-focus

# parse the new pane id from the JSON response
# the response is: {"result":{"pane":{"pane_id":"w651d456f8444f3-6", ...}}, ...}

# run the agent in the new pane
herdr pane run w651d456f8444f3-6 "pi"

# wait for the agent prompt to appear (adjust match pattern for your agent)
herdr wait output w651d456f8444f3-6 --match "thinking" --timeout 30000

# give it a task
herdr pane run w651d456f8444f3-6 "review the test coverage in src/api/"

do not pipe the agent's output (e.g. pi | tee /tmp/log) when starting — the command text is sent to the pane's shell, not as a pipe target. let the agent's output flow naturally to the pane.

wait patterns

herdr wait output watches for text in a pane's terminal output. useful for servers, builds, logs:

bash
herdr wait output w651d456f8444f3-3 --match "ready on port 3000" --timeout 30000
herdr wait output w651d456f8444f3-3 --match "test result" --timeout 60000
herdr wait output w651d456f8444f3-3 --match "server.*ready" --regex --timeout 30000

herdr wait agent-status watches for the agent status field on a pane. useful for coding agents:

bash
herdr wait agent-status w651d456f8444f3-3 --status done --timeout 60000
herdr wait agent-status w651d456f8444f3-3 --status idle --timeout 60000
herdr wait agent-status w651d456f8444f3-3 --status blocked --timeout 300000

tip: wait output matches against unwrapped recent terminal text. pane width and soft wrapping do not break matches. if you want to inspect the same transcript that the waiter matched, use pane read --source recent-unwrapped.

both commands exit code 1 on timeout.

reading output

bash
# current viewport (what is visible right now)
herdr pane read w651d456f8444f3-3 --source visible --lines 80

# recent scrollback (what was printed recently)
herdr pane read w651d456f8444f3-3 --source recent --lines 50

# without soft wrapping (best for logs)
herdr pane read w651d456f8444f3-3 --source recent-unwrapped --lines 120

# with ANSI colours preserved
herdr pane read w651d456f8444f3-3 --source visible --ansi

workspace management

bash
herdr workspace list
herdr workspace create --cwd /path/to/project
herdr workspace create --cwd /path/to/project --label "api server"
herdr workspace create --no-focus
herdr workspace focus w651d456f8444f3
herdr workspace rename w651d456f8444f3 "api server"
herdr workspace close w651d456f8444f3

tab management

bash
herdr tab list --workspace w651d456f8444f3
herdr tab create --workspace w651d456f8444f3
herdr tab create --workspace w651d456f8444f3 --label "logs"
herdr tab rename w651d456f8444f3:2 "logs"
herdr tab focus w651d456f8444f3:2
herdr tab close w651d456f8444f3:2

close a pane

bash
herdr pane close w651d456f8444f3-3

integrations

install built-in agent integrations for more precise state detection:

bash
herdr integration install pi
herdr integration install claude
herdr integration install codex
herdr integration install opencode
herdr integration status

uninstall:

bash
herdr integration uninstall pi

named sessions

bash
herdr session list
herdr session attach work
herdr session stop work

select a session for CLI commands:

bash
HERDR_SESSION=side-project herdr workspace list

recipes

run a server and wait until it is ready

bash
# split a new pane
RESPONSE=$(herdr pane split w651d456f8444f3-2 --direction right --no-focus)
NEW_PANE=$(echo "$RESPONSE" | python3 -c 'import sys,json; print(json.load(sys.stdin)["result"]["pane"]["pane_id"])')

# start the server
herdr pane run "$NEW_PANE" "npm run dev"

# wait for it to be ready
herdr wait output "$NEW_PANE" --match "ready" --timeout 30000

# read the output
herdr pane read "$NEW_PANE" --source recent --lines 20

run tests in a separate pane and inspect the result

bash
herdr pane split w651d456f8444f3-2 --direction down --no-focus
herdr pane run w651d456f8444f3-3 "cargo test"
herdr wait output w651d456f8444f3-3 --match "test result" --timeout 60000
herdr pane read w651d456f8444f3-3 --source recent --lines 30

check what another agent is working on

bash
herdr pane list
herdr pane read w651d456f8444f3-3 --source recent --lines 80

watch another pane robustly

bash
# inspect what is already there
herdr pane read w651d456f8444f3-3 --source recent --lines 40

# wait for specific output
herdr wait output w651d456f8444f3-3 --match "ready" --timeout 30000

# read unwrapped transcript that the waiter matched
herdr pane read w651d456f8444f3-3 --source recent-unwrapped --lines 40

spawn a new agent and give it a task

bash
# split pane and start the agent
herdr pane split w651d456f8444f3-2 --direction right --no-focus
herdr pane run w651d456f8444f3-3 "pi"

# wait for the agent prompt
herdr wait output w651d456f8444f3-3 --match "thinking" --timeout 30000

# give it a task
herdr pane run w651d456f8444f3-3 "review the test coverage in src/api/"

# wait for it to finish
herdr wait agent-status w651d456f8444f3-3 --status idle --timeout 120000

# read the result
herdr pane read w651d456f8444f3-3 --source recent --lines 100

# close when done
herdr pane close w651d456f8444f3-3

coordinate with another agent

bash
# wait for the agent to finish
herdr wait agent-status w651d456f8444f3-3 --status done --timeout 120000

# read its output
herdr pane read w651d456f8444f3-3 --source recent --lines 100

multi-turn conversation with an agent

bash
# send first message
herdr pane run w651d456f8444f3-3 "review the test coverage"

# wait until idle
herdr wait agent-status w651d456f8444f3-3 --status idle --timeout 120000

# read response
herdr pane read w651d456f8444f3-3 --source recent --lines 80

# send follow-up
herdr pane run w651d456f8444f3-3 "also check src/utils/"

# wait again
herdr wait agent-status w651d456f8444f3-3 --status idle --timeout 120000

# read again
herdr pane read w651d456f8444f3-3 --source recent --lines 80

notes

  • herdr pane list prints json. parse result.panes[].pane_id for pane ids and result.panes[].focused to find your pane.
  • herdr pane split prints json. the new pane id is at result.pane.pane_id.
  • herdr workspace create prints json with result.workspace, result.tab, and result.root_pane.
  • herdr tab create prints json with result.tab and result.root_pane.
  • herdr pane read prints text, not json.
  • herdr pane send-text, herdr pane send-keys, and herdr pane run print nothing on success.
  • herdr pane read --ansi or herdr pane read --format ansi returns a rendered ANSI snapshot.
  • herdr pane read --source recent-unwrapped joins soft wraps — use it to inspect the same transcript that wait output matches against.
  • herdr pane run <id> "cmd" sends text + \r (enter). the command runs in the pane's existing shell process — it does not start a new shell.
  • herdr pane send-text <id> "text" sends text without enter. use herdr pane send-keys <id> Enter to press enter.
  • herdr pane send-keys accepts special keys: Enter, Up, Down, Left, Right, Backspace, Tab, etc.
  • --no-focus on pane split, tab create, and workspace create keeps your current terminal context focused.
  • use herdr pane read for current output that already exists. use herdr wait output for future output you expect next.
  • if you are running inside herdr, the HERDR_ENV environment variable is set to 1.
  • HERDR_SESSION=<name> selects a named session for CLI commands. HERDR_SOCKET_PATH is a low-level override.
  • there is no built-in delay or --wait flag on pane run or pane send-text. to pace messages to an agent, use herdr wait agent-status --status idle between sends.
  • pane ids in herdr v0.5.8 are opaque workspace-scoped strings like w651d456f8444f3-2. always re-read ids from herdr pane list — do not hardcode or guess.
  • do not redirect pane output with > file or | tee. use herdr pane read and herdr wait output instead.
  • herdr wait output exit code is 1 on timeout.
  • herdr agent subcommands do not exist in v0.5.8. use herdr pane commands for all pane interaction.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Herdr?

Steiert herdr vu bannen eraus. Verwalte Workspaces an Tabs, deelt d'Fënster op, féiert Kommandoen aus, liest d'Ausgab a waart op Ännerungen am Zoustand — alles iwwer CLI-Kommandoen, déi iwwer e lokale Unix-Socket mat der lafender herdr-Instanz kommunizéieren. Benotzt dës Skill, wann Dir an herdr schafft (HERDR_ENV=1).

Firwat Herdr op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Herdr besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Herdr an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ninehills/skills/tree/main/herdr an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Herdr benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Herdr benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Herdr domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Herdr gratis?

ninehills huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇