/agent-pet:installfrom Agent Pet
Install the Agent Pet macOS app that this plugin drives, for the first time. Use when the user asks to install or set up the pet app. To update one that is already installed, use the update skill instead.
Ships in Agent Pet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This plugin ships the Claude Code hooks. The app they drive is a separate
download, because a macOS .app bundle cannot sensibly live in a git
repository. Your job is to install that app and prove it works.
The pet is cosmetic. Nothing here is worth taking a risk for — if a step below fails, stop and say so rather than working around it.
Never run xattr -d com.apple.quarantine, spctl --master-disable, or
codesign --force on this or any other app. Those commands turn off the
check that tells the user whether what they just downloaded is what the author
published. Releases are signed and notarized precisely so that nobody needs
them. If macOS refuses to open the app, that is a finding to report, not an
obstacle to route around — go to When verification fails.
Do not fall back to curl … | sh, and do not install from anywhere other
than the GitHub releases of lijuno/agent-pet.
petctl doctor
petctl is on your PATH while this plugin is enabled.
If it reports a running or installed app, this is not the skill you want.
Use /agent-pet:update instead — the app updates itself, and doing it by hand
risks getting wrong the parts that command already handles: quitting the old
daemon before replacing the bundle it is running from, and checking that what
arrived is signed by the same developer and is the same application.
If petctl doctor reports the app is not installed, continue below.
The same file petctl update reads, so an install and an update always agree
about what the current version is:
curl -fsSL https://raw.githubusercontent.com/lijuno/agent-pet/master/updates/release.json
It gives you version, url, sha256, size and min_macos. Use those four —
do not go looking for an asset by name, and do not use the GitHub releases
API instead; the manifest is the thing the project publishes deliberately, and a
release can exist for days before it is offered to anyone.
If it 404s, stop and tell the user nothing has been published yet, pointing
them at README.md for building from source. Do not improvise another download.
Check min_macos against sw_vers -productVersion before downloading anything.
An app that will not launch on their machine is not worth 19 MB of their
bandwidth.
Never unpack straight into /Applications:
tmp=$(mktemp -d) && curl -fsSL -o "$tmp/pet.zip" <URL_FROM_MANIFEST> && ditto -x -k "$tmp/pet.zip" "$tmp"
Use ditto, not unzip — unzip does not preserve the symlinks and metadata
inside a bundle.
This is the step the whole procedure exists for. Run all three.
shasum -a 256 "$tmp/pet.zip"
Compare against sha256 from the manifest. This one is worth doing first
because it is the cheapest and its failure is the least alarming: a mismatch is
usually a truncated download.
codesign --verify --strict --deep --verbose=2 "$tmp/agent-pet.app"
spctl -a -t exec -vv "$tmp/agent-pet.app"
The first says the bundle is intact and unmodified since signing. The second
says Gatekeeper accepts it — expect source=Notarized Developer ID and
origin=Developer ID Application: Lijun Li (YH77U4A52H).
All three must pass. If any fails, delete $tmp and go to When
verification fails. Do not install it anyway, and do not ask the user whether
they would like you to install it anyway.
rm -rf "/Applications/agent-pet.app" && mv "$tmp/agent-pet.app" /Applications/ && open "/Applications/agent-pet.app"
If the app was already running, quit it first — a still-running copy holds the event port, and a second instance exits immediately on startup rather than complaining, which looks exactly like an update that did nothing.
petctl doctor
Then make the pet visibly do something, so the user confirms with their eyes rather than trusting your summary:
petctl test celebrate --for 5s
Ask whether they saw it. If they did not, go to /agent-pet:troubleshoot.
There is a second application, Agent Pet (dev), that installs alongside this
one and follows prereleases. Its manifest is updates/dev.json, and installing
it is the same procedure with that file — but do not, unless they ask. It is not an alternative to what you just
installed and it is not a setting — it is a separate app with its own icon,
its own port and its own settings, and both can run at once.
Say it exists and leave it there. Someone who wants prereleases will ask; the release app is the right thing for everyone else, and installing both without being asked leaves an extra menu-bar-only app on their machine.
Also mention that automatic update checks are on: when a Claude Code session
starts, petctl fetches a small JSON manifest from raw.githubusercontent.com,
at most once a day. It only checks — nothing is downloaded or installed without
them saying yes. update.check: false in the config file that petctl doctor
names turns it off, and petctl update --check is the manual version.
The hooks come from this plugin and are already active — there is no
petctl install claude step, and nothing was written to their
settings.json. If the plugin was installed in this same session, hooks may
need /reload-plugins, or a new session, before the pet starts reacting.
Report it plainly and stop. Say which command failed and quote its output.
A checksum failure on its own is almost always a truncated or corrupted download — retry once, cleanly.
A signature failure is different. It means the download was corrupted, or the file is not what the author published, and neither you nor the user can tell those apart from the output. One clean retry is reasonable. If it fails again, leave it uninstalled and let the user decide.
Either way: say which command failed and quote its output. Do not summarise it as "the install did not work".
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/troubleshootThe pet is not doing what it shouldDiagnose an Agent Pet that is not reacting, not visible, or stuck on an old version. Use when the user says the pet is not responding, not showing up, or did not update./updateUpdate the Agent Pet appUpdate the Agent Pet macOS app to the newest published version, or report that it is already current. Use when the user asks to update the pet, check for a new version, or says the pet is out of date.Other plugins' skills for the same job
npx claudepluginhub lijuno/agent-pet --plugin agent-pet