Software maintenance tasks often require evidence from source code, configuration, and tests distributed across a repository. Coding agents typically obtain this evidence through similarity-based retrieval or iterative file inspection. The resulting context can omit files that impose important constraints on a change, particularly when those files are linked through framework conventions. We present DeepDiscovery, a two-stage framework for task-level repository understanding. Location compresses the current repository snapshot into a structural view and identifies initial task anchors. Inference follows explicit dependencies, framework-mediated links, and directory relations, then builds a context package that retains structural metadata and selectively includes source code. We evaluate recovery quality and cost, component contributions, integration across coding systems, and downstream issue resolution. In a controlled comparison on 27 industrial tasks, DeepDiscovery achieves the highest mean core-conditioned file recovery score (92.6\%, compared with 90.4\% for AST+GraphRAG) among the evaluated methods, with no offline indexing. Across 67 industrial tasks, all six evaluated coding systems improve their reported full-recovery scores with DeepDiscovery, and the measured context-construction input ranges from 6{,}011 to 6{,}262 tokens. In a matched evaluation on 500 SWE-bench Verified instances, replacing ACoder's initial repository context module increases Solve Rate from 70.4\% to 78.6\% (43 newly solved instances and two regressions). The results show that relation-guided context construction can improve file recovery and downstream issue resolution in the evaluated settings.
翻译:暂无翻译