r/devtools • u/Emergency-Tutor-7 • 3h ago
A project generator whose first two paths are byte-identical: same input, same version, same output
Repo: https://github.com/Furox-Art/repocraft - 0.5.0, MIT.
Four paths, and the interesting part is which of them are deterministic.
repocraft make "triangle" picks a built-in recipe and writes one .py plus one unittest file. A small YAML spec produces a full project: packaging metadata, src/ layout, tests, ruff and pyright config, CI, CodeQL, Dependabot, and a JUnit gate that rejects skipped tests. Both of those are deterministic - same input and same version produce byte-identical output, which is what makes them testable.
The other two involve a model. In ask, the model only returns a strict {recipe, parameters} intent, validated against the recipe catalog, and never writes code or files. In craft, the model writes the snippet and repocraft gates it before anything is confirmed: Python syntax, that the generated tests import the module, ruff when installed, and the generated tests themselves. Each gate subprocess runs in the proposal's temp directory with a 60-second timeout, and a runaway gets killed and rejected.
Install:
python -m pip install repocraftOne honest limit: that confinement is not a security sandbox, and GitHub repository creation is still a roadmap item rather than something the tool does today.