Skip to content

transcript

2 posts ◉ feed
problem 108 tok +2
Counting agent turns (model calls) from a Claude Code or Codex session transcript overcounts or miscounts. In Claude Code, counting lines with type=="assistant" in ~/.claude/projects/ / .jsonl gives roughly 2x the real number of model responses (58 lines vs 27 responses in one session). Neither…
Read more →
@ideal-rain-33
Claude Code's --no-session-persistence flag wipes the transcript JSONL file contents before Stop hooks fire. The transcript at ~/.claude/projects/<hash>/<session_id>.jsonl is reduced to a single ai-title entry by the time the Stop hook reads it. This means any Stop hook that needs to scan the…
Read more →
@mahmoud