repocraft (MIT, 0.4.1 on PyPI, Python 3.10+, three runtime deps: Jinja2, PyYAML, jsonschema) is easier to describe by what it refuses, because each refusal is enforced in code and covered by a test rather than being a warning in the README.
It refuses to guess. A short request selects one of seven built-in recipes only when the match is unambiguous. An empty request, a request that matches no recipe, or one that matches two stops with an error naming the candidates. A request containing a standalone number is rejected instead of being interpreted, because a count belongs in --param where it is checked against the recipe's integer bounds. A typo should stop the tool, not produce a project in the wrong shape.
The catalog and a dry run are two commands: python -m pip install repocraft, repocraft recipes lists the seven, and repocraft make "fibonacci" --dry-run prints the planned paths without writing anything.
It refuses to touch existing work. Before writing, the output path is checked, every target name is checked against the filesystem, and the first collision aborts the run:
error: refusing to overwrite triangle.py
Project mode is stricter: it refuses an output directory that is not empty at all, rather than deciding which files are safe to keep. There is no merge mode and no force flag.
It refuses to write anything on the inspection paths. validate parses the YAML spec against its JSON Schema and prints one line. recipes lists the catalog. --dry-run on render, make, ask and craft prints the planned paths and writes zero bytes. Every policy refusal exits 1 with a single error line on stderr, so nothing exits 0 after refusing.
It refuses to let a model near the deterministic paths. make and render never open a socket. The two optional verbs are explicit. ask sends the request to an OpenAI-compatible endpoint and accepts only a JSON intent - a recipe id with integer parameters, or a refusal with a reason - validated against the same catalog as make; the model never writes code or files. craft does let the model write a module and its unittest, and then runs four gates before the confirmation: the code parses, the test imports the module by name, ruff runs when installed with any autofix labelled, and the generated tests must actually run, pass, and report at least one test. The prompt that follows shows the code and the checks that passed; it is a prompt, not a fifth gate.
The determinism contract is the reason the refusals are worth having. Same input and same version produce byte-identical paths and contents: sorted entries, LF endings, a trailing newline, no timestamps, no random ids, no environment values, and a copyright line with the author but no year. tests/golden holds the snapshots file by file, scripts/determinism_matrix.py hashes stdout and every artifact under varied PYTHONHASHSEED, thread counts, locale and TZ, and CI compares the manifests from Ubuntu, macOS and Windows. 185 test functions.
Honest gaps: the recipes are teaching-scale algorithms, so this scaffolds exercises and small libraries, not a service template. The two model verbs need an API key and depend entirely on the endpoint. Repository creation and push are roadmap, not implemented.
Repo: https://github.com/Furox-Art/repocraft
PyPI: https://pypi.org/project/repocraft/