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_warmupcommand - โ 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
- Scans your
~/.claude/projectsdirectory - Analyzes all Claude Code session data (JSONL files)
- Categorizes messages using AI-powered keyword matching
- Monitors session activity and timing
- Sends warmup messages automatically when sessions need extension
- 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ceddc22367a2f9d2dea65adc6c1a0b1298b8fa270443d9e1ee5d2b81ae7619d
|
|
| MD5 |
0e610e67bbadb4d213fc3ea5a4f483fe
|
|
| BLAKE2b-256 |
4c54f937912a9d028f116a9d24c15e12a54b0b7c5507578ed4eee7e08617b0df
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e574935d89b04932d69c9a56cf0ac77dddf8c3dcca62ecead37f6742d470096
|
|
| MD5 |
76224ac9630359c81680a785a3c23bf6
|
|
| BLAKE2b-256 |
eba13a82a425f40f6a0e52b977af0f07adbd1cf3151f009bf86ddce8987159c0
|