llm_track_usage
Track Claude Code model token usage to stay within budget, enabling progressive model downshifting and revealing savings versus opus.
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 | ||
| complexity | No | moderate | |
| tokens_used | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |