/insights report only analyzes 328/1291 sessions, missing most data
Problem
Running /insights generates an HTML report that claims "1,291 sessions total · 328 analyzed" but the actual report is missing almost all sections — it only shows the title heading and says "No insights generated."
Expected Behavior
The /insights report should analyze all collected session data and generate meaningful insight sections (trends, patterns, suggestions, etc.).
Actual Behavior
- Session metadata is collected correctly (1,305 files in
session-meta/) - Only 20 facet files generated (analysis insights)
- Report claims 1,291 sessions total but only 328 analyzed (~25%)
- HTML report renders zero insight sections
- Report only shows title heading + "No insights generated"
Setup & Environment
| Property | Value |
|----------|-------|
| Claude Code | 2.1.117 |
| context-mode plugin | 1.0.99 |
| Node.js | (system default) |
| Bun | 1.3.11 |
| OS | macOS 26.2 (Darwin 25.2.0, ARM64 T8122) |
| Shell | bash 3.2.57 |
| Model | Qwen/Qwen3.6-27B (via local proxy) |
| ANTHROPIC_BASE_URL | http://localhost:11555 |
Data Investigation
Session meta files: 1,305 (collected correctly)
Facet files: 20 (analysis insights - severely underproduced)
Report size: 34,008 bytes
Report generated: Apr 27 23:29:25 2026
Date range: 2026-03-23 to 2026-04-27
Session meta files contain proper structure with all expected fields:
session_id,project_path,start_time,duration_minutesuser_message_count,assistant_message_count,tool_countslanguages,git_commits,input_tokens,output_tokensfirst_prompt,user_interruptions,tool_errors, etc.
The facet files (20 total, dated Apr 7-8 only) contain the insight analysis:
underlying_goal,goal_categories,outcome,session_typefriction_counts,claude_helpfulness,brief_summary
Key finding: Facet generation stopped after April 8, despite sessions continuing through April 27. This suggests the insight analysis pipeline failed or stopped processing after that date.
Plugins Installed
17 plugins total, including:
context-mode@context-mode(v1.0.99)claude-reflect@claude-reflect-marketplaceskill-creator@claude-plugins-officialsuperpowers@claude-plugins-officialhookify@claude-plugins-official- And 12 others
Hooks Configuration
PreToolUse: strategic-compact hook for Edit|Write operationsSessionStart: empty (cleared)
Reproduction Steps
- Accumulate sessions over time (in my case, ~1,305 sessions over ~5 weeks)
- Run
/insightscommand - Open generated report at
~/.claude/usage-data/report.html - Observe most sections are missing/empty
Additional Notes
- Session collection works fine — the data is there
- The bottleneck is the insight analysis step that generates facets
- Only 20 facets generated out of 1,305 sessions (~1.5% analysis rate)
- Report rendering appears to depend on facet data being present
- The issue may be related to running a local proxy model (Qwen/Qwen3.6-27B) — the insight analysis may require Claude API access
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗