AI tools can increase productivity, but they also introduce variable usage costs. Without visibility into token consumption, API calls, and agent activity, teams may unknowingly generate significant expenses.
Teams should track key indicators such as:
Use these indicators to identify expensive workflows and decide where to optimise usage.
Track total spend against a budget alongside cost per accepted outcome: all attributable costs divided by accepted outcomes, each counted once.
For example, two completed Northwind cohorts:
| Measure | Cohort A | Cohort B |
|---|---|---|
| Billed model spend | $443 | $868 |
| Accepted descriptions | 304 | 720 |
| Cost per accepted description | $1.46 | $1.21 |
This illustrates lower unit cost, not permission to breach the budget or lower acceptance quality. Reconcile spend and outcome counts independently, and investigate work-mix changes before attributing improvement to a model.
When completion has a clear condition, let a script, native wait command or completion event handle the wait. Use the model to choose the work and interpret the final result. Repeated still running responses do not need another model call.
❌ Figure: Bad example - Every status check is another model call
# The script waits; the model reads only the final linestatus=0timeout 30m gh run watch "$RUN_ID" --interval 30 --exit-status > ci-watch.log 2>&1 || status=$?echo "run=$RUN_ID exit=$status log=ci-watch.log"exit "$status"
✅ Figure: Good example - A bounded script waits, keeps the polling output in a log, and returns the run ID and exit status (124 means it timed out)
The wait makes no model calls, but setup, interpretation, compute and service requests can still cost money.
A status line at the bottom of a CLI tool can show the current model, usage and cost while you work. Keeping these figures visible helps you spot expensive sessions without interrupting your workflow to open a dashboard.
Customise Claude Code's status line with a tool such as:
✅ Figure: Good example - A simple, yet effective status line using goccc
Choose monitoring tools that cover both interactive sessions and production usage:
Figure: Running /stats in Claude Code
✅ Figure: Good example - Running goccc in the command line