Skip to main content

Module stages

Module stages 

Source
Expand description

lev stages <run-id> - the per-stage ledger a staged agent’s cost lives in.

stages.json has carried per-stage token counts for a while and nothing on the CLI read it: lev context renders the context history, lev result prints the answer, and the only readers of the ledger were the dashboard, telemetry, and serve. For a staged agent the per-stage split is the diagnosis - it is how an output stage billing 252,848 prompt tokens to emit three characters was found, and how a profile stage that had run away to 1.1M was. Read-only; sources everything from disk.

Structs§

StagesArgs
Arguments for lev stages.

Functions§

execute
Execute lev stages.