Research & Papers

CORE-Bench tests coding agents on repo-level code retrieval

Coding agents need to find code across repos, not just match queries.

Deep Dive

A team of researchers from China has introduced CORE-Bench, a comprehensive benchmark designed to evaluate code retrieval abilities in the context of agentic coding agents. Unlike existing benchmarks that focus on docstring-to-function or snippet-level matching, CORE-Bench tests an agent's ability to navigate a full repository state, locate relevant files and functions, gather supporting context, and filter out similar in-repository distractors. The benchmark covers three key levels of retrieval: code understanding, issue-to-edit localization, and broader context retrieval.

CORE-Bench contains over 180,000 queries and 106,000 broader-context relevance labels, built from curated code-search tasks and SWE-bench-series instances. Experiments with representative embedding models reveal a sharp performance drop when moving from traditional code search to the more realistic agentic coding setting. However, simple supervised fine-tuning of existing embedding models significantly improves performance, indicating substantial room for progress. The paper is available on arXiv and provides a valuable resource for advancing code retrieval in agentic systems.

Key Points
  • Benchmark includes 180K+ queries and 106K relevance labels
  • Covers three retrieval levels: code understanding, issue-to-edit, broader context
  • Fine-tuning embedding models recovers performance lost in agentic settings

Why It Matters

Practical code retrieval benchmarks are critical for building reliable AI coding assistants that work on real repositories.

📬 Get the top 10 AI stories daily