AgentFlow

Cost Report · AgentFlow CLI

Historique des coûts

CLI path: agentflow cost report

When to use

Use cost when reconciling SQLite-backed telemetry with pricing tables declared in .agentflow/config.yaml or when slicing spend over a bounded recency window.

Original CLI synopsis: Historique des coûts

Usage

agentflow cost report [flags]

Options

FlagScopeDefaultDescription
--dry-runInheritedfalseSimuler les exécutions sans lancer d'agent ni commandes externes
--sinceLocal7dFenêtre (ex. 7d)

Examples

agentflow cost report

Wire richer samples through cobra.Command.Example when the happy path warrants copy/paste-friendly automation beyond this scaffold.

What happens internally

  • Parses the --since shorthand window, opens the SQLite telemetry store associated with $PWD, and aggregates totals through telemetry.SummarizeSince.

Failure modes

  • Cobra rejects unknown flags or arity mismatches before any repository side effects occur.
  • AgentFlow cannot resolve scaffolding when the command is invoked outside an initialised checkout.
  • SQLite contention or corrupted telemetry prevent summarisation queries from completing.
  • Malformed --since payloads fail fast before aggregates are queried.