TRANSMISSION // 2606.22906v3

How DeepDiscovery maps repository context

Source published

DeepDiscovery traces links among code, configuration and tests to help coding agents gather task-relevant files. Evaluations report gains in specific settings, with important limits.

AI-generated conceptual illustration for How DeepDiscovery maps repository context
AI-generated conceptual illustration; not documentary evidence.

A change to one part of a software project may depend on files that look unrelated by name. DeepDiscovery aims to help coding agents find those connections before editing.

A request to change one part of a software project can have consequences elsewhere. The code to edit may be linked to a configuration file, a framework registration or a test that protects important behavior. If a coding agent misses one of these files, it may work from an incomplete picture of the task.

DeepDiscovery is a framework for finding task-relevant repository context. Rather than relying only on files whose wording resembles the request, it maps relationships in the current repository snapshot and uses them to build a context package for an agent.

From likely files to connected evidence

The framework has two stages. Location creates a compressed structural view of the relevant part of a repository and identifies likely starting points, which the paper calls task anchors. It uses signals including text similarity, summaries, naming patterns and the kinds of files typically associated with the task.

Inference explores outward from those anchors. It can follow explicit code relationships, such as imports and calls, as well as links conveyed through framework conventions—for example, a configuration entry that routes an event to a handler. It also uses organizational clues, such as directories and module boundaries. Candidates begin as short metadata summaries; the framework selectively includes source code when it judges that implementation detail is needed. This design aims to limit how much source code occupies the context while allowing the system to consider related files. The reported evaluations measure recovery and cost in particular settings, rather than establishing that the design improves exploration in every repository.

The researchers compared file recovery on industrial maintenance tasks under a common coding-agent setup, integrated DeepDiscovery into six coding-system and model pairings, and tested a modified ACoder on SWE-bench Verified, a public issue-resolution benchmark. They also ran ablation tests, which remove or alter parts of a method to examine their contributions.

What the evaluations found

In a controlled comparison on 27 industrial tasks, DeepDiscovery’s mean core-conditioned file recovery score was 92.6%, the highest among the evaluated methods. This score gives credit for recovering gold files only when all designated core files are also recovered. AST+GraphRAG, which combines code structure with graph-based retrieval, scored 90.4%. DeepDiscovery used no offline indexing in this comparison. Its reported task-time execution was 13.2 seconds, compared with 44.8 seconds for AST+GraphRAG; these figures describe the tested setup, not every possible deployment.

Across 67 industrial tasks, the reported full-recovery score increased for each of the six evaluated coding-system and model pairings when DeepDiscovery was added. Context-construction inputs in those tests ranged from 6,011 to 6,262 tokens, including wrappers. In ablations on 40 large-subproject tasks, stopping after the initial Location stage reduced full recovery by 5.8 percentage points. Removing framework-mediated links reduced it by 2.5 points, suggesting those links contributed in that setting.

The downstream evaluation compared two ACoder configurations on 500 SWE-bench Verified instances. Both used Claude Opus 4.6 and shared the downstream agent and evaluation protocol; the enhanced configuration replaced ACoder’s initial repository-context module with DeepDiscovery. The solve rate changed from 70.4% to 78.6%. Among instances where the outcomes differed, 43 were solved only by the enhanced version and two only by the baseline. This result applies to that evaluation, not necessarily to other agents or tasks.

What remains uncertain

File recovery measures whether relevant evidence was found; it does not by itself show that an agent understood the evidence or made a correct change. The SWE-bench evaluation adds a downstream measure, but it tests this context-module change within ACoder and its specified model and protocol. The industrial tasks came from one production ecosystem, whose conventions may not represent other organizations or software stacks. Its source code is proprietary, although the authors report releasing a replication package with implementation materials and de-identified evaluation information.

The method depends on finding good starting points and on its relation rules covering the connections a repository actually uses. The paper notes that dynamic behavior, including reflection or runtime dispatch, can hide relationships; a short task description can also lead Location toward the wrong files. A metadata summary may sometimes omit detail needed for a change.

The results support a focused conclusion: in the evaluated settings, relationship-guided context construction improved file recovery, and replacing ACoder’s initial context module coincided with a higher solve rate on the tested benchmark. Wider claims about reliability across repositories and coding systems require further evaluation. The source is an arXiv paper; the evidence provided here does not establish its peer-review status.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • What counts as success in AI software migration?

    Supporting evidence: Both papers caution that supplying relevant repository context is not itself proof of task success: DeepDiscovery distinguishes file recovery from identifying and interpreting the right relations, while the migration survey says retrieval performance alone does not establish sufficient context for migration. The comparison is limited because DeepDiscovery evaluates maintenance tasks and the survey covers migration studies, not a shared experiment.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.22906v3 — Original paper

      Excerpt reference: static/papers/2606.22906v3.md:1120-1186
      Basis: Paper text
      Source file SHA-256: ccedff01851b748c336ebae8b25a0a7d8a27b4506ced4dcd182752a443bf963e

    • 2611.29942v1 — Original paper

      Excerpt reference: static/papers/2611.29942v1.md:2608-2661
      Basis: Paper text
      Source file SHA-256: b792d40667c352278f326b7304160e183fb68e5a4530ebf15bde0dcd96ff7ede

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.