llm_track_usage
Track Claude model token usage against daily budget, enabling progressive model downshifting and displaying per-call 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 | ||
| tokens_used | Yes | ||
| complexity | No | moderate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |