Zero2Repo: Can Coding Agents Build Repositories from Scratch?
Pei YangTianyu Shi…Eric Yang
We introduce Zero2Repo, a benchmark for from-scratch repository construction: an agent gets a product requirements document, an interface contract, and an empty workspace, and must deliver a complete repository in its native ecosystem. A language-agnostic pipeline converts real, version-pinned open-source projects into behavioral specifications, reproducible environments, and hidden acceptance tests; tasks are validated by reference-pass and adversarial rejection. Evaluation runs agents in isolated containers, withholds tests until submission, and gives binary rewards only when all tests pass. On 11 Python, TypeScript, Go, and C++ tasks, the strongest agent solves only 10, with failing submissions passing 90-99% of hidden tests, and most failures trace to single omissions or low-frequency rules.

arXiv ·
· September 29, 2026