cattery
Coding agents management overlay for Kitty.
Coding agents run for minutes in windows you are not watching. Cattery marks
each tab with what its agent is doing, notifies you when one needs an answer,
and lists them all in a picker.

Press v for the screen of the agent under the cursor

Install
With Homebrew:
brew tap alexander-akhmetov/cattery https://github.com/alexander-akhmetov/cattery
brew install cattery
cattery setup
Or with Go:
go install github.com/alexander-akhmetov/cattery/cmd/cattery@latest
cattery setup
Reload kitty afterwards.
cattery setup installs copies of the kitty files and of the opencode plugin,
and an upgrade of the binary does not update those copies. Run it again after
every upgrade. Restart kitty after.
cattery setup also offers to install the pi extension, the Claude Code plugin
and the Codex plugin:
pi install git:github.com/alexander-akhmetov/cattery
claude plugin marketplace add https://github.com/alexander-akhmetov/cattery.git
claude plugin marketplace update cattery
claude plugin install cattery-claude@cattery --scope user
codex plugin marketplace add alexander-akhmetov/cattery
codex plugin marketplace upgrade cattery
codex plugin add cattery-codex@cattery
Say yes after every upgrade. The picker warns about stale kitty files and a
stale opencode plugin, because the binary carries both. Nothing notices a stale
pi extension, Claude plugin or Codex plugin: those three are fetched from the
published repository rather than from the binary.
Earlier releases put the Claude hooks in ~/.claude/settings.json. One
cattery setup run after this upgrade takes them back out, and keeps a copy of
the file as settings.json.cattery-bak. Without that the plugin and the hooks
both fire and every state is published twice.
Codex hooks are trust-gated. Open /hooks in Codex and trust each
cattery-codex@cattery entry. Until you do, Codex skips them without a word.
Claude needs no such step.
cattery -version prints the release the binary was built from. cattery list
prints every agent without the picker. cattery help lists the commands, and
cattery help <command> says what one of them does.
Quick start
- Run
cattery setup and restart kitty.
- Start an agent in a kitty tab. Currently only Claude Code, Codex, opencode and Pi are supported.
- Press
opt+a (alt+a) twice for the overlay in any kitty tab, which lists every running agent.
There is nothing to configure per agent or per project. cattery setup wires up
Claude Code, Codex and opencode, the pi extension covers pi, and from then on
every agent you start reports itself.
The overlay
opt+a opt+a opens it from any kitty tab. It lists every running agent,
grouped by git repository, and Enter takes you to the one under the cursor.
| Key | Does |
|---|
j k, ↑ ↓ | move the cursor |
1-9 | put the cursor on that row |
g, G | first row, last row |
enter | go to the agent: focus its kitty tab, or open a viewer for a tmux pane |
v | open the preview drawer; press again to type at the agent |
/ | search every field on a row: repository, branch, directory, prompt, tool |
f | cycle the state filter: all, working, stalled, blocked, done, idle |
s, R | save a snapshot of the tab tree, restore one |
q, esc | close |
A row for a pi agent names the tool it is running and how long that one call has
taken, above the prompt it is working on:
2 ● working wt/publish-running-tool pi 3m 12s
~/…/myapp · ⠹ bash: go test -race ./... 1m 04s
publish the running tool
The time appears after ten seconds. Only pi and opencode report their tool; a
Claude row shows its prompt.
The preview drawer
v shows the screen of the agent under the cursor, beside the list. It works on
a kitty window you are not looking at and on a tmux pane nobody is attached to.
The drawer opens read-only, framed in grey. Keys still move the cursor, so you
can walk down the list and watch each agent in turn.
To open the drawer automatically, add this to ~/.config/cattery/config.toml
(or the XDG location in Configuration):
[picker]
preview = true
The next picker opens read-only. Closing the drawer keeps it closed until that
picker exits. CATTERY_PREVIEW overrides the file: only 1 enables preview;
any other nonempty value closes it.
Press v while the drawer is read-only to type at the agent. The frame turns
red, and every key goes to the agent: q, enter, ctrl+c to interrupt it.
esc is the exception, so ctrl+] sends a literal escape.
esc walks back out one step at a time: