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 `
typescript claude-code hooks stop-hook transcript 118 tokens