Skip to content

v0.2.2 — --stats

Choose a tag to compare

@Kostakurta8 Kostakurta8 released this 18 Sep 09:08
· 87 commits to main since this release

Added

--stats. One command that reads every transcript under --root and prints what they say about
this machine's own fan-out — how much output is written inside subagents, what a child costs in
cache-creation tokens before it does any work, how many children produced nothing at all, and which
hooks have ever fired — then exits without starting a server. It exists because three counting
mistakes in these files are easy to make and hard to notice: a multi-block response repeats its
complete usage object on every line it is written to (deduplicate on message.id, or over-report
output by about 3x, almost entirely in main transcripts); subagents/ holds a workflow journal.jsonl
that is not an agent; and one hook firing writes two records sharing a toolUseID. The report names
all three rather than quietly correcting them, and says plainly that a hook absent from the list may
have fired without writing a record. server/stats.ts, twelve tests, and a package smoke step that
runs it against an empty root.