A Python package for analyzing Claude Code conversation history to extract meaningful productivity insights and usage patterns.
This tool analyzes your Claude Code conversation data to provide insights into:
- Session & Usage Metrics: Tool usage, file operations, conversation patterns
- Productivity Insights: Code generation vs. modification ratios, task management patterns, development velocity
- Workflow Analysis: Read-then-edit patterns, research-to-implementation flows, session productivity scores
- Python 3.11+
- Poetry
- Clone the repository:
git clone <repo-url>
cd claude-code-analytics- Install dependencies:
poetry install- Activate the virtual environment:
poetry shell# Analyze all projects in the current directory
claude-analytics analyze projects
# Analyze your actual Claude Code data
claude-analytics analyze ~/.claude/projectspytestpytest --cov=claude_code_analyticsThe tool provides aggregate analytics across all your conversations including file operations, productivity metrics, workflow patterns, and development insights.
- ✅ Phase 1: Session & Usage Metrics
- ✅ Phase 2: Productivity Insights
- 🔄 Future phases: Project analysis, development flow patterns, learning analytics
See project-plan.md for detailed roadmap.