#!/usr/bin/env node // Parse Claude Code stream-json run log(s): tool-call sequence, token usage, and // RESIDUAL CONTEXT OCCUPANCY — how many tokens of the context window each tool // family's responses still occupy when the run ends. // // Usage: parse-run.mjs [run.t2.jsonl ...] [--brief] [--envelope] [--answer ]... // Multiple files = one multi-turn session's segments, IN ORDER (run-all.sh // writes run-