PhucUSk20/pixel-familiars/tree/main/plugins/pixel-pet
pixel-pet
A pixel pet above the prompt that acts out each tool call, plus an HP/MP/ST HUD below it
About this mod
<p align="center"> <img src="docs/images/slime.gif" width="160" alt="A pixel slime breathing, blinking, jumping and cheering"> </p> <h1 align="center">Pixel Familiars</h1> <p align="center">Animated pixel companions for <strong>Codex</strong> and <strong>Claude Code</strong>.<br>See your AI's activity, context and quota through a living pixel world.</p> <p align="center"> <a href="#codex"><img alt="Codex companion" src="https://img.shields.io/badge/Codex-VS_Code-5aa9ff"></a> <a href="#claude-code"><img alt="Claude Code companion" src="https://img.shields.io/badge/Claude_Code-terminal-ffe25a"></a> <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-5aa9ff"></a> </p>Owned and maintained by PhucUSk20. Based on Namenomeaning/pixel-pet, with original authorship and MIT notices preserved.
Choose your companion
Both integrations use the shared pixel engine and theme format. Each connects to its own runtime; features differ where their event streams and display surfaces differ.
| | Codex | Claude Code | | --- | --- | --- | | Display | Responsive VS Code panel | Pet above the terminal prompt, HUD below | | Activity | Native hooks, with a session-log fallback | Claude Code mod events | | Shared pet motions | Read, search, write, terminal, web, think and celebrate | Read, search, write, terminal, web, think and celebrate | | HUD | Context remaining and reported quota/reset times | Context remaining and reported quota/reset times | | Customization | MCP theme tools, preview and import | Plugin skill, preview and theme tools | | Task companions | Portal workers, subagent minis and automatic project Mini | Subagent minis following the main pet | | Idle play | Independent roaming and 20 pet interactions | Breathing, looking around and sleep | | Legendary Pet | Independent panel with five Mega Rayquaza actions | Available through the Codex VS Code companion | | Detailed guide | Codex guide | Claude Code guide |
Observation and animation run locally and add no AI calls or tokens. Asking an AI to redesign a theme uses its normal chat/tool workflow.
Get started
Clone this repository to install the Codex companion or load the Claude plugin directly from source:
git clone https://github.com/PhucUSk20/pixel-familiars.git
cd pixel-familiars
Codex
Requirements: Node 22.18+, VS Code with the code command available, and the Codex extension installed.
Run one installation command from the cloned folder:
npm.cmd run install:codex
On macOS/Linux, use npm run install:codex. The installer downloads dependencies, builds/packages the extension, installs it and configures the local observer hooks and MCP theme tools. It opens the bundled Codex CLI for hook review:
- Approve folder trust if prompted. Enter
/hooks, review and trust the 12 Pixel Pet observer entries. - Exit the review CLI. Run Developer: Reload Window, then Pixel Pet: Open Companion in VS Code.
- Start a new Codex conversation and run a tool. The panel should show Direct hooks after receiving a real event.
Direct hooks provides the fullest tool/subagent timing and compaction animations. Log fallback remains available when native events are unavailable; it cannot recover every nested start time. Review is required by Codex and is not granted automatically. The review CLI can close after approval.
<p align="center"><img src="docs/images/codex-pet-summoning.gif" width="816" alt="Codex demo: sky portals summon independent Read, Edit and Run workers, with result deliveries"></p>Tools summon worker minis through colored sky portals. Parallel work keeps separate workers until recorded completion. Success brings a parcel back to the main pet; failure brings a clickable error sign. The persistent Mini watches observed checks and editor errors automatically.
The pets also explore independently and occasionally meet for 20 different idle interactions. Feed invites a picnic, Play starts catch, and Rest pauses autonomous play. Real work interrupts play. The meadow fills the panel width, and short panels move the compact HUD into a corner. Workplace buildings are temporarily disabled.
<p align="center"><img src="docs/images/codex-pet-actions.gif" width="816" alt="Codex demo gallery of 20 different local pet interactions"></p>The Codex GIFs use simulated activity with the production renderer. Update by rerunning the installer and reviewing changed hook definitions. Read the Codex guide for session selection, quota readings, settings, privacy and panel placement. The pet is a separate view rather than an embedded part of Codex's chat.
Claude Code
Requirement: Claude Code 2.1.287+ (claude --version). Install the plugin from this repository's marketplace:
claude plugin marketplace add PhucUSk20/pixel-familiars
claude plugin install pixel-pet@pixel-pet
Start a new session, or run /reload-plugins. The pet appears above the terminal prompt with its context/quota HUD below.
The marketplace and plugin retain their established pixel-pet identifiers. If you already use the original marketplace, you can try this checkout for one session without changing that installation:
claude --plugin-dir ./plugins/pixel-pet
<p align="center"><img src="docs/images/demo.gif" width="806" alt="Claude Code demo: reading, searching, subagent minis, web fetching, editing, failed tests and celebration"></p>
The pet acts out reading, searching, writing, terminal commands and web activity. Subagents get minis that remain until they finish. Tool failures change the pet's expression; completed turns make it cheer. Idle time brings breathing, blinking and sleep.
Run /plugin configure pixel-pet@pixel-pet for speed, sleep, HUD, status text and subagent minis. Ask Claude to customize a pet or run /pixel-pet:pixel-pet; review its browser preview before applying the theme. See the Claude Code guide for settings, updating, supported displays, privacy and development checks.
Context and quota HUD
- HP: context window remaining.
- MP: remaining reported 5-hour quota, with a reset countdown.
- ST: remaining reported 7-day quota, with a reset countdown.
Quota availability depends on the runtime and account. Missing readings stay unknown. The bars reflect observed usage, not extra permissions or guaranteed task capacity. Low readings change colors and pet expressions.
Make it yours
Both integrations support custom pixel pets, props, effects, status text, HUD colors and scenes through the shared theme format.
Try a purple slime, a rubber duck, a moon scene, a radar for web searches or a HUD named FUEL. Codex uses get_theme, get_theme_format, preview_theme and set_theme; Claude Code uses its plugin skill and theme tools. Preview the result before applying it.
Legendary Pet
In VS Code, run Pixel Pet: Open Legendary Pet for an independent panel. Mega Rayquaza has five actions: flight, curled sleep, roar, Dragon Pulse and dash/braking, with smooth transitions, Auto and Pause. Hình gốc plays the unchanged source frames for comparison.
<p align="center"><img src="docs/images/legendary-source-actions.gif" width="700" alt="Five Mega Rayquaza actions with smooth transitions and a visible sleeping head"></p>Its animation runs locally, shares no AI session and makes no model requests.
Develop
- Shared engine and Claude adapter:
plugins/pixel-pet/. - Codex adapter and VS Code panels:
extensions/codex/. - Build, packaging and recordings:
tools/codex/. - Independent repo workflow and upstream contributions: development guide.
For the Codex companion, run npm.cmd ci, npm.cmd run typecheck, npm.cmd test and npm.cmd run package. Also run npm.cmd run test:ui after host, renderer or bridge changes. On macOS/Linux, use npm.
For Claude plugin changes, follow CLAUDE.md and run:
claude plugin validate . --strict
claude plugin validate plugins/pixel-pet --strict
claude plugin test plugins/pixel-pet
The Claude Code guide includes generated-type setup and preview checks. Recreate Codex GIFs with npm.cmd run record:codex-pets or npm.cmd run record:legendary (Chrome/Edge and ffmpeg required).
Privacy and security
The Codex companion observes local hooks, workspace-scoped session logs and project diagnostics. It retains sanitized activity metadata, not prompts, reasoning or full tool output. It does not modify OpenAI's installed extension or approve tools.
The Claude plugin runs inside Claude Code, reads its theme/session usage/subagent state and draws the pet. The mod makes no network requests, starts no processes and reads no environment variables. Its optional status targets show short file/command hints; turn those off when sharing your screen.
See each integration's guide for details. Report vulnerabilities through a private security advisory.
License and attribution
MIT. Pixel Familiars is maintained by PhucUSk20. Original Pixel Pet by halluqinate, from Namenomeaning/pixel-pet. Original copyright notices and commit authorship are preserved.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add PhucUSk20/pixel-familiars claude plugin install pixel-pet
Original text / README
Owned and maintained by PhucUSk20. Based on Namenomeaning/pixel-pet, with original authorship and MIT notices preserved.
Choose your companion
Both integrations use the shared pixel engine and theme format. Each connects to its own runtime; features differ where their event streams and display surfaces differ.
| | Codex | Claude Code | | --- | --- | --- | | Display | Responsive VS Code panel | Pet above the terminal prompt, HUD below | | Activity | Native hooks, with a session-log fallback | Claude Code mod events | | Shared pet motions | Read, search, write, terminal, web, think and celebrate | Read, search, write, terminal, web, think and celebrate | | HUD | Context remaining and reported quota/reset times | Context remaining and reported quota/reset times | | Customization | MCP theme tools, preview and import | Plugin skill, preview and theme tools | | Task companions | Portal workers, subagent minis and automatic project Mini | Subagent minis following the main pet | | Idle play | Independent roaming and 20 pet interactions | Breathing, looking around and sleep | | Legendary Pet | Independent panel with five Mega Rayquaza actions | Available through the Codex VS Code companion | | Detailed guide | Codex guide | Claude Code guide |
Observation and animation run locally and add no AI calls or tokens. Asking an AI to redesign a theme uses its normal chat/tool workflow.
Get started
Clone this repository to install the Codex companion or load the Claude plugin directly from source:
git clone https://github.com/PhucUSk20/pixel-familiars.git
cd pixel-familiars
Codex
Requirements: Node 22.18+, VS Code with the code command available, and the Codex extension installed.
Run one installation command from the cloned folder:
npm.cmd run install:codex
On macOS/Linux, use npm run install:codex. The installer downloads dependencies, builds/packages the extension, installs it and configures the local observer hooks and MCP theme tools. It opens the bundled Codex CLI for hook review:
- Approve folder trust if prompted. Enter
/hooks, review and trust the 12 Pixel Pet observer entries. - Exit the review CLI. Run Developer: Reload Window, then Pixel Pet: Open Companion in VS Code.
- Start a new Codex conversation and run a tool. The panel should show Direct hooks after receiving a real event.
Direct hooks provides the fullest tool/subagent timing and compaction animations. Log fallback remains available when native events are unavailable; it cannot recover every nested start time. Review is required by Codex and is not granted automatically. The review CLI can close after approval.
<p align="center"><img src="docs/images/codex-pet-summoning.gif" width="816" alt="Codex demo: sky portals summon independent Read, Edit and Run workers, with result deliveries"></p>Tools summon worker minis through colored sky portals. Parallel work keeps separate workers until recorded completion. Success brings a parcel back to the main pet; failure brings a clickable error sign. The persistent Mini watches observed checks and editor errors automatically.
The pets also explore independently and occasionally meet for 20 different idle interactions. Feed invites a picnic, Play starts catch, and Rest pauses autonomous play. Real work interrupts play. The meadow fills the panel width, and short panels move the compact HUD into a corner. Workplace buildings are temporarily disabled.
<p align="center"><img src="docs/images/codex-pet-actions.gif" width="816" alt="Codex demo gallery of 20 different local pet interactions"></p>The Codex GIFs use simulated activity with the production renderer. Update by rerunning the installer and reviewing changed hook definitions. Read the Codex guide for session selection, quota readings, settings, privacy and panel placement. The pet is a separate view rather than an embedded part of Codex's chat.
Claude Code
Requirement: Claude Code 2.1.287+ (claude --version). Install the plugin from this repository's marketplace:
claude plugin marketplace add PhucUSk20/pixel-familiars
claude plugin install pixel-pet@pixel-pet
Start a new session, or run /reload-plugins. The pet appears above the terminal prompt with its context/quota HUD below.
The marketplace and plugin retain their established pixel-pet identifiers. If you already use the original marketplace, you can try this checkout for one session without changing that installation:
claude --plugin-dir ./plugins/pixel-pet
<p align="center"><img src="docs/images/demo.gif" width="806" alt="Claude Code demo: reading, searching, subagent minis, web fetching, editing, failed tests and celebration"></p>
The pet acts out reading, searching, writing, terminal commands and web activity. Subagents get minis that remain until they finish. Tool failures change the pet's expression; completed turns make it cheer. Idle time brings breathing, blinking and sleep.
Run /plugin configure pixel-pet@pixel-pet for speed, sleep, HUD, status text and subagent minis. Ask Claude to customize a pet or run /pixel-pet:pixel-pet; review its browser preview before applying the theme. See the Claude Code guide for settings, updating, supported displays, privacy and development checks.
Context and quota HUD
- HP: context window remaining.
- MP: remaining reported 5-hour quota, with a reset countdown.
- ST: remaining reported 7-day quota, with a reset countdown.
Quota availability depends on the runtime and account. Missing readings stay unknown. The bars reflect observed usage, not extra permissions or guaranteed task capacity. Low readings change colors and pet expressions.
Make it yours
Both integrations support custom pixel pets, props, effects, status text, HUD colors and scenes through the shared theme format.
Try a purple slime, a rubber duck, a moon scene, a radar for web searches or a HUD named FUEL. Codex uses get_theme, get_theme_format, preview_theme and set_theme; Claude Code uses its plugin skill and theme tools. Preview the result before applying it.
Legendary Pet
In VS Code, run Pixel Pet: Open Legendary Pet for an independent panel. Mega Rayquaza has five actions: flight, curled sleep, roar, Dragon Pulse and dash/braking, with smooth transitions, Auto and Pause. Hình gốc plays the unchanged source frames for comparison.
<p align="center"><img src="docs/images/legendary-source-actions.gif" width="700" alt="Five Mega Rayquaza actions with smooth transitions and a visible sleeping head"></p>Its animation runs locally, shares no AI session and makes no model requests.
Develop
- Shared engine and Claude adapter:
plugins/pixel-pet/. - Codex adapter and VS Code panels:
extensions/codex/. - Build, packaging and recordings:
tools/codex/. - Independent repo workflow and upstream contributions: development guide.
For the Codex companion, run npm.cmd ci, npm.cmd run typecheck, npm.cmd test and npm.cmd run package. Also run npm.cmd run test:ui after host, renderer or bridge changes. On macOS/Linux, use npm.
For Claude plugin changes, follow CLAUDE.md and run:
claude plugin validate . --strict
claude plugin validate plugins/pixel-pet --strict
claude plugin test plugins/pixel-pet
The Claude Code guide includes generated-type setup and preview checks. Recreate Codex GIFs with npm.cmd run record:codex-pets or npm.cmd run record:legendary (Chrome/Edge and ffmpeg required).
Privacy and security
The Codex companion observes local hooks, workspace-scoped session logs and project diagnostics. It retains sanitized activity metadata, not prompts, reasoning or full tool output. It does not modify OpenAI's installed extension or approve tools.
The Claude plugin runs inside Claude Code, reads its theme/session usage/subagent state and draws the pet. The mod makes no network requests, starts no processes and reads no environment variables. Its optional status targets show short file/command hints; turn those off when sharing your screen.
See each integration's guide for details. Report vulnerabilities through a private security advisory.
License and attribution
MIT. Pixel Familiars is maintained by PhucUSk20. Original Pixel Pet by halluqinate, from Namenomeaning/pixel-pet. Original copyright notices and commit authorship are preserved.

