Claude Pet Companion
A virtual pet for Claude Code with evolution system, memory tracking, conversation history, productivity features, and enhanced security.
What's New in v2.5.0
-
🔒 Security Hardening - Comprehensive security audit and fixes
- Removed unsafe pickle deserialization
- Fixed IPC message handling vulnerabilities
- Added JSON type validation
- Implemented path traversal protection
- Set restrictive file permissions
- Atomic file operations for data integrity
-
🛡️ Enhanced Stability - Improved error handling and recovery
-
📝 Better Logging - Detailed security and error logs
-
✅ Full Compliance - OWASP Top 10 and CWE standards
Previous Features (v2.3.1+)
- Fixed Installation Bugs - Fixed
check_installed()anddata_dirissues - Error Handling System - Centralized logging and error management
- Cross-Platform Audio - Sound effects system (Windows/macOS/Linux)
- Extended Achievements - 30+ achievements with rarity levels
- Customization System - Accessories, colors, and appearance options
- Animation Library - Keyframe animations with easing functions
- Minigames - Catch and Memory games with rewards
- Unit Tests - 36 tests with 100% pass rate
- Daemon Mode - Single-instance background process
- IPC Communication - Real-time pet state queries
- Conversation History - Save and restore chat contexts
Quick Start
pip install claude-pet-companion
Desktop Pet
claude-pet
Claude Code Plugin
claude-pet install
Usage Guide
Desktop Pet
# Launch pet
claude-pet
# Daemon commands
claude-pet daemon start # Start background daemon
claude-pet daemon status # Check status
claude-pet daemon stop # Stop daemon
Claude Code Commands
| Command | Description |
|---|---|
/pet:status |
View pet stats, level, mood |
/pet:feed |
Feed pet (+30 hunger) |
/pet:play |
Play with pet (+25 happiness) |
/pet:sleep |
Toggle sleep mode |
/pet:restore |
List & restore conversations |
/pet:continue [id] |
Continue a conversation |
Conversation History
# List recent conversations
/pet:restore
# Restore specific conversation
/pet:restore abc123
# Continue conversation
/pet:continue abc123
Evolution System
10 Stages
Egg → Hatchling → Baby → Child → Pre-Teen → Teen → Young Adult → Adult → Elder → Ancient
5 Paths
| Path | Style |
|---|---|
| Coder | Blue/Green tech theme |
| Warrior | Orange/Red battle theme |
| Social | Pink/Heart cute theme |
| Night Owl | Purple/Yellow mystery |
| Balanced | Green/Teal harmony |
Features
- 3D Pseudo-Rendering - Multi-layer depth with dynamic lighting
- Memory System - Remembers your coding activities
- Productivity Tracking - Score, focus, combos, flow state
- 5 Themes - Blue, Pink, Green, Dark, Purple
- Mouse Tracking - Eyes follow cursor
- Dynamic Expressions - Happy, thinking, working, error, success
- Security Hardened - Comprehensive security audit and fixes
Configuration
~/.claude-pet-companion/config.json
{
"theme": "default",
"pet_name": "Claude",
"animation_speed": 1.0,
"daemon_enabled": true,
"ipc_port": 15340
}
Security
This release includes comprehensive security hardening:
- ✅ No unsafe deserialization
- ✅ Path traversal protection
- ✅ Secure file operations
- ✅ Type validation
- ✅ Restrictive file permissions
- ✅ OWASP Top 10 compliant
See SECURITY_AUDIT_REPORT.md for details.
Requirements
- Python 3.8+
- tkinter (included with Python)
License
MIT License
Contributing
Contributions welcome! Please ensure:
- Code passes security audit
- Tests pass
- Documentation updated
Support
Release files for claude-pet-companion 2.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_pet_companion-2.5.0.tar.gz | 318.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_pet_companion-2.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:665.9 kB
Release files / claude_pet_companion-2.5.0.tar.gz
| Download URL | claude_pet_companion-2.5.0.tar.gz |
|---|---|
| Size | 318.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8c2ccac42e00b4fd60bc7e55fc19b2cab0e1188973b5f5c50394f69e0f88529
|
|
BLAKE2b-256 checksum How to use checksums |
46f6842c26f26a6e28ec6205838832ef4f1584b3fbb5777fe99dc79df55e0c25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.
Transparency logRelease files / claude_pet_companion-2.5.0-py3-none-any.whl
| Download URL | claude_pet_companion-2.5.0-py3-none-any.whl |
|---|---|
| Size | 347.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f83b4a497643de46ee5d47998d0176171c1faa1a165d0903bb2c03de8994709c
|
|
BLAKE2b-256 checksum How to use checksums |
a06c8dc3b06123d9cf65fd60fdd8804b54bc6961411a8290ff29dac0fabc88ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|