Primary culprits are re-sending conversation history, extensive tool definitions, and raw tool outputs. A 20-step agent loop adding 1,000 tokens per step can accumulate 210,000 cumulative input tokens.
Open the full topic