Context Re-reads Dominate 60-80% of Agent Costs

Input tokens, primarily driven by the continuous re-transmission of context window content and tool descriptions, account for 60-80% of total AI agent inference expenses.

The top 3

  1. The #1 Technical Reason for Context Re-read Cost: The self-attention mechanism in Transformer models is the primary culprit, as it processes every token in the context window in relation to every other, resulting in a computational complexity that scales quadratically with context length [5, 6, 20].
  2. Top Factors Amplifying Context Re-read Expenses: Key drivers escalating context re-read costs include longer context windows, frequent iterative self-correction loops in agentic systems, and the repeated transmission of large system prompts and tool definitions in every turn [4, 8, 10, 15, 16].
  3. Context Re-reads Outpace Other Agent Inference Costs: In agentic AI workflows, the continuous re-processing of accumulated context and system prompts can lead to token consumption that is tens of times higher than simple chatbot interactions, often overshadowing the cost of generating new output tokens per step [4, 15, 24].

Sources

Open the full topic