← Latest papers
🤖 AI

One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agents

This paper introduces RepoNavigator, a reinforcement learning-based LLM agent that achieves state-of-the-art performance in repository-level issue localization by utilizing a single execution-aware tool for symbol definition jumping, thereby simplifying model control and outperforming larger baselines and closed-source models.

Original authors: Zhaoxi Zhang, Yitong Duan, Yanzhi Zhang, Yiming Xu, Zhixiang Wang, Kun Liang, Weikang Li, Jiahui Liang, Deguo Xia, Jizhou Huang, Jiyan He, Yunfang Wu

Published 2026-05-27
📖 5 min read🧠 Deep dive

Original authors: Zhaoxi Zhang, Yitong Duan, Yanzhi Zhang, Yiming Xu, Zhixiang Wang, Kun Liang, Weikang Li, Jiahui Liang, Deguo Xia, Jizhou Huang, Jiyan He, Yunfang Wu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: Finding a Needle in a Haystack (That’s Also a Maze)

Imagine you are a detective trying to fix a broken machine, but the machine is so huge that it fills an entire warehouse. You can’t see the whole thing at once. You can only look at one small part at a time.

Most current AI assistants (Large Language Models, or LLMs) try to fix software bugs in these massive "warehouses" (code repositories) by using a bunch of different tools. They might use a "Search for Class" tool, a "Find Function" tool, and a "Check Imports" tool. It’s like trying to navigate the warehouse with a flashlight, a metal detector, and a map, but the tools keep breaking or giving you confusing results. Because there are so many tools, the AI gets overwhelmed, makes mistakes, and wastes time.

The Solution: The "Follow the Thread" Tool

The researchers created a new AI agent called RepoNavigator. Instead of giving it a toolbox full of different gadgets, they gave it just one very powerful tool: "Jump."

Think of the "Jump" tool like a magical thread attached to every part of the machine. If you are looking at a gear and you want to know where it was made or what it connects to, you just pull the thread. The thread instantly takes you to the exact blueprint or the next connected gear.

In computer terms, this tool uses a "language server" (a program that understands code structure) to jump from a piece of code to its definition. If the code says calculate_tax(), the "Jump" tool instantly shows you the actual code inside calculate_tax().

Why One Tool is Better

The paper argues that less is more. Here is why:

  1. Simplicity: If you have 10 different tools, you have 10 different ways to fail. If you have one tool, it’s much easier to learn how to use it perfectly.
  2. Realism: When a computer runs a program, it doesn’t "search" for things; it follows a path. It goes from one function to the next. The "Jump" tool mimics this natural flow. It’s like following the electrical wiring in a house rather than guessing where the wires go.
  3. Focus: By restricting the AI to only "jumping" to definitions, the researchers narrowed down the search space. Instead of looking at every file in the warehouse, the AI only looks at the files that are actually connected to the problem.

How It Learns: Training with Rewards (Reinforcement Learning)

The AI didn’t start knowing how to use this tool well. The researchers trained it using Reinforcement Learning (RL).

Imagine teaching a dog to fetch. You don’t write a manual for the dog. You throw the ball, and if the dog brings it back, you give it a treat (a reward). If it fails, it gets no treat.

RepoNavigator was trained this way:

  • It tries to find the broken code by jumping from symbol to symbol.
  • If it finds the right file/function, it gets a "reward" (points).
  • If it makes a mistake or calls the tool incorrectly, it gets no reward.
  • Over time, it learns the best path to take to get the most points.

Crucially, they trained this AI from scratch using open-source models, without needing to copy the tricks from expensive, closed-source AI models (like GPT or Claude).

The Results: Small but Mighty

The experiments showed that this simple approach works incredibly well:

  • Small AI, Big Performance: A smaller AI model (7 billion parameters) trained with this method performed better than larger, more complex models (14 billion parameters) that used older methods.
  • Beating the Giants: Their largest model (32 billion parameters) outperformed even some of the most advanced closed-source models (like GPT-5) on most tests.
  • Efficiency: Because it uses only one tool, it uses fewer computing resources and tokens (words) than other methods. It’s faster and cheaper.

The Analogy Summary

  • Old Way: Trying to find a specific book in a massive library by using a catalog, a map, a librarian, and a search engine, but getting confused by the different systems.
  • New Way (RepoNavigator): Being given a single, magical bookmark. You start at the table of contents, and the bookmark instantly teleports you to the exact page you need. You just keep teleporting until you find the answer.

Conclusion

The paper proves that you don’t need a complex suite of tools to navigate huge software projects. By giving an AI agent one smart, execution-aware tool ("Jump") and training it with rewards, you can create a system that is faster, cheaper, and more accurate than previous methods. It’s a reminder that sometimes, the best solution is the simplest one.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →