← Latest papers
💻 computer science

RepoZero: Can LLMs Generate a Code Repository from Scratch?

This paper introduces RepoZero, the first benchmark for fully automated, execution-based verification of LLMs generating complete software repositories from scratch via API specifications, alongside the Agentic Code-Test Evolution (ACE) framework, revealing that even state-of-the-art agents struggle to achieve high success rates in this complex task.

Original authors: Zhaoxi Zhang, Yiming Xu, Weikang Li, Jiahui Liang, Yunfang Wu

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Zhaoxi Zhang, Yiming Xu, Weikang Li, Jiahui Liang, 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 Big Idea: Can AI Build a House from a Blueprint?

Imagine you have a very smart robot assistant (an AI) that is great at fixing a leaky faucet or painting a single wall. But now, you ask it a much harder question: "Can you build an entire house from scratch, using only a list of instructions, without looking at the original blueprints or the finished house?"

This paper, RepoZero, asks exactly that question, but instead of houses, it's about software code repositories (a collection of files that make up a software program).

The Problem: The "Fake It Till You Make It" Trap

Previously, researchers tried to test these AI robots by asking them to fix small bugs or write single files. But when it comes to building a whole program from scratch, it's hard to tell if the AI actually understood how to build it or if it just memorized the answer from its training data (like a student who memorized the textbook answers instead of learning the math).

Most existing tests rely on humans or other AIs to read the code and say, "Looks good!" This is like a teacher grading a math test by just glancing at the final number without checking the work. It's easy to cheat, and it's not very reliable.

The Solution: The "RepoZero" Challenge

The authors created a new, super-tough test called RepoZero. Here is how it works, using a Cooking Analogy:

  1. The Original Dish (The Source): Imagine a famous chef has a secret recipe for a complex cake. We know exactly how it tastes and how it behaves.
  2. The Challenge: We give the AI robot a list of ingredients and a description of what the cake should do (e.g., "It must rise when heated," "It must taste sweet").
  3. The Twist (Cross-Language): The robot isn't allowed to use the original recipe. Worse, it has to cook the cake in a completely different kitchen with different tools.
    • If the original cake was made in a Python kitchen, the robot must build it in a JavaScript kitchen.
    • If the original was C++, the robot must build it in Rust.
    • Why? This stops the robot from just copying the recipe. It forces the robot to truly understand the logic and rebuild it from scratch.
  4. The Taste Test (The Verification): The robot builds its own cake. We then taste both cakes side-by-side. If the robot's cake behaves exactly the same way as the original (same rise, same taste, same texture), it passes. If it's slightly different, it fails.

The "ACE" Framework: The Robot's Self-Correction Loop

The paper also introduces a new way for the robot to learn while it works, called ACE (Agentic Code-Test Evolution).

Think of this like a practice session before a big game:

  • Instead of just trying to build the house once and hoping for the best, the robot builds a small part, then immediately tests it.
  • If the test fails (e.g., "The door won't open"), the robot sees the error, fixes the door, and tests again.
  • It repeats this cycle: Build -> Test -> Fix -> Build.
  • The paper found that robots using this "practice loop" got much better at building the final product than those that just tried to build it in one go.

What Did They Find?

The results were surprising and a bit sobering:

  • Even the "Smartest" Robots Struggle: The most advanced AI models available today (like Claude, DeepSeek, and Kimi) could only successfully build the full software "house" about 30% to 55% of the time.
  • The Gap is Huge: While these AIs are amazing at writing single lines of code, they are still far from being able to autonomously build complex, working software systems from scratch.
  • Self-Checking is Key: The robots that used the "ACE" loop (testing and fixing their own work) performed significantly better. This suggests that for AI to become a true software engineer, it needs to get better at checking its own work rather than just guessing.

Summary

RepoZero is a new, strict gym for AI robots. It forces them to rebuild complex software in a different language to prove they aren't just cheating by memorizing answers. The test shows that while AI is getting good at small tasks, it still has a long way to go before it can independently build entire software projects. The paper suggests that the key to getting there is teaching AI to test and fix its own mistakes as it builds.

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 →