Agent Pet

A small desktop companion that reacts to what your coding agent is doing.
Claude Code starts, the pet wakes up. A tool runs, it gets to work. A permission
prompt appears, it turns and asks for you. Tests pass, it celebrates.
Every state the pet can be in, rendered from the sprites it actually
ships — make states-gif.
agent events ──▶ local state machine ──▶ expressive character
Nothing about your work leaves your machine. The app has no network client at
all — it listens on loopback and calls nothing out. The one thing that does go
out is an update check: a small JSON manifest, fetched by petctl, at most once
a day, and off with one line of config. See Privacy.
Install
You need macOS 12 or newer. The release is a universal build, so Apple Silicon
and Intel both work. Nothing else — no Go, no Xcode, no toolchain.
With the Claude Code plugin (recommended)
The plugin carries the hooks; the app is a separate signed download. In Claude
Code:
/plugin marketplace add lijuno/agent-pet
/plugin install agent-pet@lijuno
/agent-pet:install
/agent-pet:install reads the published manifest, downloads what it names, and
checks the SHA-256 and the signature — codesign and spctl both — before
anything goes near /Applications. Then it makes the pet visibly do something,
so you confirm it works with your eyes rather than trusting a summary.
This path never touches your settings.json and never bakes an absolute path
into it, so it cannot go stale when the app moves. There is also
/agent-pet:troubleshoot for when the pet stops reacting.
By hand
-
Download agent-pet-<version>-universal.zip from
Releases and unzip it.
-
Move agent-pet.app to /Applications and open it. Releases are signed and
notarized, so it opens normally.
-
Put petctl on your PATH — it ships inside the bundle, so the CLI and the
daemon it talks to can never be different builds:
export PATH="$PATH:/Applications/agent-pet.app/Contents/MacOS"
-
Install the Claude Code hooks:
petctl install claude # this project; --global for every project
Then start a new Claude Code session — hooks are read at startup, so the
session you are in now will not pick them up.
Use one path or the other. With both the plugin and petctl install claude,
every hook fires twice. petctl doctor reports the hooks it finds in
settings.json, so the duplicate is visible.
First run
Agent Pet is a menu-bar app: nothing appears in the Dock. Before an agent
connects, the pet is grey and asleep — that is correct, not a fault. Colour and
motion mean something is there to watch.
petctl doctor says more than you expect: whether the app is running, which
flavour it is, where its config lives, and whether the hooks are installed.
Using it
| Action | Result |
|---|
| Drag | Move the pet. Its position is remembered. |
| Double-click | Pet it. |
| Right-click | Menu: status, change pet, size, always on top, drop shadow, report a bug, about, quit. |
| Menu bar | The same commands under the Pet menu while the app is frontmost. |
The pet also lives in the macOS menu bar. Its icon shows the current state and
carries the same commands. Hide is a checkbox there: it puts the pet away,
and unticking it brings the pet back — including one that has been dragged off
the edge of the screen. Change Character is a submenu listing the
characters, so switching happens in the menu bar rather than in a panel beside
the pet. File a Bug opens a window with three buttons and a reason for
each. Report on GitHub opens a new issue with the version, the paths and
your config.yaml already in it — you sign in, say what happened and post it,
and nothing leaves the machine until you do. Save Report writes those and
the last 200 log lines to bug-report.txt in the data directory and shows it
in the Finder, because a link can fill a form but cannot attach a file: drag it
onto the issue. Copy Report puts the same text on the clipboard. See
ADR 0005.
The character comes in three sizes — small, medium and large — from the
right-click menu or the pet.scale setting.
Two rules decide whether she is awake, and neither has a special case: