Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents
Summary
Introduces Agent Retrieval Bench, a file-level benchmark evaluating how well coding agents retrieve relevant repository files during the context-acquisition stage. The benchmark includes 427 samples across 25 repositories and evaluates various retrieval methods, finding no single family dominates.
View Cached Full Text
Cached at: 07/29/26, 07:54 PM
Paper page - Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents
Source: https://huggingface.co/papers/2607.24882
Abstract
Moderncodingagentsareusuallyevaluatedbywhethertheyeventuallyproduceacorrectpatch,butpatchgenerationdependsonanearliercontext-acquisitionstage:findingtherepositoryfilesneededforthetask.WeintroduceAgentRetrievalBench,afile-levelbenchmarkforthisupstreamretrievalproblem.Samplesarebuiltfromrealcoding-workflowsignalsandevaluatedagainstfrozenbase-commitrepositories,withrelevancedefinedbywhatanagentneedsnextratherthandirectquery-filesemanticsimilarity.Thebenchmarkcoversfourpositive-retrievaltasks:code2test,comment2context,trace2code,andedit2ripple;afifthsubsetevaluatesselectiveretrievalusingnaturalevidence-backedno-goldcasesandcounterfactualwrong-repositorycontrols.AgentRetrievalBenchcontains427samplesacross25repositories:345positiveexamples,50naturalno-goldexamples,and32counterfactualcontrols.Thecorpusincludes308base-commitsnapshots,392,000files,and7.9millionchunks.Weevaluatelexicalretrieval,RepoMap,open-sourceembeddings,selectiveabstention,andloggedagentcontextselection.Nosingleretrievalfamilydominates:Qwen3-Embedding-4Bhasthebestsample-weightedMRRonpositivesamples,Qwen3-Embedding-8BthebestRecall@20,andRepoMapthebestbudgetedcontextyieldat8Ktokens,withtask-levelwinnersdifferingsubstantially.Selectivethresholdscalibratedwithcounterfactualcontrolsdonotimproveselectivesuccessonnaturalno-goldcases,revealingacalibrationgap.Loggedtrajectoriesalsomisseverygoldfileon27-35percentofsamples.Acontrolledseed-interventionpilotfindsthatretrieval-derivedinitialcontextyieldshigherfileF1withlesspost-seedexplorationthanrandomnon-goldcontext,whileoraclegoldcontextshowssubstantialremainingheadroom.
View arXiv pageView PDFProject pageGitHub1Add to collection
Get this paper in your agent:
hf papers read 2607\.24882
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2607.24882 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2607.24882 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2607.24882 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
SWE-Explore: Benchmarking How Coding Agents Explore Repositories
SWE-Explore introduces a benchmark for evaluating coding agents' repository exploration capabilities, requiring ranked lists of relevant code regions within line budgets. Experiments show agentic exploration outperforms traditional retrieval, and line-level coverage remains a key differentiator.
Beyond Retrieval: A Multitask Benchmark and Model for Code Search
This paper introduces CoREB, a contamination-limited multitask benchmark for code search that evaluates text-to-code, code-to-text, and code-to-code retrieval with fine-tuned reranking capabilities.
SWE Context Bench just proved something I think a lot of coding agent users already feel
A new benchmark paper 'SWE Context Bench' tests whether coding agents can reuse knowledge across tasks, highlighting a gap in existing benchmarks that only evaluate isolated problem-solving. The author discusses solutions like external memory and mentions tools such as langmem, mem0, supermemory, and Greplica.
REAP: Automatic Curation of Coding Agent Benchmarks from Interactive Production Usage [R]
REAP is an automated pipeline that curates production-derived benchmarks for coding agents from real developer-agent sessions, using LLM-based classification and stability checks to ensure reliable evaluation without manual labeling.
DeltaML-Bench: Evaluating Machine Learning Agents on Real-World Research Repositories
Introduces DeltaML-Bench, a benchmark for evaluating machine learning agents on real-world research repositories, showing that ARG scaffolding significantly improves success rates over standard methods.