Get Claude to tell you about how you use it. Just provide this prompt and check your usage report:
I want to analyze my ~/.claude directory to understand how I use Claude Code.
First, explore the directory structure to understand what data is available:
- ~/.claude/history.jsonl (session index)
- ~/.claude/projects/ (full conversation logs by project)
- ~/.claude/todos/ (task tracking)
- ~/.claude/stats-cache.json (usage statistics)
- ~/.claude/settings.json (configuration)
- ~/.claude/commands/ and ~/.claude/skills/ (customizations)
Then launch parallel sub-agents to analyze different aspects:
1. **Session patterns agent**: Parse history.jsonl to extract session counts by
day/hour, identify most-used projects, calculate session frequency over time
2. **Conversation analysis agent**: Sample JSONL files from projects/ to analyze:
- Common tool sequences/workflows
- Average conversation length
- Types of tasks (look for keywords: fix, add, refactor, test, etc.)
3. **Configuration agent**: Review settings.json, commands/, skills/, and any
CLAUDE.md files to document customizations and preferences
4. **Example prompts agent**: Extract interesting user prompts from conversations
that showcase usage patterns - categorize by type (debugging, architecture,
orchestration, etc.)
Compile findings into a markdown report with:
- Overview metrics (sessions, messages, date range, primary projects)
- Time patterns (when do I work, peak hours, day of week distribution)
- Tool usage breakdown with percentages
- Common workflows (tool sequences)
- Task types based on keyword analysis
- Example prompts organized by category
- Key insights (3-5 bullet summary of distinctive patterns)
Save the report to ~/.claude/usage-report.md