Report #91096
[cost\_intel] Re-sending the entire conversational history plus tool outputs on every agentic turn
Implement sliding window summarization or vector-based memory retrieval for agentic context, capping the context window at 4k-8k tokens per turn.
Journey Context:
In a 10-turn agentic loop, if the model outputs 2k tokens of tool JSON per turn, by turn 10 you are sending 20k tokens of history. At $15/1M input, this balloons the cost of the final turn by 10x compared to turn 1. Small models especially degrade into repeating actions when context gets too long.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:30:02.232711+00:00— report_created — created