Fetching from the wire…
Public story · 2026-08-07 · high
A trained retrieval agent cut token use 19%, but researchers found weaker search tools make the same agent worse, not slower.
Why now: The CodeGrep paper measuring these token costs was on arXiv as of August 7, 2026.
An OpenHands coding agent burns 631,000 tokens and 23 rounds resolving a single SWE-Bench Verified issue. Most of that goes to grepping, globbing and viewing files, per the CodeGrep paper.
That's the compute bill for finding the code, before the agent writes a line of the actual fix. File search is the cost center, not reasoning.
Researchers built a 14 billion parameter retrieval agent trained end to end with GRPO and dropped it into the same loop. Resolve rate on SWE-Bench Verified climbed to 27.0% from 25.8%, while rounds fell 15% and tokens dropped 19% on resolved instances.
They also ran off-the-shelf retrievers through the same test, and the results split hard on one number: precision.
BM25 measured 0.375 precision and made the agent's results worse, not just slower. Jina hit 0.445 and came out neutral, no gain, no loss. CodeGrep, at 0.677 precision, is the only one that helped the agent resolve more issues.
The paper tests one benchmark and one agent size. It doesn't say whether that precision line holds for larger models or codebases outside SWE-Bench Verified.
Each link below shares sources, entities, or timing with this story.
OpenHands uses GPT / Shared entities / Same source domain / Shared topic / Earlier coverage
Linked by a graph relationship (OpenHands uses GPT); both cover Coding, OpenHands, SWE; reported by the same outlet (arxiv.org).
OpenHands uses Python / Shared entities / Same source domain / Earlier coverage
Linked by a graph relationship (OpenHands uses Python); both cover Bench, SWE; reported by the same outlet (arxiv.org).
OpenHands uses Claude / Shared entity: Bench / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (OpenHands uses Claude); both cover Bench; overlapping topics (agent, coding).
OpenHands uses Claude / Shared entity: Bench / Shared topic / Earlier coverage
Linked by a graph relationship (OpenHands uses Claude); both cover Bench; overlapping topics (actively, agent, coding).
OpenHands uses GPT / Shared entities / Same source domain / Shared topic / Earlier coverage
Linked by a graph relationship (OpenHands uses GPT); both cover Bench, Coding, SWE; reported by the same outlet (arxiv.org).
Unsloth released GRPO / Shared entity: SWE / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Unsloth released GRPO); both cover SWE; overlapping topics (coding, token).
OpenHands uses Claude / Shared entities / Earlier coverage
Linked by a graph relationship (OpenHands uses Claude); both cover Bench, SWE; earlier Bench coverage from 2026-07-08.
Shared entities / Same source / Shared topic
Both cover BM25, CodeGrep, Jina; cite the same source (CodeGrep); overlapping topics (actively, agent, bm25, coding, precision).