WeSearch

How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks

·3 min read · 0 reactions · 0 comments · 3 views
#ai agents#token consumption#large language models#coding tasks#cost efficiency
How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks
⚡ TL;DR · AI summary

This study examines how AI agents consume tokens during coding tasks, revealing that agentic workflows use significantly more tokens than simpler code-related tasks, with high variability and inefficiency across models. The research evaluates eight large language models on the SWE-bench Verified dataset, finding poor alignment between human-assessed task difficulty and actual token usage. Additionally, models struggle to predict their own token consumption, often underestimating costs despite moderate correlation in estimates.

Key facts
Original article
arXiv cs.AI
Read full at arXiv cs.AI →
Opening excerpt (first ~120 words) tap to expand

Computer Science > Computation and Language arXiv:2604.22750 (cs) [Submitted on 24 Apr 2026] Title:How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks Authors:Longju Bai, Zhemin Huang, Xingyao Wang, Jiao Sun, Rada Mihalcea, Erik Brynjolfsson, Alex Pentland, Jiaxin Pei View a PDF of the paper titled How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks, by Longju Bai and 7 other authors View PDF Abstract:The wide adoption of AI agents in complex human workflows is driving rapid growth in LLM token consumption.

Excerpt limited to ~120 words for fair-use compliance. The full article is at arXiv cs.AI.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from arXiv cs.AI