# RepoZero: Can LLMs Generate a Code Repository from Scratch?

*Zhaoxi Zhang, Yiming Xu, Jiahui Liang, Weikang Li, Xiaoshuai Chen, Liwei Qian, Xin Pei, Jizhou Huang, Rui Sun, Yunfang Wu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139682) · [OpenReview](https://openreview.net/forum?id=AmuEj2d0Qm) · [alphaXiv](https://www.alphaxiv.org/abs/2605.07122) · [Open on the map](../papers.html#p139682)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Verified Code Synthesis and Testing](../pgroup/302.md) · Type: benchmark or dataset · Keywords: repository code generation, benchmark evaluation, automated verification, iterative test generation, LLM coding agents

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Code benchmarks; [AI Agents](../areas/agents.md) › Agent Benchmarking › Coding agent benchmarks; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Software Engineering Benchmarks; [Benchmarks for LLMs & Agents](../areas/bench-llm-agents.md) › Cross-Domain Agent Evaluation › Software Engineering Benchmarks

## Summary
RepoZero introduces a benchmark and an iterative test generation framework for repository-level code synthesis, showing that even the strongest LLMs achieve only 30%-55% pass rates.

## Explained to a 5-year-old
A computer program called RepoZero helps teach robots how to write whole software projects from scratch. It uses a special test that checks if the code works exactly like the original. The robot tries to make the code better by fixing mistakes over and over. Even the smartest robots only get about half the problems right. This helps people see how much more we need to learn about teaching computers to code.

## Explained to a 5-year-old, longer
RepoZero is a new tool that tries to make a whole software project from nothing. It looks at the rules of how the program should work and then writes code that follows those rules. The tool checks the new code by running it and comparing its results to the original program. If the code fails, the tool makes a test that shows what went wrong. It then uses that test to improve the code again and again. Even the best computer brains only succeed about one-third to one-half of the time. This tells us that teaching computers to build full programs is still a hard problem. The tool also helps researchers compare different ideas for making code without needing human judges. It makes it easier to test many different methods quickly and fairly. By using many different languages and keeping everything safe, it avoids cheating and gives reliable results. This kind of testing could eventually help real programmers by giving them a partner that can draft whole projects and then refine them automatically.

## For a technical reader
RepoZero provides an automated benchmark that validates repository-level code generation by reproducing existing repositories from API specs. It uses cross-language constraints and sandboxing to ensure fair evaluation. The framework iteratively generates tests and refines code based on failures, enabling test-time scaling. Experiments show that even state-of-the-art LLMs only achieve modest success rates, highlighting the need for better synthesis methods.

## Problem
Generating complete software repositories from scratch lacks a reliable, automated way to evaluate whether the generated code works as intended.

## Method
The approach formulates generation as a reproduction task where an agent re-implements a repository from API specifications, uses cross-language constraints and sandboxing for evaluation, and iteratively generates and refines tests to improve synthesis.

## Results
Even the strongest models achieve only 30%-55% pass rates, indicating a large gap to real-world software development requirements.

## Contributions
It proposes a benchmark for automated, execution-based verification of repository-level generation, a formulation of generation as repository reproduction, and an iterative test generation and error-driven refinement framework for scaling synthesis.

## Practical relevance
It provides a scalable, automated evaluation framework to assess repository-level code generation, helping advance practical LLM-based coding agents.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139682)
