DEEP DIVE: HOW CLAUDE CODE'S /INSIGHTS COMMAND WORKS
The `/insights` command in Claude Code generates an HTML report that analyzes users' interaction patterns across all their sessions. This process involves filtering session logs, extracting metadata, and using an LLM to perform qualitative "facet extraction" on session transcripts. The aggregated data and LLM insights then identify interaction styles, successful workflows, and friction points, and proposes actionable suggestions.