r/coolgithubprojects • u/Emergency-Tutor-7 • 6h ago
repocraft - a Python project generator that fails closed when a model proposes something that hangs
https://github.com/Furox-Art/repocraft
0
Upvotes
1
u/Emergency-Tutor-7 6h ago
What it does: a short phrase or a small YAML spec becomes a Python artifact -
repocraft make "triangle"writes one .py plus one unittest file, and a YAML spec produces a full project with src/ layout, packaging metadata, tests, ruff/pyright config, CI, CodeQL, Dependabot and a JUnit gate that rejects skipped tests. Those paths are deterministic: same input and same version give byte-identical output.The part I would defend is what happens when a model is in the loop. In the
askpath the model only returns a strict {recipe, parameters} intent, validated against the recipe catalog, and never writes a file. Incraftit writes the snippet, and nothing reaches disk until it clears the gates: Python syntax, whether the generated tests actually import the module, ruff when installed, and the generated tests themselves. Each gate subprocess runs inside the proposal's temporary directory with a 60-second timeout, a runaway proposal is killed and rejected, and the generated tests run underpython -E -s -B.Install:
Honest limit from the README, and I agree with it: that confinement is not a security sandbox. Creating the GitHub repository is still a roadmap item too.
1
u/da_sher 5h ago
the 60 second timeout gate is a nice touch, a runaway proposal just gets killed instead of hanging the whole run. why 60 though, do legit bigger projects ever get close to that limit?