Skip to main content

A CLI tool to maximize Claude Code usage blocks with intelligent session warming and comprehensive project analytics.

Project description

cc-warmup 🔥

Maximize Claude Code usage blocks with intelligent session warming and comprehensive project analytics.

cc-warmup is a powerful CLI tool that analyzes your Claude Code usage patterns, categorizes your messages, and automatically sends warmup messages to keep your sessions active. It features real-time monitoring, rich terminal colors, and comprehensive project analytics.

✨ Features

  • 🔄 Watch Mode (Default): Continuous monitoring with auto-refresh
  • 🔥 Auto-Warmup: Automatically sends warmup messages when needed
  • 🏷️ Message Categorization: AI-powered categorization of your messages into planning, development, debugging, and testing
  • 📊 Rich Analytics: Project-level and global statistics with beautiful terminal colors
  • 🎯 Project-Specific Analysis: Deep dive into individual project patterns
  • ⚡ High Performance: Efficient processing with optimized algorithms

🚀 Quick Install

From PyPI (Recommended)

Once the package is uploaded to PyPI, you can install it with:

pip install cc-warmup

From Source

# Clone the repository
git clone <repository>
cd cc-warmup

# Build and install the package
python3 -m build
pip install dist/cc_warmup-1.1.0-py3-none-any.whl

# Start using cc-warmup immediately!
cc-warmup

📖 Usage Examples

Default Mode (Recommended)

# Start continuous monitoring with auto-warmup
cc-warmup

# This will:
# - Monitor all your Claude Code projects
# - Refresh every 30 seconds
# - Automatically send warmups when needed
# - Display colorful analytics
# - Exit with Ctrl+C

Analysis Modes

# Category analytics only
cc-warmup --categories-only

# Specific project analysis
cc-warmup --project "my-awesome-app"

# Custom refresh interval (60 seconds)
cc-warmup --refresh-interval 60

# Monitor without sending warmups
cc-warmup --no-warmup

Legacy Single-Run Mode

# Run once and exit (old behavior)
cc-warmup --no-watch

# Dry run - see what warmups would be sent
cc-warmup --dry-run --no-watch

# Test warmup functionality
cc-warmup --test-warmup

🎨 Sample Output

🔄 cc-warmup Watch Mode
⏰ Last updated: 2025-07-08 18:53:42 | Refresh: 30s | 🔥 Auto-warmup ON | Press Ctrl+C to exit
================================================================================

📊 GLOBAL SESSION ANALYSIS
================================================================================
🔍 Discovered 8 projects with 11 global sessions (11,412 total entries)
⏱️  Processing time: 2.81s

🏷️  CATEGORY ANALYTICS
================================================================================
📈 Global Category Summary:
   Total categorized: 2,329 messages
   🎯 Planning: 254 (10.9%)
   💻 Development: 730 (31.3%)
   🐛 Debugging: 890 (38.2%)
   🧪 Testing: 455 (19.5%)

📊 Project Category Breakdown:
   📁 my-app: Rate: 1102/4839 (22.8%)
      🎯 Planning: 106 (9.6%)
      💻 Development: 344 (31.2%)
      🐛 Debugging: 379 (34.4%)
      🧪 Testing: 273 (24.8%)

🔧 Command Line Options

Option Description
--help Show all available options
--categories-only Show detailed category analytics
--project NAME Analyze specific project
--no-watch Disable watch mode (run once)
--no-warmup Disable auto-warmup
--refresh-interval N Set refresh interval (seconds)
--lookback HOURS Hours to analyze (default: 168)
--dry-run Show analysis without sending warmups
--test-warmup Test warmup functionality

🔍 What cc-warmup Does

  1. Scans your ~/.claude/projects directory
  2. Analyzes all Claude Code session data (JSONL files)
  3. Categorizes messages using AI-powered keyword matching
  4. Monitors session activity and timing
  5. Sends warmup messages automatically when sessions need extension
  6. Displays rich analytics with beautiful terminal colors

📊 Message Categories

  • 🎯 Planning: Architecture, design, requirements, roadmaps
  • 💻 Development: Coding, implementation, refactoring, deployment
  • 🐛 Debugging: Error fixing, troubleshooting, investigations
  • 🧪 Testing: Unit tests, integration tests, validation

⚙️ Requirements

  • Python 3.8+
  • tabulate (installed automatically)
  • Claude Code with active projects in ~/.claude/projects

🔒 Privacy & Security

cc-warmup only reads local Claude Code session files and operates entirely offline except for sending warmup messages through Claude Code's standard mechanisms. No data is transmitted to external services.

🐛 Troubleshooting

Command not found

# Add to PATH manually
export PATH="$HOME/.local/bin:$PATH"

# Or restart your shell

Python/pip issues

# Check Python version
python3 --version  # Should be 3.8+

# Install pip if missing
sudo apt install python3-pip  # Ubuntu/Debian
brew install python3          # macOS

Permission issues

# Don't run as root, the script will handle permissions
./install.sh

🎯 Perfect For

  • Active Claude Code users who want to maximize their usage
  • Developers tracking their AI-assisted workflow patterns
  • Teams analyzing development patterns and debugging frequency
  • Anyone who wants beautiful, informative Claude Code analytics

Ready to supercharge your Claude Code experience? Install cc-warmup and never lose a session again! 🚀

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

cc_warmup-1.1.1.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

cc_warmup-1.1.1-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file cc_warmup-1.1.1.tar.gz.

File metadata

  • Download URL: cc_warmup-1.1.1.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for cc_warmup-1.1.1.tar.gz
Algorithm Hash digest
SHA256 bda5e3ca3f86b6abc5064b753eb679737dee5b473630ce89e80f17e03a12b6ff
MD5 89390691b55664e7adbe8da470645fea
BLAKE2b-256 a2cf005a943dcd524f4e8fcd0f5f65b15e18afd195705881ff7d27bfbd225d8c

See more details on using hashes here.

File details

Details for the file cc_warmup-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: cc_warmup-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for cc_warmup-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b30527a2936e5faf6397198ccd7d6561ab9b309a65e95620ade0cff4c0718aa
MD5 9f63cd871884ee5af4a36688e192c7e3
BLAKE2b-256 84e1958e27134e3b5eed333f6ad8681455a316d58ebeeb493fc8592e5007ecb4

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