r/softwaredevelopment • • 3d ago

repocraft: four paths, two of them deterministic, and a model that never writes files

Repo: https://github.com/Furox-Art/repocraft - 0.5.0, MIT, pip name repocraft.

Four paths in, Python out:

repocraft make triangle picks a built-in recipe and writes one .py file plus one unittest file. A small YAML spec becomes a full project: packaging metadata, src/ layout, tests, ruff and pyright config, CI, CodeQL, Dependabot, and a JUnit gate that rejects skipped tests. The ask path sends a free-form request to an OpenAI-compatible endpoint, but the model only returns a strict {recipe, parameters} intent which is validated against the recipe catalog - it never writes code or files. The craft path is the opposite: a model writes the snippet, and repocraft verifies it through gates - python syntax, that the generated tests actually import the module, ruff when installed, and the generated tests themselves - before the confirmation prompt.

The first two paths are deterministic: same input and same repocraft version produce byte-identical output.

Install:

python -m pip install repocraft

One honest limit: 0.5.0 confines every gate subprocess to the proposal's temp directory with a 60-second timeout, kills a runaway proposal, and runs the generated tests under -E -s -B. That is confinement, not a security sandbox, and GitHub repository creation is still a roadmap item rather than something the tool does.

0 Upvotes

1 comment sorted by

1

u/paul_h 3d ago

I translate for the uninitiated: Repocraft (version 0.5.0), a Python tool designed to scaffold and generate Python projects and code via four distinct ways.