r/coolgithubprojects • • 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

2 comments sorted by

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 ask path the model only returns a strict {recipe, parameters} intent, validated against the recipe catalog, and never writes a file. In craft it 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 under python -E -s -B.

Install:

pip install repocraft
npm i -g @furox-art/repocraft

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?