Skip to main content

A virtual pet for Claude Code with daemon mode, IPC, conversation history, and enhanced security

Project description

Claude Pet Companion

Version PyPI Python License

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() and data_dir issues
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_pet_companion-2.5.0.tar.gz (318.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_pet_companion-2.5.0-py3-none-any.whl (347.0 kB view details)

Uploaded Python 3

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

Hashes for claude_pet_companion-2.5.0.tar.gz
Algorithm Hash digest
SHA256 a8c2ccac42e00b4fd60bc7e55fc19b2cab0e1188973b5f5c50394f69e0f88529
MD5 d0bbf99b22e48516223b9c3af84146dc
BLAKE2b-256 46f6842c26f26a6e28ec6205838832ef4f1584b3fbb5777fe99dc79df55e0c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_pet_companion-2.5.0.tar.gz:

Publisher: release.yml on zhanguser13-CTRL/Claude-code-

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_pet_companion-2.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_pet_companion-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f83b4a497643de46ee5d47998d0176171c1faa1a165d0903bb2c03de8994709c
MD5 44913944844b1cc03901b82fccb4f3cb
BLAKE2b-256 a06c8dc3b06123d9cf65fd60fdd8804b54bc6961411a8290ff29dac0fabc88ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page