Configuration Reference¶
Sprite Home¶
By default, pi-sprite stores state under:
The path is controlled by src/sprite/paths.ts:
When PI_SPRITE_HOME is set, both state.json and imported pets are read from that custom directory.
Selected Pet State¶
Imported pets live under:
The selected pet and display preferences live in:
A minimal seeded state file looks like this:
The selected id must match a folder under pets/ whose pet.json parses successfully.
Default Pet Setup¶
To seed a default pet from a config repo or dotfiles system:
- Copy the expanded pet folder to
~/.pi/agent/pi-sprite/pets/<id>/. - Write
state.jsonwithselectedPetIdset to that id. - Keep
pet.jsonand all referenced sprite files inside the pet folder. - Run
/pet statusafter reload to confirm the selected pet.
Example target shape:
~/.pi/agent/pi-sprite/
├── state.json
└── pets/
└── desk-cat/
├── pet.json
├── idle.png
├── thinking.png
├── working.png
├── success.png
└── error.png
Use absolute paths when importing manually:
Slash commands do not expand ~, so avoid shell-style paths in /pet import.
Profile-Specific Homes¶
Some Pi wrappers set PI_CODING_AGENT_DIR to separate agent profiles. pi-sprite does not derive its home from that variable directly; it uses PI_SPRITE_HOME when present and otherwise falls back to ~/.pi/agent/pi-sprite.
For profile-specific defaults, set PI_SPRITE_HOME for each profile or mirror the seeded pi-sprite/ directory into the profile-specific agent home used by that wrapper.