Zero2Repo: Can Coding Agents Build Repositories from Scratch?

Pei Yang, Tianyu Shi, Yuhang Yao, Wanyi Chen, Tongyun Yang +21 more
9/29/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Coding agents are increasingly asked to build software rather than patch it, yet benchmarks for from-scratch repository construction are mostly limited to a single language and depend on manually curated tasks. We introduce Zero2Repo, a benchmark in which an agent receives a product requirements document, an interface contract, and an empty workspace, and must deliver a complete repository in the project's native ecosystem.

Show full abstract

Tasks are produced by a language-agnostic authoring pipeline that converts real, version-pinned open-source projects into behavioral specifications, reproducible environments, and hidden acceptance tests. Each task is validated by execution: a reference implementation derived from the upstream project must pass, and adversarial validation must show that the tests reject incorrect implementations. Evaluation runs production coding agents in isolated containers, withholds the acceptance tests until an explicit submission, and assigns a binary reward only when every test passes, with no LLM judge. The pipeline and harness make no language-specific assumptions and apply to mainstream programming ecosystems; the current release contains Python, TypeScript, Go, and C++ tasks. Even on 11 tasks drawn from repositories that frontier models have very likely seen during training, the strongest agent solves only 10, and every failing submission passes 90-99% of the hidden tests; for the two strongest agents, 67-100% of failed tests trace to a single omission or a low-frequency rule stated in the specification rather than to a missing subsystem, so each failure is a concrete target for improvement.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2026zerorepo,
  title  = {Zero2Repo: Can Coding Agents Build Repositories from Scratch?},
  author = {Pei Yang and Tianyu Shi and Yuhang Yao and Wanyi Chen and Tongyun Yang and Dun Pei and Haonan Wang and Pengbin Feng and Guanxu Yu and Jingchun Huang and Zeyu Zhang and Shuhan Sun and Hao Li and Alex Gu and Xiang Li and Jie Xiao and Xinyu Wang and Hanxin Chen and Daqi Li and Qi Jia and Hongshan Lin and Zhizhou Gu and Zijun Tian and Weizhi Du and Lynn Ai and Eric Yang},
  year   = {2026},
  eprint = {2609.38269},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.38269v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.38269.svg)](https://codeofpaper.com/paper/2609.38269)

Discussion