A virtual pet for Claude Code with daemon mode, IPC, conversation history, and enhanced security
Project description
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
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.5.0.tar.gz.
File metadata
- Download URL: claude_pet_companion-2.5.0.tar.gz
- Upload date:
- Size: 318.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c2ccac42e00b4fd60bc7e55fc19b2cab0e1188973b5f5c50394f69e0f88529
|
|
| MD5 |
d0bbf99b22e48516223b9c3af84146dc
|
|
| BLAKE2b-256 |
46f6842c26f26a6e28ec6205838832ef4f1584b3fbb5777fe99dc79df55e0c25
|
Provenance
The following attestation bundles were made for claude_pet_companion-2.5.0.tar.gz:
Publisher:
release.yml on zhanguser13-CTRL/Claude-code-
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_pet_companion-2.5.0.tar.gz -
Subject digest:
a8c2ccac42e00b4fd60bc7e55fc19b2cab0e1188973b5f5c50394f69e0f88529 - Sigstore transparency entry: 1003723970
- Sigstore integration time:
-
Permalink:
zhanguser13-CTRL/Claude-code-@0006c3cb181b0452d763ff2d100b0ffcf3a2791c -
Branch / Tag:
refs/tags/v2.5.0 - Owner: https://github.com/zhanguser13-CTRL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0006c3cb181b0452d763ff2d100b0ffcf3a2791c -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_pet_companion-2.5.0-py3-none-any.whl.
File metadata
- Download URL: claude_pet_companion-2.5.0-py3-none-any.whl
- Upload date:
- Size: 347.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83b4a497643de46ee5d47998d0176171c1faa1a165d0903bb2c03de8994709c
|
|
| MD5 |
44913944844b1cc03901b82fccb4f3cb
|
|
| BLAKE2b-256 |
a06c8dc3b06123d9cf65fd60fdd8804b54bc6961411a8290ff29dac0fabc88ef
|