Costs often spike because each step in an agent’s loop carries more context forward. File reads, tool calls, and retries add to that history, so later steps process far more input than earlier ones. One task can end up costing much more than a pricing page suggests.