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.1.0.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.0-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_warmup-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6d6d1323314e923cbcc63dafc28c92dce6ece04e6f039838ce42b98b1fcec6fd
MD5 867b37827fd38cf74fc65cb1c177b5f1
BLAKE2b-256 08d658a23c56e99221786151ad6b098b053400e53726c151a1d19acfbf31cd06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_warmup-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54d61511c60162761a1bb5782c4c03ec4e5ec0d4b8c4ad4fb46a4b8845e1e874
MD5 f122feb20b2ac45199f6646522af4a24
BLAKE2b-256 b087e03d77e4e9f76a3ca6730a876040ce0f3ef06c0b4c366512f627895c5d36

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