A CLI tool now ranks multi-agent runs by cost and flags repeated context tokens

rrk059 · reddit · 2026-07-29

A developer built token-trace-viewer, a CLI for parsing OpenInference JSONL logs from multi-sub-agent runs and ranking sub-agents by cost.

They say existing tools can show costs, but not in the specific way they needed:

The script also tries to surface repeated context blocks, such as system prompts resent at every step, so teams can see wasted tokens. Current limitations include prefix-only matching, estimated token counting, two hardcoded costs, and testing on one real LangGraph run.

Original post →

More from coding & agent

coding & agent channel →