| name | analyze-session |
| description | Full pipeline: extract session data, encrypt content, run LLM analysis, generate report. |
| user_invocable | true |
Analyze Session
Run the full extraction → analysis → report pipeline:
-
Extract session metrics:
tsx tools/extract-sessions.ts
-
Extract and encrypt session content:
tsx tools/extract-session-content.ts
-
Run LLM analysis (requires ANTHROPIC_API_KEY):
ANTHROPIC_API_KEY=$(cat ~/.config/audiocontrol/audiocontrol-anthropic-key.txt) tsx tools/analyze-session-llm.ts
This is idempotent — only analyzes sessions that don't already have results.
Rate-limited to 50K tokens/min. Large batches take time.
-
Generate report:
tsx tools/analyze-sessions.ts
Report written to data/sessions/report-all.md.
Optional: tsx tools/analyze-sessions.ts --since YYYY-MM-DD
-
Commit results:
git add data/sessions/
-
Report key findings to the user:
- Arc type distribution (feature vs debug vs exploration)
- Total corrections and top categories
- Sessions with most corrections
- Improvement suggestions from LLM analysis
- Note trends compared to previous reports