repocraft 0.5.0: LLM-written code must pass syntax, import, ruff and test gates before hitting disk
Emergency-Tutor-7 · reddit · 2026-11-24
The author open-sourced repocraft 0.5.0 (MIT), deliberately built twice to contrast two failure modes of model-written code:
- ask path: the model only converts free-form requests into a strict {recipe, parameters} intent, validated against the recipe catalog with the same rules as the deterministic path — the model never writes code or files, worst case is a rejected intent.
- craft path: the model writes the snippet, but nothing hits disk until it clears gates: Python syntax, whether generated tests actually import the module, ruff (when available), and the generated tests themselves. Each gate subprocess runs in a temp dir with a 60-second timeout; runaway proposals are killed and rejected.
The first two paths are fully deterministic — byte-identical output per version — and a small YAML spec yields a whole project with packaging metadata, src/ layout, tests, lint/type-check config, CI, CodeQL, Dependabot, and a JUnit gate that rejects skipped tests. Honest caveat: the confinement is not a security sandbox, and GitHub repo creation is still roadmap.
More from coding & agent
- Dialing Claude Code compaction to 300K in T3 Code yields 20% more weekly usage — PawelHuryn · 2026-11-24
- Filmmaker uses Claude MCP with DaVinci Resolve to agently cut a trailer from his phone — Scobleizer · 2026-11-24
- Uber Evals 1 Million Agent Skill Invocations a Month — ghumare64 · 2026-11-24
- Chaining coding agents across a repo hits a persistent context wall, not a syntax wall — Tall-Contract7028 · 2026-11-24
- Same agent, same afternoon, two red-team runs: 49.48 vs 41.39 — why AI agent security baselines lie — Humanbound_AI · 2026-11-24
- Luxor cuts ~3s off every GitHub Actions runner start by eliminating polling timers — DanielLockyer · 2026-11-24