Current implementation status and planned features for Claude Code Usage Monitor v3.0.0+.
- Real-time token monitoring with configurable refresh rates (0.1-20 Hz)
- 5-hour session tracking with intelligent session block analysis
- Multi-plan support: Pro (44k), Max5 (88k), Max20 (220k), Custom (P90-based)
- Advanced analytics with burn rate calculations and usage projections
- Cost tracking with model-specific pricing (Opus, Sonnet, Haiku)
- Cache token support for creation and read tokens
- Adaptive color themes with WCAG-compliant contrast ratios
- Auto-detection of terminal background (light/dark/classic)
- Scientific color schemes optimized for accessibility
- Responsive layouts that adapt to terminal size
- Live display with Rich framework integration
- Type-safe configuration with Pydantic validation
- Thread-safe monitoring with callback-driven updates
- Component-based design following Single Responsibility Principle
- Comprehensive error handling with optional Sentry integration
- Atomic file operations for configuration persistence
- P90 percentile analysis for intelligent limit detection
- Statistical confidence scoring for custom plan limits
- Multi-session overlap handling
- Historical pattern recognition with session metadata
- Predictive modeling for session completion times
- PyPI-ready with modern setuptools configuration
- Entry points:
claude-monitor,cmonitor, andccmcommands - Cross-platform support (Windows, macOS, Linux)
- Professional CI/CD with automated testing and releases
📋 Command Aliases:
claude-monitor- Main command (full name)cmonitor- Short alias for convenienceccm- Ultra-short alias for power users
- 100+ test cases with comprehensive coverage (80% requirement)
- Modern toolchain: Ruff, MyPy, UV package manager
- Automated workflows: GitHub Actions with matrix testing
- Code quality: Pre-commit hooks, security scanning
- Documentation: Sphinx-ready with type hint integration
Status: 🔶 Planning Phase
Container-based deployment with optional web dashboard for team environments.
🚀 Container Deployment:
# Lightweight monitoring
docker run -e PLAN=max5 maciek/claude-monitor
# With web dashboard
docker run -p 8080:8080 maciek/claude-monitor --web-mode
# Persistent data
docker run -v ~/.claude_monitor:/data maciek/claude-monitor📊 Web Dashboard:
- React-based real-time interface
- Historical usage visualization
- REST API for integrations
- Mobile-responsive design
- Multi-stage Dockerfile - Optimized build process
- Web Interface - React dashboard development
- API Design - RESTful endpoints for data access
- Security Hardening - Non-root user, minimal attack surface
Status: 🔶 Future Roadmap
Cross-platform monitoring with mobile apps and web interfaces for enterprise environments.
📱 Mobile Applications:
- iOS/Android apps for remote monitoring
- Push notifications for usage milestones
- Offline usage tracking
- Mobile-optimized dashboard
🌐 Enterprise Features:
- Multi-user team coordination
- Shared usage insights (anonymized)
- Organization-level analytics
- Role-based access control
🔔 Advanced Notifications:
- Desktop notifications for token warnings
- Email alerts for usage milestones
- Slack/Discord integration
- Webhook support for custom integrations
- Mobile App Architecture - React Native foundation
- Push Notification System - Cross-platform notifications
- Enterprise Dashboard - Multi-tenant interface
- Integration APIs - Third-party service connectors
- Python 3.9+ with comprehensive type annotations
- Pydantic v2 for type-safe configuration and validation
- UV package manager for fast, reliable dependency resolution
- Ruff linting with 50+ rule sets for code quality
- Rich framework for beautiful terminal interfaces
- 100+ test cases across 15 test files with comprehensive fixtures
- 80% coverage requirement with HTML/XML reporting
- Matrix testing: Python 3.9-3.13 across multiple platforms
- Benchmark testing with pytest-benchmark integration
- Security scanning with Bandit integration
- GitHub Actions workflows with automated testing and releases
- Smart versioning with automatic changelog generation
- PyPI publishing with trusted OIDC authentication
- Pre-commit hooks for consistent code quality
- Cross-platform validation (Windows, macOS, Linux)
- Thread-safe architecture with proper synchronization
- Component isolation preventing cascade failures
- Comprehensive error handling with optional Sentry integration
- Performance optimization with caching and efficient data structures
- Memory management with proper resource cleanup
| Metric | Current Status | Target |
|---|---|---|
| Test Coverage | 80%+ | 80% minimum |
| Type Annotations | 100% | 100% |
| Linting Rules | 50+ Ruff rules | All applicable |
| Security Scan | Bandit clean | Zero issues |
| Performance | <100ms startup | <50ms target |
- Ruff: Modern Python linter and formatter (2025 best practices)
- MyPy: Strict type checking with comprehensive validation
- UV: Next-generation Python package manager
- Pytest: Advanced testing with fixtures and benchmarks
- Pre-commit: Automated code quality checks
- Black: Code formatting with 88-character lines
- isort: Import organization with black compatibility
- Bandit: Security vulnerability scanning
- Safety: Dependency vulnerability checking
# Clone the repository
git clone https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor.git
cd Claude-Code-Usage-Monitor
# Install development dependencies with UV
uv sync --extra dev
# Install pre-commit hooks
uv run pre-commit install
# Run tests
uv run pytest
# Run linting
uv run ruff check .
uv run ruff format .- Feature Planning: Create GitHub issue with detailed requirements
- Branch Creation: Fork repository and create feature branch
- Development: Code with automatic formatting and linting via pre-commit
- Testing: Write tests and ensure 80% coverage requirement
- Quality Checks: All tools run automatically on commit
- Pull Request: Submit with clear description and documentation updates
- ML algorithm implementation for intelligent plan detection
- Performance optimization for real-time monitoring
- Cross-platform testing and compatibility improvements
- Documentation expansion and user guides
- Docker containerization for deployment flexibility
- Web dashboard development for team environments
- Advanced analytics features and visualizations
- API design for third-party integrations
- ML model research for usage pattern analysis
- Mobile app architecture planning
- Enterprise features design and planning
- Plugin system architecture development
Current Research Focus: Optimal approaches for token prediction and limit detection
Algorithms Under Investigation:
- LSTM Networks: Sequential pattern recognition in usage data
- Prophet: Time series forecasting with daily/weekly seasonality
- Isolation Forest: Anomaly detection for subscription changes
- XGBoost: Feature-based limit prediction with confidence scores
- DBSCAN: Clustering similar usage sessions for pattern analysis
Key Research Questions:
- What accuracy can we achieve for individual user limit prediction?
- How do usage patterns correlate with subscription tier changes?
- Can we automatically detect Claude API limit modifications?
- What's the minimum historical data needed for reliable predictions?
Skills: Python, NumPy, Pandas, Scikit-learn, DuckDB, Time Series Analysis Current Opportunities:
- LSTM/Prophet model implementation for usage forecasting
- Statistical analysis of P90 percentile calculations
- Anomaly detection algorithm development
- Model validation and performance optimization
Skills: React, TypeScript, REST APIs, WebSocket, Responsive Design Current Opportunities:
- Real-time dashboard development with live data streaming
- Mobile-responsive interface design
- Component library development for reusable UI elements
- User experience optimization for accessibility
Skills: Docker, Kubernetes, CI/CD, GitHub Actions, Security Current Opportunities:
- Multi-stage Docker optimization for minimal image size
- Advanced CI/CD pipeline enhancement
- Security hardening and vulnerability management
- Performance monitoring and observability
Skills: React Native, iOS/Android Native, Push Notifications Future Opportunities:
- Cross-platform mobile app architecture
- Offline data synchronization
- Native performance optimization
- Push notification system integration
- Test Coverage: 80%+ maintained across all modules
- Startup Time: <100ms for typical monitoring sessions
- Memory Usage: <50MB peak for standard workloads
- CPU Usage: <5% average during monitoring
- Type Safety: 100% type annotation coverage
| Version | Focus | Timeline | Key Features |
|---|---|---|---|
| v3.1 | Performance & UX | Q2 2025 | ML auto-detection, UI improvements |
| v3.5 | Platform Expansion | Q3 2025 | Docker support, web dashboard |
| v4.0 | Intelligence | Q4 2025 | Advanced ML, enterprise features |
| v4.5 | Ecosystem | Q1 2026 | Mobile apps, plugin system |
- User Adoption: Growing community with active contributors
- Code Quality: Maintained high standards with automated enforcement
- Performance: Sub-second response times for all operations
- Reliability: 99.9% uptime for monitoring functionality
- Documentation: Comprehensive guides for all features
- Repository: Claude-Code-Usage-Monitor
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Releases: GitHub Releases
- Technical Questions: Open GitHub issues with detailed context
- Feature Requests: Use GitHub discussions for community input
- Security Issues: Email maciek@roboblog.eu directly
- General Inquiries: GitHub discussions or repository issues
- User Guide: README.md with comprehensive usage examples
- API Documentation: Auto-generated from type hints
- Contributing Guide: CONTRIBUTING.md with detailed workflows
- Code Examples: /docs/examples/ directory with practical demonstrations
Ready to contribute? This v3.0.0 codebase represents a mature, production-ready foundation for the next generation of intelligent Claude monitoring!