CodeNav: Beyond tool-use to using real-world codebases with LLM agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
We present CodeNav, an LLM agent that navigates and leverages previously unseen code repositories to solve user queries. In contrast to tool-use LLM agents that require ``registration'' of all relevant tools via manual descriptions within the LLM context, CodeNav automatically indexes and searches over code blocks in the target codebase, finds relevant code snippets, imports them, and uses them to iteratively generate a solution with execution feedback. To highlight the core-capabilities of CodeNav, we first showcase three case studies where we use CodeNav for solving complex user queries using three diverse codebases. Next, on three benchmarks, we quantitatively compare the effectiveness of code-use (which only has access to the target codebase) to tool-use (which has privileged access to all tool names and descriptions). Finally, we study the effect of varying kinds of tool and library descriptions on code-use performance, as well as investigate the advantage of the agent seeing source code as opposed to natural descriptions of code. All code will be made open source under a permissive license.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 23 of its 43 references that are in the map. First posted on arXiv 18 Jun 2024.
Builds on
23 of 43 references.
Closest ancestors · 1
Same direction, newest first
Other references · 22
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Qwen Technical Reportcited by 3,344
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2024Mixtral of Expertscited by 1,823
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 591
10 more
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
- 2023MM-REACT: Prompting ChatGPT for Multimodal Reasoning and Actioncited by 517
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 516
- 2023ART: Automatic multi-step reasoning and tool-use for large language modelscited by 197
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
- 2023Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Modelscited by 68
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 63
- 2023EcoAssistant: Using LLM Assistant More Affordably and Accuratelycited by 49
- 2024m&m's: A Benchmark to Evaluate Tool-Use for multi-step multi-modal Taskscited by 38
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
- 2025A Survey of Large Language Model Empowered Agents for Recommendation and Search: Towards Next-Generation Information Retrievalcited by 33
- 2025Code2Video: A Code-centric Paradigm for Educational Video Generationcited by 27
- 2025Large Language Model-based Data Science Agent: A Surveycited by 23
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2026Coding with Eyes: Visual Feedback Unlocks Reliable GUI Code Generating and Debuggingcited by 1
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition2 Jun 2026
- 2026Coding with Eyes: Visual Feedback Unlocks Reliable GUI Code Generating and Debugging14 Mar 2026
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agents18 Jan 2026
- 2025Code2Video: A Code-centric Paradigm for Educational Video Generation1 Oct 2025
- 2025Large Language Model-based Data Science Agent: A Survey2 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025A Survey of Large Language Model Empowered Agents for Recommendation and Search: Towards Next-Generation Information Retrieval7 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges
- 2024LLM Agents Improve Semantic Code Search
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases
- 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging
- 2026ToolRosella: Translating Code Repositories into Standardized Tools for Scientific Agents
- 2026CODESTRUCT: Code Agents over Structured Action Spaces
- 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving