Rebuild proven software with AI agents — without ever reading its code.
A knowledge base + toolkit for spec-driven, clean-room reimplementation: reduce a reference product to observable behavior and public specifications, encode those as machine-readable specs and test oracles, and let coding agents do the forward engineering under automated verification — with ratchets that make progress monotonic and honest metrics that keep the project credible.
The public proof this works at scale: storytold/photocraft, a clean-room reimplementation of Adobe Photoshop in pure Rust built with heavy AI assistance (open-sourced 2026) — the latest entry in a lineage that runs from Wine and ReactOS to FFmpeg's FATE. This repository generalizes the shared method of that lineage into documentation you can learn from, tools you can run, and templates you can adopt — independent of, and unaffiliated with, any of them.
flowchart LR
A["1 law<br/>clean-room boundary"] --> B["2 specifications<br/>public specs + observed behavior"]
B --> C["3 agent-ready architecture<br/>everything is a command, drivable"]
C --> D["4 verification<br/>oracles, ratchets, honest metrics"]
D -- "differences = new tasks" --> C
E["5 operations<br/>constitution, parallelism, devlog"] -. supports all .-> C
Chapters: concepts · law · specifications · architecture · verification · operations · reference implementations · tooling · playbook · failure modes · FAQ · glossary · references. 中文导读:docs/zh-CN/README.md。
docs/ the method, end to end (EN, with zh-CN core editions)
archive/ open-licensed primary documents from the reference projects
templates/ agent constitution, clean-room policy, specs, devlog, scorecard…
tools/ 5 tested CLIs: ratchet, inventory parity, golden masters,
pixel diff, pinned corpora (python 3.11+, stdlib-first)
integrations/ MCP catalog + ready-to-install agent skills
examples/ mini-cleanroom: a 2-hour lab implementing a small binary
format against golden oracles, with a rising parity floor
git clone <this-repo> && cd agentic-cleanroom
python3 -m venv .venv && . .venv/bin/activate # avoids PEP 668 restrictions
python3 -m pip install pytest
# the lab: experience the whole loop in ~2 hours
python3 -m pytest examples/mini-cleanroom/impl/tests -v
# the tools (pixel tests need: pip install -r tools/requirements.txt)
python3 -m pytest tools/tests -v
python3 tools/inventory_parity.py --helpThen read docs/00-orientation.md and follow the playbook.
Teams and individuals rebuilding or migrating substantial software — product clones (legal paths only), legacy re-platforming, format-compatible reimplementations, large spec-driven greenfield builds that want the verification discipline. Not for toy projects; not a substitute for legal advice (see docs/02).
Facts are cited at their origin; open-licensed primary documents are
archived under archive/ with provenance headers;
material that cannot be redistributed is linked, not copied. Claims that
could not be independently confirmed are flagged in
docs/references.md. Corrections welcome — see
CONTRIBUTING.
v0.1.0 — content-complete, tools tested, pre-publication review.
Apache-2.0. Trademarks referenced in the documentation belong to their owners; this repository is not affiliated with Adobe, the ArtCraft projects, or any vendor mentioned.