A pixel-art virtual pet plugin for Claude Code
Project description
Claude Code Pet Companion v2.0
A high-resolution desktop pet that deeply integrates with Claude Code, providing real-time visual feedback as you code.
Features
Real-Time Claude Code Integration
- Live Activity Monitoring - Pet responds to your coding actions in real-time
- Tool Detection - Reacts to Write, Edit, Read, and Bash operations
- Status Awareness - Shows thinking, working, success, and error states
- XP & Leveling - Gain experience as you code
High-Resolution Display
- Compact Window (240x280) - Minimal screen footprint
- 40 FPS Animation - Smooth, fluid animations
- Clear Typography - Segoe UI / Consolas fonts
- Crisp Graphics - High DPI rendering
Dynamic Expressions
| State | Expression |
|---|---|
| Idle | 😊 Happy with blue glow |
| Thinking | 🤔 Eyes moving with question mark |
| Working | ⚡ Focused eyes with sweat drop |
| Error | 😵 X eyes with worried look |
| Success | ✨ Sparkling eyes with stars |
Interactive Features
- Drag to Move - Position anywhere on screen
- Double Click - Pet jumps with joy
- Right Click - Full interaction menu
- Hover - Shows control buttons
Installation
Quick Start (Windows)
-
Download this repository
-
Run the pet:
# Double-click 启动Claude宠物HD.vbs # Or from command line python claude_pet_companion/claude_pet_hd.py
From Source
# Install in development mode
pip install -e .
# Run from anywhere
claude-pet
Usage
Automatic Integration
Once installed via Claude Code's plugin system (--plugin-dir), the pet automatically tracks your activities:
- Writing files → +15 XP, pet gets excited
- Editing files → +10 XP, pet is happy
- Running commands → +5 XP, pet focuses
- Errors detected → Pet shows concern
Manual Interactions
Right-click the pet for:
- 🍖 Feed - Restore hunger (+30)
- 🎾 Play - Increase happiness (+25)
- ❤️ Interact - Quick happiness boost (+10)
- 😴 Sleep - Toggle sleep mode
Keyboard Shortcuts (in pet window)
- Double-click - Jump and interact
- Right-click - Open menu
- Drag - Move window
Data Storage
~/.claude-pet-companion/
├── pet_state.json # Pet stats and progress
├── activity.json # Real-time activity log
└── pet_window_state.json # Window position
Configuration
Hooks Integration
The plugin automatically registers hooks to monitor:
PreToolUse- Detect when operations startPostToolUse- Track successful completionsPostToolUseFailure- Catch errorsSessionStart/End- Session bonuses
Settings
Edit plugin.json to customize:
- Meal times for hunger bonuses
- Sleep hours for auto-sleep suggestion
- XP rates and level scaling
Development
Project Structure
claude-pet-companion/
├── claude_pet_companion/
│ ├── __init__.py
│ ├── claude_pet_hd.py # Main pet application
│ └── cli.py # Command-line entry
├── scripts/
│ └── activity_tracker.py # Hook integration
├── hooks/
│ └── hooks.json # Claude Code hooks
├── skills/ # Plugin skills
├── data/ # Default data
└── README.md
Changelog
v2.0.0 (Current)
- New: High-resolution compact UI (240x280)
- New: Real-time Claude Code integration (0.2s updates)
- New: 5 dynamic expressions based on activity
- New: Activity tracking with particle effects
- Improved: 40 FPS smooth animations
- Removed: Old deprecated versions
License
MIT License - see LICENSE file for details
Made with ❤️ for the Claude Code community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_pet_companion-2.0.1.tar.gz.
File metadata
- Download URL: claude_pet_companion-2.0.1.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5666688ef31dfdd13b701ff67c064a3106a488e6b41129190e605f9be975299c
|
|
| MD5 |
3e36e0c352ab213af0cd799bf8408877
|
|
| BLAKE2b-256 |
9af1687ed9c26346b32178b4743de5f06f17f7bf5d66cda6964dbd1456bf1cae
|
File details
Details for the file claude_pet_companion-2.0.1-py3-none-any.whl.
File metadata
- Download URL: claude_pet_companion-2.0.1-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbcc9508b086f99d8f3ac19603d7dde8e443cb66f2d5bc72b8dadbb18cbf3403
|
|
| MD5 |
e61aa05f7e38a6651b9c683bca99e11a
|
|
| BLAKE2b-256 |
82918f70551f67b27dbbef8de16416587d744eb78b43efbc1df7fcd0d8330d98
|