Why Long AI Coding Sessions Get Expensive (Quadratic Attention Explained)
This story is from 2026-10-24. It is preserved in the archive; the latest stories are on the live feed.
Type "rename this variable" as the 8th message of a Claude Code session. Now type it again as the 80th. Same words, same answer, and with my sample numbers the second one costs about three times as much. Turn prompt caching off and it's six. Nothing's broken. A long session walks into a quadratic c…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-24 04:37 · DEV Community — AI
Why Long AI Coding Sessions Get Expensive (Quadratic Attention Explained)