pi-mux-subagents: Skill for Claude Code

.pi/skills/herdr/SKILL.md

herdr is a skill for Claude Code, Codex from davidsunglee/pi-mux-subagents. It costs 62 tokens per session (2,329 once invoked), scanned A, original, MIT.

A command-line skill for controlling herdr, a terminal-based workspace that can contain multiple tabs, panes, agents, servers, and logs.

In plain words
What is it for?
It can inspect panes, create tabs, split terminals, start agents or servers, read output, and wait for changes when running inside herdr.
Why use it?
It lets an agent coordinate work across several terminal areas without manually switching between them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is davidsunglee/pi-mux-subagents's own configuration. It tells Claude Code and Codex how to work on pi-mux-subagents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-mux-subagents configures →

Reuse

Borrowing it

Nothing to install: this file belongs to davidsunglee/pi-mux-subagents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/davidsunglee/pi-mux-subagents/main/.pi/skills/herdr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/davidsunglee/pi-mux-subagents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for herdr

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidsunglee/pi-mux-subagents/herdr/github.svg)](https://agentmods.dev/skills/davidsunglee/pi-mux-subagents/herdr)
Your own site
<a href="https://agentmods.dev/skills/davidsunglee/pi-mux-subagents/herdr"><img src="https://agentmods.dev/badge/skills/davidsunglee/pi-mux-subagents/herdr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for herdr

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidsunglee/pi-mux-subagents/herdr"><img src="https://agentmods.dev/badge/skills/davidsunglee/pi-mux-subagents/herdr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02329
Opus 5 $0.00031 $0.01164
Sonnet 5 $0.00012 $0.00466
Haiku 4.5 $0.00006 $0.00233

Measured 10d ago against content hash 75826452ca09, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

herdr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.pi/skills/herdr/SKILL.md · 301 lines

How it starts

The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.

herdr — agent skill

before using this skill, check that HERDR_ENV=1. if it is not set to 1, say you are not running inside a herdr-managed pane and stop. do not inspect or control the focused herdr pane from outside herdr.

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.

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_statusidle, 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 — workspace ids look like 1, 2. tab ids look like 1:1, 1:2, 2:1. pane ids look like 1-1, 1-2, 2-1. these are compact public ids for the current live session.

Read the full file on GitHub · 301 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 301 lines · 62 tokens per session scan A 75826452ca09

Subscribe to this mod's changes

herdr is a skill published in the GitHub repository davidsunglee/pi-mux-subagents (2 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 2,329 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.