Protocol ParserParse --output-format stream-json NDJSON lines into typed ClaudeEvent objects. Handles invalid JSON gracefully.
Dedup TranslatorSolves the --verbose cumulative snapshot problem. Content fingerprinting handles multi-agent interleaving.
Stdin WriterConstruct --input-format stream-json messages — the undocumented stdin protocol for user messages, tool approval/denial, and tool results.
Protocol DocumentationThe first standalone reference for Claude Code's undocumented stream-json protocol. Output events, input messages, edge cases, gotchas.