Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 21:46
3f426ec

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 into StageSnapshot.cost_usd and across stages into RunSummary.total_cost_usd
  • sf run prints a Cost: line in human output and total_cost_usd in --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-bearing result message arrived, silently losing usage data on every successful Claude-backed stage