llm_track_usage
Track Claude token usage against daily budgets to monitor cost savings and enable progressive model downshifting based on task complexity.
Instructions
Report Claude Code model token usage for budget tracking.
Call this after using an Agent with haiku/sonnet to track token consumption
against the daily budget. This enables progressive model downshifting.
Shows per-call savings vs opus and cumulative session savings.
Args:
model: The Claude model used — "haiku", "sonnet", or "opus".
tokens_used: Approximate tokens consumed by the Agent call.
complexity: The task complexity that was routed — "simple", "moderate", "complex".Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| tokens_used | Yes | ||
| complexity | No | moderate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |