herdr

A guide for Herdr, a terminal multiplexer that organizes coding-agent sessions into workspaces, tabs, and panes. It also explains how to inspect or control those sessions with the herdr command-line tool.

In plain words
What is it for?
Use it to inspect or control terminal panes, tabs, workspaces, commands, and coding agents, or to investigate Herdr's local configuration and behavior.
Why use it?
It provides a way to answer Herdr configuration and behavior questions using the machine's local settings, installed defaults, source code, and command help.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/unique-divine/jiyuu/herdr
Any agent
npx skills add Unique-Divine/jiyuu --skill herdr
Clone the repo
git clone --depth 1 https://github.com/Unique-Divine/jiyuu

Made for: Claude Code, Codex.

Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod 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 $0.00097 $0.02474
Opus 5 $0.00048 $0.01237
Sonnet 5 $0.00019 $0.00495
Haiku 4.5 $0.00010 $0.00247

Measured yesterday against content hash 4305654be180, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

Origin

This is a copy

89% identical to herdr — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ai-skills/herdr/SKILL.md · 217 lines

How it starts

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

Herdr

Herdr organizes terminals into workspaces, tabs, and panes, recognizes coding agents running inside panes, and exposes the current session through the herdr CLI.

Use local configuration and source references

On this machine, answer configuration and behavior questions from local evidence instead of relying on memory. Read local-machine.md for the evidence order and paths.

Start configuration questions with the commented managed file /home/realu/ki/boku/dotfiles/herdr/config.toml. It backs ~/.config/herdr/config.toml and documents the user's intentional overrides. Use herdr --default-config for the installed version's complete default configuration. For deeper behavior or documentation questions, inspect the local source checkout at /home/realu/ki/boku/dotfiles/lib-herdr.

The source checkout may be ahead of the installed binary. Verify the relevant version before claiming that source or draft documentation describes installed behavior.

Read-only inspection of local config, documentation, source, and CLI help does not require a Herdr-managed pane. The following environment check applies before commands that inspect or control a live Herdr session.

Before issuing any control command, verify that this agent is running inside a Herdr-managed pane:

test "${HERDR_ENV:-}" = 1

If the check fails, say that you are not running inside Herdr and stop. Do not inspect or control the focused Herdr session from outside Herdr.

When the check passes, the herdr binary in PATH talks to the current session. Use it to inspect neighboring work, create terminal layout, start agents and commands, read output, and wait for state changes.

Learn the current CLI

The installed binary is the authority for command syntax. Start with:

herdr --help

Then print the relevant command group by running the group without a subcommand:

herdr agent
herdr pane
herdr workspace
herdr tab
herdr worktree
herdr terminal
herdr notification
herdr integration
herdr session

Read the full file on GitHub · 217 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 217 lines · 97 tokens per session scan A 4305654be180

Subscribe to this mod's changes

herdr is a skill published in the GitHub repository Unique-Divine/jiyuu (6 stars, last pushed 19d ago), licensed MIT. It adds 97 tokens to every session and 2,474 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to herdr, differing in 27 lines, and is treated as a copy.