feat: desktop pet plugin (/pet) -- an animated terminal dog#473
Open
piercebrookins wants to merge 1 commit into
Open
feat: desktop pet plugin (/pet) -- an animated terminal dog#473piercebrookins wants to merge 1 commit into
piercebrookins wants to merge 1 commit into
Conversation
Adopt a tiny ASCII dog that lives in the bottom-right of your prompt as an animated prompt_toolkit bottom_toolbar, rotating fun quips. 19 breeds across 5 rarities, an adoption picker (like /model), and a rarity-colored /pet grid. Fully plugin-based per AGENTS.md: hooks startup (toolbar), custom_command and custom_command_help (/pet). No core edits. State persists in puppy.cfg. Local-only rendering -- zero LLM tokens.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a desktop pet plugin: a tiny ASCII dog that lounges in the
bottom-right of your prompt, animates (blink + wag), and rotates fun quips
while you think. It reflects the model you've set and steps aside while the
agent works.
Commands
/pet on/model), then summon your dog/pet off/pet pick/pet <breed>/pet shiba)/pet rename <name>/pet quip/pet list/grid/pet19 breeds across 5 rarities (common -> legendary, gray -> gold).
How it's wired (no core edits)
Follows the
AGENTS.mdgolden rule -- it's a self-contained plugin undercode_puppy/plugins/pet/, modeled onprompt_newline:startup-- subclasses thePromptSessionused by the main input promptso the pet rides along as an animated
bottom_toolbar. prompt_toolkitrenders/refreshes it itself, so it never fights the REPL or smears escape
codes (an earlier background-thread approach did exactly that -- this is the
fix).
custom_command/custom_command_help-- the/petcommand + help.State (enabled / species / name) persists in
puppy.cfgvia the genericconfig API. Styled to match the prompt palette (bright cyan / blue / green).
Notes
ruff check+ruff formatclean. Nocommand_line/edits, no core diffs.