claude-code - 💡(How to fix) Fix [BUG] `/insights` skill: AI-generated sections empty (returns {})

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…

Error Message

Error Messages/Logs

Root Cause

Root Cause

The insights data passed to the report template is {}. The LLM analysis step runs but returns no structured output.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Bug Description

Running /insights generates a report where all AI-analyzed sections are empty:

  • What You Work On
  • How You Use CC
  • Impressive Things
  • Where Things Go Wrong
  • Features to Try
  • New Usage Patterns
  • On the Horizon

The raw stats sections (Top Tools Used, Languages, file/message counts) populate correctly.

Root Cause

The insights data passed to the report template is {}. The LLM analysis step runs but returns no structured output.

Environment

  • Claude Code version: 2.1.156
  • OS: macOS Darwin 25.5.0 (arm64)
  • Sessions available: 58 session-meta JSON files in ~/.claude/usage-data/session-meta/
  • Sessions "analyzed" per report summary: 38

What Should Happen?

Expected

Each section populated with AI-generated analysis of usage patterns.

Actual

All sections show "No data". At-a-glance summary shows "No insights generated".

Error Messages/Logs

Steps to Reproduce

  1. Run /insights (or /insights regenerate)
  2. Open the generated HTML report
  3. All narrative sections show "No data"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.156

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

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 [BUG] `/insights` skill: AI-generated sections empty (returns {})