herdr-speak
AGENTS.md0 starsChanged 36 days agoMITView on GitHub
hooks/register.tsx is a Claude Code mod on top of the skill: a toggle above the prompt, the last state carried into new sessions ($.store), and the recap rules in the system prompt. It takes the rules from SKILL.md, the text between Otherwise: and Reply now. Its toggle shows π, never π, because the Speaker reads any pane line that starts with π as a recap. Run tests with python3 -m unittest, and the mod's with claude plugin validate . andβ¦
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
β0
Common Β· estimate
Many files like this have a rule of this kind.
β3
Distinctive Β· estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run tests with python3 -m unittest, and the mod's with claude plugin validate .
- Distinctive: line 27
Test a host end to end through Herdr, with the Speaker running on Local:
- Very specific: line 32
Read speaker.log in the plugin state dir and confirm the Speaker logged the recap.
- Distinctive: line 41
Read the host's current docs for skill discovery paths, plugin or extension manifests, and how a user invokes a skill and passes arguments.
- Very specific: line 42
Prefer zero new files. A host that finds skills/ in an installed package, or reads ~/.agents/skills, needs only a README row.
- Very specific: line 43
Run the live test recipe above.
- Distinctive: line 44
Add the host to the README install table with its exact toggle syntax.
β βCommonβ is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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-speak
Two halves:
speaker.pyis the Herdr plugin (herdr-plugin.toml) that reads π recaps aloud with macOSsay. It is agent-agnostic: it watches every agent kind Herdr lists.skills/speak/SKILL.mdis the/speaktoggle that makes an agent end each reply with aπ <recap>line. It is the single source of truth for the toggle text; each host's packaging only points at it.
hooks/register.tsx is a Claude Code mod on top of the skill: a toggle above the prompt, the last state carried into new sessions ($.store), and the recap rules in the system prompt. It takes the rules from SKILL.md, the text between Otherwise: and Reply now. Its toggle shows π, never π, because the Speaker reads any pane line that starts with π as a recap.
Run tests with python3 -m unittest, and the mod's with claude plugin validate . and claude plugin test ..
Herdr facts (verified on 0.9.3)
herdr agent listreturns{"result":{"agents":[{pane_id, agent, agent_status, completion_seq?, ...}]}}.completion_seqbumps once per finished turn and is absent while the agent is working. The Speaker keys on it to catch turns shorter than one poll.- The Speaker reads the recap with
herdr agent read <pane> --source recent-unwrappedand speaks the last line starting with π. - Tab-bar entries (
ui.tab_bar_right) are display-only: no click handlers, and acommandentry getsHERDR_BIN_PATHbut no plugin environment. So the Speaker writes π or π tostatusin the config dir, whichherdr plugin config-dircan find; there is no CLI that prints the state dir. herdr pane report-metadata <pane> --source <id> --token speak=πsets a token that sidebar rows show as$speak;--clear-token speakremoves it. It forwards through--machine, and the token lasts until the pane closes.herdr --machine <label> <command>forwards any API command to a saved SSH machine.herdr machine list --jsonlists them.- Plugin commands (startup hooks, actions, panes) get
HERDR_PLUGIN_ID,HERDR_PLUGIN_CONFIG_DIR,HERDR_PLUGIN_STATE_DIR, andHERDR_BIN_PATH, with the plugin directory as cwd. Plugin v1 has no supervised daemons:[[startup]]hooks are one-shot, so the Speaker relaunches itself detached (--background) and holdsspeaker.lockin the state dir so reruns never start a second copy. Its log isspeaker.logthere (~/.local/state/herdr/plugins/herdr-speak/on macOS). - Other commands reach the running Speaker over a UDP socket on 127.0.0.1, whose port is in
speaker.pid(<pid> <port>): thepane.agent_status_changedevent hook sendspoke(poll now), and--skipsendsskip. Mute is themutedfile in the state dir. Signals aren't used, because Windows has no SIGUSR1 or SIGUSR2. - Every manifest command runs
./herdr-speak.cmd, a file that is both a shell script (the:;line) and a batch file. Verified on Herdr 0.9.3: Windows runs a.cmdonly when the command names it with its extension, macOS runs the file throughshwithout a#!line, and action ids must be unique even acrossplatforms, so per-platform duplicates aren't possible. On Windowspython3is often the Microsoft Store placeholder, so the batch half usespy -3. - On Windows the detached Speaker has no console, so every child process needs
CREATE_NO_WINDOWor it flashes a window, and stdout and Herdr's output must be decoded as UTF-8 (the default is cp1252). - Premium and Siri voices need Full Disk Access for the terminal app that runs Herdr. Only processes started after the grant get it, so restart the Speaker after granting.
Live test recipe
Test a host end to end through Herdr, with the Speaker running on Local:
herdr tab create --workspace <ws> --cwd <trusted dir> --no-focusβ use a directory the agent already trusts; a trust prompt blocks startup.herdr agent start t --kind <kind> --pane <pane>herdr agent prompt <pane> "<text>" --wait --until done --until idleβ first turn on the toggle, then send a normal prompt. Wait longer than the Speaker's poll interval (2 s) between prompts, or it only speaks the later recap.- Read
speaker.login the plugin state dir and confirm the Speaker logged the recap. After changingspeaker.py, runherdr plugin action invoke herdr-speak.startto restart it. - Close the test tab.
Some hosts need a model flag after --, for example herdr agent start t --kind opencode --pane <p> -- --model <provider/model>.
Adding a host
Herdr supports more agents than this repo packages. Add one only when someone needs it:
- Read the host's current docs for skill discovery paths, plugin or extension manifests, and how a user invokes a skill and passes arguments. Hosts rename and replace themselves often; Gemini CLI became Antigravity mid-2026.
- Prefer zero new files. A host that finds
skills/in an installed package, or reads~/.agents/skills, needs only a README row. Add a manifest only when the host requires one, and keep the toggle text inSKILL.md. - Run the live test recipe above. Confirm that
herdr agent listshows the pane. Hermes v0.21 is not listed by Herdr 0.9.3, so its recaps are never spoken. - Add the host to the README install table with its exact toggle syntax.
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.

