MutaGReP: Execution-Free Repository-Grounded Plan Search for Code-Use
Abstract
When a human requests an LLM to complete a coding task using functionality from a large code repository, how do we provide context from the repo to the LLM? One approach is to add the entire repo to the LLM's context window. However, most tasks involve only fraction of symbols from a repo, longer contexts are detrimental to the LLM's reasoning abilities, and context windows are not unlimited. Alternatively, we could emulate the human ability to navigate a large repo, pick out the right functionality, and form a plan to solve the task. We propose MutaGReP (Mutation-guided Grounded Repository Plan Search), an approach to search for plans that decompose a user request into natural language steps grounded in the codebase. MutaGReP performs neural tree search in plan space, exploring by mutating plans and using a symbol retriever for grounding. On the challenging LongCodeArena benchmark, our plans use less than 5% of the 128K context window for GPT-4o but rival the coding performance of GPT-4o with a context window filled with the repo. Plans produced by MutaGReP allow Qwen 2.5 Coder 32B and 72B to match the performance of GPT-4o with full repo context and enable progress on the hardest LongCodeArena tasks. Project page: zaidkhan.me/MutaGReP
Community
Neural tree search for repository-level code generation (without execution!) https://zaidkhan.me/MutaGReP
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- LLMs Can Plan Only If We Tell Them (2025)
- Comparing Human and LLM Generated Code: The Jury is Still Out! (2025)
- CoReQA: Uncovering Potentials of Language Models in Code Repository Question Answering (2025)
- Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks (2025)
- Comparative Analysis of Large Language Models for Context-Aware Code Completion using SAFIM Framework (2025)
- CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verification (2025)
- Semantic Exploration with Adaptive Gating for Efficient Problem Solving with Language Models (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper