Agent Token Budget Manager
Monitors and optimizes token usage and context window consumption for autonomous AI agent workflows.
This skill provides a comprehensive framework for managing the operational costs and context footprint of agentic systems. It implements per-cycle cost tracking, context window auditing, and automated enforcement policies including soft and hard budget caps. By utilizing emergency pruning techniques and progressive disclosure patterns, it ensures that every token in the context window provides high decision-making value, preventing expensive runaway sessions and maintaining system performance during long-lived autonomous tasks or high-frequency polling loops.
Key Features
01Configurable soft and hard budget caps with enforcement policies
022 GitHub stars
03Context window auditing with component-level ranking
04Per-cycle token tracking and cost instrumentation
05Emergency context pruning with information 'tombstoning'
06Progressive disclosure for efficient skill and resource loading
Use Cases
01Auditing and optimizing workflows where context windows grow unpredictably
02Preventing unexpected cost spikes in long-running autonomous agent loops
03Establishing cost guardrails and budget enforcement for production AI systems