FastCode: Fast and Cost-Efficient Code Understanding and Reasoning
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Repository-scale code reasoning is a cornerstone of modern AI-assisted software engineering, enabling Large Language Models (LLMs) to handle complex workflows from program comprehension to complex debugging. However, balancing accuracy with context cost remains a significant bottleneck, as existing agentic approaches often waste computational resources through inefficient, iterative full-text exploration. To address this, we introduce FastCode, a framework that decouples repository exploration from content consumption. FastCode utilizes a structural scouting mechanism to navigate a lightweight semantic-structural map of the codebase, allowing the system to trace dependencies and pinpoint relevant targets without the overhead of full-text ingestion. By leveraging structure-aware navigation tools regulated by a cost-aware policy, the framework constructs high-value contexts in a single, optimized step. Extensive evaluations on the SWE-QA, LongCodeQA, LOC-BENCH, and GitTaskBench benchmarks demonstrate that FastCode consistently outperforms state-of-the-art baselines in reasoning accuracy while significantly reducing token consumption, validating the efficiency of scouting-first strategies for large-scale code reasoning. Source code is available at https://github.com/HKUDS/FastCode.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 5 of its 24 references that are in the map. First posted on arXiv 1 Mar 2026.
Builds on
5 of 24 references.
Closest ancestors · 1
Same direction, newest first
Other references · 4
- 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 37
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
- 2025DeepCode: Open Agentic Codingcited by 14
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents
- 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
- 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level
- 2025Optimizing Token Consumption in LLMs: A Nano Surge Approach for Code Reasoning Efficiency
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning