budget-tracker-patterns - Budget tracking for AI generation tools
Tracks tool usage, enforces timeouts, manages context and rate limits for AI generation
Tags
Updated: 2026-05-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- track context usage
- detect runaway patterns
- set tool timeouts
- enforce rate limits
- estimate tokens
- detect full context
- truncate results
- detect search quality
- record usage
- record tool calls
- record searches
- check rate limits
Inputs
- max tokens limit
- tool name
- tool promise
- timeout configuration
- rate limit configuration
- search query
- search result count
- search score
- tool result
- budget state
Outputs
- budget state
- timeout error
- rate limit message
- token count
- truncated result
- search warning
- tool call count
Requirements
- Backend environment
- TypeScript runtime
- Generation context
