claude-code - 💡(How to fix) Fix /insights report only analyzes 328/1291 sessions, missing most data [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54063Fetched 2026-04-28 06:40:14
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Code Example

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
RAW_BUFFERClick to expand / collapse

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

PropertyValue
Claude Code2.1.117
context-mode plugin1.0.99
Node.js(system default)
Bun1.3.11
OSmacOS 26.2 (Darwin 25.2.0, ARM64 T8122)
Shellbash 3.2.57
ModelQwen/Qwen3.6-27B (via local proxy)
ANTHROPIC_BASE_URLhttp://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

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the insight analysis pipeline, which appears to have stopped processing sessions after April 8, resulting in a lack of facet files and empty report sections.

Guidance

  • Verify the insight analysis pipeline configuration and logs to determine why it stopped processing sessions after April 8.
  • Check the dependencies and compatibility of the installed plugins, especially context-mode and claude-reflect, to ensure they are not causing the issue.
  • Investigate the role of the local proxy model (Qwen/Qwen3.6-27B) in the insight analysis process and whether it requires Claude API access.
  • Review the hooks configuration, particularly the PreToolUse and SessionStart hooks, to ensure they are not interfering with the insight analysis pipeline.

Example

No code snippet is provided as the issue seems to be related to the configuration and pipeline rather than a specific code error.

Notes

The issue may be specific to the local setup and the use of a proxy model, which could be causing the insight analysis pipeline to fail. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by checking the insight analysis pipeline configuration and dependencies to ensure they are correctly set up and compatible with the local proxy model. This may involve updating or reconfiguring the plugins or hooks to resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix /insights report only analyzes 328/1291 sessions, missing most data [1 participants]