How AgentOven does it
Each agent has a context budget (16,000 tokens by default). A sliding window keeps recent turns, summarises older ones and sets prompt-cache breakpoints, and a budget report shows where tokens go. Prompts are versioned in the Prompt Store. The enterprise edition adds session compaction with a threshold and auto-compact.
Context budgetSliding windowPrompt StoreSession compaction