Manage Token Budget

Monitor, cap, and recover from context accumulation in agentic systems. Covers per-cycle cost tracking, context window auditing, budget caps with enforcement policies, emergency pruning when approaching limits, and progressive disclosure integration to minimize token spend on routing. Use when running long-lived agent loops (heartbeats, polling, autonomous workflows), when context windows are growing unpredictably between cycles, when API costs spike beyond expected baselines, when designing new agentic workflows that need cost guardrails from the start, or when post-mortem analysis reveals a cost incident caused by context accumulation.

pjt222 Updated

File contents

pjt222/agent-almanac/tree/main/skills/manage-token-budget commit 25e6976116

Frequently asked questions

npx skillmds@latest add pjt222/manage-token-budget