/insights report only analyzes 328/1291 sessions, missing most data

Resolved 💬 3 comments Opened Apr 27, 2026 by tonytziorvas Closed Jun 16, 2026

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_minutes
  • user_message_count, assistant_message_count, tool_counts
  • languages, git_commits, input_tokens, output_tokens
  • first_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_type
  • friction_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-marketplace
  • skill-creator@claude-plugins-official
  • superpowers@claude-plugins-official
  • hookify@claude-plugins-official
  • And 12 others

Hooks Configuration

  • PreToolUse: strategic-compact hook for Edit|Write operations
  • SessionStart: empty (cleared)

Reproduction Steps

  1. Accumulate sessions over time (in my case, ~1,305 sessions over ~5 weeks)
  2. Run /insights command
  3. Open generated report at ~/.claude/usage-data/report.html
  4. 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗