A pixel-art virtual pet plugin for Claude Code
Project description
Claude Code Pet Companion v2.0
A beautiful animated desktop pet that lives on your screen while you code with Claude Code.
โจ What's New in v2.0
Major visual overhaul with 50+ enhancements:
- ๐จ 5 Color Themes - Blue, Pink, Green, Dark, Purple
- ๐ Mouse Eye Tracking - Pet watches your cursor
- ๐ญ 9 Expressions - Surprised, Excited, Proud, Confused + more
- โจ Enhanced Particles - Sparkles, notes, code symbols
- ๐ Level Celebrations - Ring expansion + particle burst
- ๐ Combo System - Chain actions for bonus XP
- ๐ฑ Ears & Tail - Animated ears that twitch, swaying tail
- ๐จ Breathing Effect - Subtle body scaling animation
- ๐ฏ Smart Drag - Edge detection + elastic bounce
Features
๐จ Theme System
Switch between 5 beautiful color schemes via right-click menu:
| Theme | Description |
|---|---|
| Blue (Default) | Classic Claude blue tones |
| Pink | Warm rose and magenta |
| Green | Fresh nature greens |
| Dark | Sleek monochrome |
| Purple | Mystical violet vibes |
๐๏ธ Mouse Eye Tracking
The pet's eyes follow your mouse cursor, creating an engaging interactive experience.
๐ญ Dynamic Expressions
| State | Expression |
|---|---|
| Idle | ๐ Happy with smile |
| Thinking | ๐ค Eyes shift with question mark |
| Working | โก Focused with sweat drop |
| Error | ๐ต X eyes with worry |
| Success | โจ Sparkling star eyes |
| Surprised | ๐ฒ Wide eyes, open mouth |
| Excited | ๐ Shining eyes with sparkles |
| Proud | ๐ Confident smirk |
| Confused | ๐คท Uneven eyes, question mark |
๐ช Particle Effects
- Hearts (โฅ) - Love and interaction
- Stars (โ ) - Success and celebration
- Sparkles (โฆ) - Special moments
- Notes (โช) - Musical feedback
- Circles (โ) - Visual pops
- Code ({} ) - Programming actions
- Plus (+) - XP gains
๐ฎ Interactions
| Action | Effect |
|---|---|
| Drag | Move pet (with edge protection) |
| Double-click | Pet jumps + hearts |
| Right-click | Full menu |
| Hover | Show controls |
๐ Gamification
- XP System - Gain experience from coding
- Leveling - Progress through levels with celebrations
- Combo Multiplier - Chain actions for bonus XP
- Visual Feedback - Floating XP numbers
Installation
Via pip
pip install claude-pet-companion
Run
claude-pet
# or
pet-companion
From Source
git clone https://github.com/your-repo/claude-pet-companion.git
cd claude-pet-companion
pip install -e .
claude-pet
Configuration
Theme Selection
Right-click pet โ ๐จ Theme โ Select theme
Config File
Edit ~/.claude-pet-companion/config.json:
{
"theme": "pink",
"animation_speed": 1.0,
"float_amplitude": 3.0,
"pet_name": "Buddy",
"target_fps": 40,
"hunger_decay": 0.5,
"happiness_decay": 0.3
}
Settings
| Setting | Default | Description |
|---|---|---|
theme |
"default" | Color theme name |
animation_speed |
1.0 | Animation multiplier |
float_amplitude |
3.0 | Floating movement range |
pet_name |
"Claude" | Pet's name |
target_fps |
40 | Target frame rate |
hunger_decay |
0.5 | Hunger loss per second |
happiness_decay |
0.3 | Happiness loss per second |
Claude Code Integration
The pet automatically responds to your coding activities:
| Activity | XP | Pet Reaction |
|---|---|---|
| Write file | +15 | Excited + stars |
| Edit file | +10 | Happy + sparkles |
| Run command | +5 | Focused |
| Error detected | - | Worried |
| Chain actions | +Bonus | Combo multiplier! |
Visual Effects
Background
- 50-step gradient - Smooth color transition
- 20 twinkling stars - Animated night sky
- Glowing grid - Subtle tech aesthetic
- Frosted glass bar - Status panel blur
Pet Animations
- Floating - Gentle bobbing motion
- Breathing - Subtle scale pulsing
- Ear twitching - Random ear movements
- Tail swaying - Sinusoidal tail motion
- Shadow changes - Dynamic with floating
UI Feedback
- Status bar colors:
- ๐ข Green (โฅ60%) - Healthy
- ๐ก Yellow (30-60%) - Warning
- ๐ด Red (<30%) - Critical
Data Storage
~/.claude-pet-companion/
โโโ config.json # User settings
โโโ pet_state.json # Pet stats & level
โโโ activity.json # Real-time activity
โโโ pet_window_state.json # Window position
Controls
Right-Click Menu
๐ Feed - Restore hunger (+30)
๐พ Play - Increase happiness (+25)
โค๏ธ Interact - Quick happiness (+10)
โโโโโโโโโโโโโโโ
๐ด Sleep/Wake - Toggle sleep mode
๐ Status - View detailed stats
๐จ Theme - Change colors
โโโโโโโโโโโโโโโ
โ Exit - Close pet
Mouse Actions
- Single click - Select/focus
- Double click - Jump celebration
- Right click - Open menu
- Drag - Reposition
- Scroll wheel - (Reserved for future)
Development
Project Structure
claude-pet-companion/
โโโ claude_pet_companion/
โ โโโ __init__.py
โ โโโ claude_pet_hd.py # Main pet with animations
โ โโโ cli.py # Entry point
โ โโโ config.py # Configuration system
โ โโโ themes.py # Theme definitions
โโโ scripts/ # Hook scripts
โโโ skills/ # Claude Code skills
โโโ data/ # Default data
โโโ hooks/ # Hook definitions
Adding Custom Themes
Edit claude_pet_companion/themes.py:
'custom': ColorScheme(
bg_top='#1a1a2e',
bg_bottom='#16213e',
pet_primary='#e94560',
# ... more colors
)
Changelog
v2.0.1 (2024-02)
- Added: Theme system with 5 color schemes
- Added: Configuration file support
- Added: Mouse eye tracking
- Added: 4 new expressions (surprised, excited, proud, confused)
- Added: Floating XP numbers
- Added: Level-up celebration animation
- Added: Combo system for chained actions
- Added: Smart edge detection for dragging
- Added: Elastic drag with bounce effect
- Added: Animated ears and tail
- Added: Breathing animation
- Enhanced: Particle system with 5 new types
- Enhanced: Background with twinkling stars
- Improved: Status bar color thresholds
v2.0.0
- New: High-resolution compact UI (240x280)
- New: Real-time Claude Code integration
- New: Dynamic expressions based on activity
- New: XP and leveling system
Requirements
- Python 3.8+
- tkinter (usually included with Python)
License
MIT License - see LICENSE file for details
Credits
Made with โค๏ธ for the Claude Code community
Contributors welcome! Feel free to open issues and PRs.
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.2.tar.gz.
File metadata
- Download URL: claude_pet_companion-2.0.2.tar.gz
- Upload date:
- Size: 72.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df6bcd41abea77bd17fca538ae2e5959900d97dfcc53e028aac85cc8778a2967
|
|
| MD5 |
ea94244dd35ff07970ffb9a627783959
|
|
| BLAKE2b-256 |
33125980ab3657d71fd679e882f20e7367c46e59d12c10041f5572dbf5e29ce0
|
File details
Details for the file claude_pet_companion-2.0.2-py3-none-any.whl.
File metadata
- Download URL: claude_pet_companion-2.0.2-py3-none-any.whl
- Upload date:
- Size: 27.2 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 |
f4db2876c30e6d7ad3506c51297f1a0b69268fb1fedaa53a6f476fa04971b15c
|
|
| MD5 |
b5a8412b8a5503f64c105705f148d384
|
|
| BLAKE2b-256 |
342e9f58032fa6b4ef8d7c0cc9f445fbfd8c9a33eaf994298f69e0f643d36c1f
|