Codex Pet

Control the pet4agents desktop pet from Codex. Use when the user asks to stop the pet daemon, switch the active pet, or inspect pet configuration/logs.

xchacha20-poly1305 99fee45 964 B Updated

File contents

Codex Pet

pet4agents is installed as a Codex plugin in this repository. Its hooks launch scripts/pet_event.py, which relays events to the long-running PySide6 daemon.

Stop the Pet

When the user asks to stop or quit the desktop pet, run:

./scripts/pet_event.py daemon-stop

Report the command output.

Switch Pets

When the user asks to switch to a pet id, run:

./scripts/pet_event.py set-pet <pet-id>

The id is resolved under ~/.codex/pets/<pet-id>/ first, then under this plugin's pets/ directory. If the user did not provide an id, list available pets with:

ls -1 ~/.codex/pets/ 2>/dev/null

Debug

The primary log is ~/.local/state/pet4agents/event.log. The private venv is ~/.local/share/pet4agents/venv/.

xchacha20-poly1305/pet4agents/tree/main/skills/codex-pet commit 99fee458f5

Frequently asked questions

npx skillmds@latest add xchacha20-poly1305/codex-pet