Expand description
“What did this session do?” (ultron/session-report.ts): turns, cells, depth (frames, subagents, workflows,
jobs), tokens and cost per lane kind and model, guardrails and memory decisions, from a session file’s digest.
A number the session did not keep is null and named in unrecorded; it is never reported as zero.
The report is a serde_json::Value in the TypeScript field order: ultron usage --json prints it and the text
renderer reads it.
Constants§
- DURABLE_
CHILDREN_ MODEL - The model row of usage the host’s ledger counted beyond every response the session file records (it keeps no model per call): totals only. Durable children’s own responses are read from the durable records, with their models; this row is what remains (a session whose durable records are incomplete).
- SESSION_
REPORT_ SCHEMA
Functions§
- build_
session_ report - Build the report from a session file’s digest, given the providers whose costs are notional besides Claude Code
(
subscriptionProviders: every provider the session’s runtime reaches through a subscription login). - session_
is_ empty - Whether nothing ran in the session: no entry, no task, and no runtime value beyond the skill catalog.