[BUG]/insights generates empty report — no AI insights produced (facets directory never created)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Running /insights produces a report with raw stats (tool counts, response times, languages) but all AI-generated sections show "No data":
- What You Wanted
- Session Types
- What Helped Most
- Outcomes
- Primary Friction Types
- Inferred Satisfaction
Root cause observed: The facets directory referenced in the report (~/.claude/usage-data/facets) is never created. Without per-session facets, the synthesis step has nothing to work from.
Reproduced: Twice in the same session — same result both times. The insights data passed to the report is {}.
Environment:
- Platform: Windows 11
- Shell: PowerShell / Git Bash
- Sessions analyzed: 76 of 80 total
- Date range: 2026-05-24 to 2026-06-22
What does work: Session-meta files are all present and the stats derived from them (tool usage, line counts, response time histogram, time-of-day breakdown) render correctly in the report.
What Should Happen?
The /insights command should analyze session transcripts, populate the facets directory with per-session AI analysis, and produce a report where all sections contain data — including "What You Wanted", "Outcomes", "Primary Friction Types", and "Inferred Satisfaction".
Error Messages/Logs
Steps to Reproduce
- Run
/insightsin Claude Code (Windows 11, PowerShell) - Open the generated HTML report at
~/.claude/usage-data/report-*.html - All AI-generated sections show "No data"
- Check
~/.claude/usage-data/— thefacets/directory is never created - Reproduced twice consecutively with identical results
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
! claude --version
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_