Naive AI agent loops re-bill previous context on every call, causing a 20-step run with 1,000 tokens per step to consume 210,000 input tokens instead of an estimated 20,000, underscoring a quadratic cost increase.
Open the full topic