Repository navigation
v0.16.0
Stageflow v0.16.0
LLM cost and token tracking across stages and runs, with UI cost badges and a fix for lost usage data on Claude-backed stages.
0.16.0
Features
- Per-stage and per-run LLM cost/token tracking, sourced from the Claude Agent SDK and pi-ai per-turn accounting — no separate pricing table
stage_executions.cost_usd/usage_json, summed across attempts intoStageSnapshot.cost_usdand across stages intoRunSummary.total_cost_usdsf runprints aCost:line in human output andtotal_cost_usdin--json- Cost badges in the UI on the runs list, run detail header, and each stage
Fixes
claudeAdapter: the interrupt-on-tool-result path could break out of the turn before the SDK's cost-bearingresultmessage arrived, silently losing usage data on every successful Claude-backed stage