Skip to main content

Module report

Module report 

Source
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.