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

# Clone or download the cc-warmup tool
git clone <repository> # or download files
cd cc_warmup

# Run the installation script
./install.sh

# Start using cc-warmup immediately!
cc_warmup

The install script will:

  • โœ… Check Python 3.8+ requirements
  • โœ… Install dependencies via pip
  • โœ… Create a global cc_warmup command
  • โœ… Add to your system PATH
  • โœ… Test the installation

๐Ÿ“– 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.0.0.tar.gz (42.5 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.0.0-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_warmup-1.0.0.tar.gz
  • Upload date:
  • Size: 42.5 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.0.0.tar.gz
Algorithm Hash digest
SHA256 8ceddc22367a2f9d2dea65adc6c1a0b1298b8fa270443d9e1ee5d2b81ae7619d
MD5 0e610e67bbadb4d213fc3ea5a4f483fe
BLAKE2b-256 4c54f937912a9d028f116a9d24c15e12a54b0b7c5507578ed4eee7e08617b0df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_warmup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 47.2 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e574935d89b04932d69c9a56cf0ac77dddf8c3dcca62ecead37f6742d470096
MD5 76224ac9630359c81680a785a3c23bf6
BLAKE2b-256 eba13a82a425f40f6a0e52b977af0f07adbd1cf3151f009bf86ddce8987159c0

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