Cat Herdr
Cat Herdr is a terminal dashboard that finds, watches and switches between Claude Code and Codex sessions running in tmux. This is a beta release.
The screenshots show demo sessions and a demo run.
It needs tmux, Python 3.9 or newer, and macOS or Linux. Everything else is optional.
Install
Homebrew (macOS)
brew install aw-pr/cat-herdr/cat-herdr &&
cat-herdr install-shortcut --existing "$(command -v ch || true)"
Homebrew installs tmux for you. The second line is optional and safe to
repeat: it sets up the short ch command next to cat-herdr when the name
is free on your PATH, and otherwise warns once, leaves whatever is already
using ch untouched, and leaves cat-herdr working either way.
uv (verified on Linux)
uv tool install cat-herdr &&
cat-herdr install-shortcut --existing "$(command -v ch || true)"
Install tmux through your system package manager. If your shell cannot find
cat-herdr afterwards, run uv tool update-shell and start a new shell.
To install from the repository instead of the package index, make the first
line uv tool install git+https://github.com/aw-pr/cat-herdr &&.
Other installers (pipx, pip) are not yet verified.
First run
Check the install, start an agent in a tmux session, then open the dashboard:
cat-herdr --version
tmux new -d -s web claude # or codex
cat-herdr
Press Enter to jump into the session. From a plain terminal, tmux's prefix
then d (Ctrl-b d by default) brings you back and leaves the agent
running. Press ? for the keys and q to quit.
With no agent running, the dashboard says so and waits. It refreshes every
two seconds. If tmux is not installed, cat-herdr tells you.
The canonical command is always cat-herdr. If install-shortcut set up
ch for you, either name opens the dashboard. If you'd rather type cath,
or ch was already taken on your machine, add your own alias instead:
# zsh
command -v cath >/dev/null || printf '%s\n' "alias cath='cat-herdr'" >> ~/.zshrc
# Bash
command -v cath >/dev/null || printf '%s\n' "alias cath='cat-herdr'" >> ~/.bashrc
Start a new shell (or source ~/.zshrc / source ~/.bashrc) to pick it up.
Run cat-herdr -h for the full option list, or man cat-herdr for the
installed manual. With uv, if man cat-herdr can't find the page, point
MANPATH at the tool's venv and keep your normal manuals too:
MANPATH="$(uv tool dir)/cat-herdr/share/man:${MANPATH-}" man cat-herdr
Controls
With no arguments, cat-herdr opens the dashboard in a terminal, or prints a
plain table when piped. Press ? on any page for the keys that page answers.
The tables below list the same keys.
Move
| Key | Action |
|---|---|
↑ k, ↓ j |
Move the selection. The first ↓ on the top row opens its preview. |
3j, 3↓ |
Type a count before a move to repeat it, as in vim. Works in every list, in Help and in a full card. |
g, G |
First or last row. 5G goes to row five. |
H, M, L |
Top, middle or bottom row on screen. |
Ctrl-u, Ctrl-d |
Half a screen up or down. |
PgUp, PgDn |
A whole screen up or down. |
| Click | Select a row and act on it as Enter does. On a card, a click only selects. A click on a view name in the top line opens that view. |
Act on the selected chat
| Key | Action |
|---|---|
Enter |
Jump to the chat's tmux pane. |
→ l, ← h |
Show or hide the live tmux preview. |
n |
Open the chat in a new split beside the dashboard. |
m |
Manage tmux sessions, starting on the chat's session. |
u |
Show or hide chats without a tmux pane. |
The selected row says, dimmed, what Enter does there: ↵ jump, ↵ tmux,
↵ cards, ↵ fold or ↵ open.
Chats without a tmux pane appear once a status feed reports them (see
Optional integrations). Selecting one shows its
last prompt and reply. Enter asks y or n, then reopens it in a new tmux
pane.
Help, back and quit
| Key | Action |
|---|---|
? |
Help for the current page. |
s |
In Help, open Hook Setup for status feeds. |
Esc, b, Backspace, Delete |
Go back one level. On the main list this closes the preview. It never quits. |
q, Ctrl-C |
Quit. |
Manage sessions
m lists every tmux session, with or without an agent in it.
| Key | Action |
|---|---|
↑ k, ↓ j |
Select a session. The preview follows. |
Enter |
Jump to the session, or attach it. |
x |
Close the session after y or n. The dashboard's own session is protected. |
Autometta views
These keys work once Autometta is set up on the machine. Without it they do nothing, and the dashboard and its Help leave them out.
| Key | Action |
|---|---|
r |
Runs: every run, live and finished. Press r again for the main list. |
a |
Alerts: outstanding escalations. Press a again for the main list. |
o |
Notices from Autometta. Press o again for the main list. |
Enter on a run |
Open its cards beneath it, like a tree. Enter again, ← or h folds them away. |
Enter on a card |
Open the full card. Page with PgUp, PgDn, Space, Ctrl-u, Ctrl-d, g and G. |
v on a card |
Open the card read-only in nvim or vim, when either is installed. |
Enter, → on a failure or alert |
Show its detail below the list. PgUp and PgDn scroll it. Esc or b closes it and keeps the selection. |
- A run row ends with its stage's worker and verifier models. The one at work is blue, with the percentage of its own token estimate spent so far.
- Each card shows its state with the main list's symbol and colour, and
reads
worker · in progresswhile an agent works on it. The detail pane below shows the selected card's objective, attempts and tokens. - Below the live runs, under a Finished heading, the main list keeps the runs that finished in the last 6 hours, newest first. Each row gives its repo, whether it is done, failed or halted, its cards done, when it ended, how long it took, the percentage of its token estimate used and its total tokens. A narrow row drops the length, then the finish time, then the cards done.
- The runs view (
r) is that same Autometta section on a page of its own, with every finished run where the main list keeps only the last 6 hours. Its rows read and act exactly as they do on the main list, and it scrolls: a↓ N moremarker says how many rows lie below. Its Help explains each column.
Command line
| Command | Result |
|---|---|
cat-herdr |
The dashboard in a terminal, a plain table when piped. |
cat-herdr -w |
Watch the plain table in place. q quits. |
cat-herdr -a |
Also list tmux sessions with no agent in them. |
cat-herdr -b |
A one-line working/total count for a status bar. Prints nothing when no agent is running. |
cat-herdr --session-state NAME |
The state of the named session's active pane. |
cat-herdr config --check |
Validate your settings file. |
Stock tmux return keys apply inside the dashboard's own panes: prefix then
d to detach (the agent keeps running), prefix then L for the last
session, prefix then l for the last window, prefix then ; for the last
pane. Check your own bindings with tmux list-keys -T prefix.
Optional integrations
Cat Herdr works on its own. It finds agents by the foreground process of each tmux pane and reads working or idle from the pane's screen. Three optional sources add detail, and the dashboard stays quiet about any that are absent.
| Source | Adds | Set up |
|---|---|---|
| Native adapters | Working and idle from the provider's own events for Claude Code, Codex, OpenCode and Pi, and reply and approve for Claude Code and OpenCode. | cat-herdr hook-adapter PROVIDER prints the adapter. See docs/hooks.md. |
| cctop | Session status from its maintained hooks for the same four providers, on macOS. | Install cctop, then press ? and s in the dashboard. |
| Autometta | Runs, stage cards, alerts and notices for card runs that pair a worker with a verifier. | Nothing to configure: the views appear when Autometta's home directory exists. Reading its state needs yq version 4 on your PATH, not the Debian and Ubuntu package of the same name. |
docs/hooks.md has setup, confirmation and repair steps per provider. To switch cctop or Autometta off, see the configuration guide below.
Known limitations
- State comes from the screen. Without a status feed, Cat Herdr knows
working and idle only, and an unfamiliar prompt reads
?. - Pi on Linux. When Pi runs under Node, Cat Herdr finds it only through cctop, which is macOS-only, so on Linux it may be missing from the list.
- Model column. The plain table's MODEL column reads
-in this release. - Installers. Homebrew and uv are the tested routes. pipx and pip are not yet verified.
Configure or contribute
Use the configuration guide to change dashboard
settings or ask an assistant to configure your install. Run
cat-herdr config --help for the file location and validation command.
Use the contributor guide to change the source, work in a fork, or optionally submit a pull request upstream.
Uninstall
Run this while the package is still installed. It removes the sibling
ch symlink only when its stored target is the installed launcher path.
(
launcher=$(command -v cat-herdr) || exit 1
case "$launcher" in /*) ;; *) exit 1 ;; esac
[ -f "$launcher" ] && [ -x "$launcher" ] || exit 1
shortcut="${launcher%/*}/ch"
if [ -L "$shortcut" ] && [ "$(readlink "$shortcut")" = "$launcher" ]; then
rm "$shortcut"
fi
)
Then run brew uninstall cat-herdr or uv tool uninstall cat-herdr,
depending on how you installed it. If you added the cath alias, remove its
line from your shell startup file.
Licence
MIT. See LICENSE.
Metadata
Release files for cat-herdr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cat_herdr-0.1.0.tar.gz | 1.8 MB | Without provenance | Details for cat_herdr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cat_herdr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cat_herdr-0.1.0-py3-none-any.whl |
Total release size: 1.8 MB
Release files / cat_herdr-0.1.0.tar.gz
| Download URL | cat_herdr-0.1.0.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcd31894fd5eba5ad2db2f4165aa69f4b18b333abca5fdf7d5dfcabfe4d890ad
|
|
BLAKE2b-256 checksum How to use checksums |
84d22bc6a15b87d75267a78c9c63899137a33aab48ad8d14777c1f3ec6f4a02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cat_herdr-0.1.0-py3-none-any.whl
| Download URL | cat_herdr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 84.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e287bc900f66b6155c2d42876417fd0d58530e18697381cccc9fd743f37cffdb
|
|
BLAKE2b-256 checksum How to use checksums |
8dd1780bdec0bd090e7176597e144fab2c11f59856fc035a9d6ee60d814aafc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for cat-herdr 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.