An analysis of 518 AI agent sessions over 90 days revealed that 7% of the longest sessions consumed 74% of the total token budget. The study, based on 35,300 steps and 10,026 million input tokens (Mtok), shows that costs grow non-linearly as session length increases due to the accumulation of context.

Data indicates that 86% of the budget was spent on 69 sessions exceeding 150 steps. While sessions up to 150 steps accounted for 87% of the total count, they consumed only 14% of the tokens. The cost of every 10 steps in the 101–150 range is 1.5 times higher than in the first 100 steps.

The author implemented a strict policy to stop sessions after three consecutive empty or repetitive calls, which previously accounted for 36% of daily messages. Establishing a hard limit at 150 steps allows for a theoretical savings of up to 65% of the total token consumption, despite the overhead of starting new sessions.

Technical recommendations include monitoring token usage via local SQLite logs and using step counters rather than time-based checks. It is advised to use flash-class models only for short, single-context tasks and to avoid feeding entire large files into the agent's context to maintain efficiency.