You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Researchers at arXiv found that LLM coding agents like Claude Code and OpenHands spend a disproportionate share of their token budget on repository exploration — grep, glob, and file reads — rather than actually solving problems. On SWE-Bench Verified, a 30B OpenHands agent averages 631K tokens and 23 rounds per resolved issue, much of it just locating the right file. Their solution, CodeGrep (a 14B RL-trained retrieval agent), prepends a parallel file-finding step that cuts 15% of rounds and 19% of tokens on resolved instances while slightly improving resolve rate (27.0% vs 25.8%).
⚙️ What It Means for Agentic Workflows
Specialize your retrieval step. Don't let your primary agent burn context budget exploring a repo. A cheap, dedicated retrieval layer (even a small model) can front-load file discovery and hand the relevant files to the main agent, dramatically reducing costly round-trips.
Parallelize tool calls during exploration. CodeGrep issues multi-turn parallel grep/glob/read calls — a pattern directly applicable to any GitHub workflow agent that needs to navigate large codebases before acting.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
🔬 The Finding
Researchers at arXiv found that LLM coding agents like Claude Code and OpenHands spend a disproportionate share of their token budget on repository exploration — grep, glob, and file reads — rather than actually solving problems. On SWE-Bench Verified, a 30B OpenHands agent averages 631K tokens and 23 rounds per resolved issue, much of it just locating the right file. Their solution, CodeGrep (a 14B RL-trained retrieval agent), prepends a parallel file-finding step that cuts 15% of rounds and 19% of tokens on resolved instances while slightly improving resolve rate (27.0% vs 25.8%).
⚙️ What It Means for Agentic Workflows
🔗 Source
CodeGrep: An RL-Trained Retrieval Agent for LLM Coding Agents — August 6, 2026
All reactions