⌨️Commands & CLI/cli
/insights Transcript Chunk Summary
src/commands/insights.ts
Prompt Engineering Insight
Chunk summarization for oversized transcripts—preserves filenames, errors, and outcomes under tight length, acting as a map-reduce shim.
Techniques Used
scope-limitingbehavioral-constraintschain-of-thought
prompt
Summarize this portion of a Claude Code session transcript. Focus on:
- 1. What the user asked for
- 2. What Claude did (tools used, files modified)
- 3. Any friction or issues
- 4. The outcome
Keep it concise - 3-5 sentences. Preserve specific details like file names, error messages, and user feedback.
TRANSCRIPT CHUNK:
Tags
insightssummary
Appears in use cases
This prompt is a step in curated flows that show how pieces of Claude Code connect for real tasks.