graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Verified edits + embedder mode complete
v0.0.231 makes edit_file prove its work and closes out embedder mode. The
macOS binaries are Developer ID signed and Apple notarized.
edit_file can no longer claim success it didn't earn (#337)
- Batched edits to the same file used to race: tool calls fan out on real OS threads, and a later write could erase an earlier edit while both reported success. Same-file writes are now serialized per path. The race is proven, not assumed: removing the lock makes the new regression test fail.
- The originally reported single-call silent no-op ("replaced 1 occurrence(s)" with no change on disk) would not reproduce despite extensive direct probing, so a verification layer now backstops it: after every edit the file is re-read and the result checked. Any recurrence becomes a loud "did NOT persist, re-read and re-issue" tool error the model can act on, and honest edits report "(verified)".
exec.zigcame down from 600 to 474 lines in the process. The suite now runs 656 tests. (PR #338)
Embedder mode, both halves of #330
- A hard no-local-tools gate (PR #335):
--no-local-tools(orGRAFF_NO_LOCAL_TOOLS=1) disablesbash, the file tools, andcodedbfor the whole process, subagents and workflow workers included. The gated tools are never advertised to any provider, and dispatch refuses them if a model hallucinates one anyway.--yolodoes not lift it. Point graff at your sandbox as an MCP server and the model gets those tools instead. - Resumable serve streams (PR #336): every
graff serveevent carries a monotonicseq, a dropped consumer reconnects with?from=Nand replays exactly the gap, and sessions are durable across reconnects. The--jsonschema is now 0.10, the SDK docs cover the reconnect and durable-session surface, and CI runs a serve-resumability end-to-end test.
Full Changelog: https://github.com/justrach/codegraff/compare/v0.0.230...v0.0.231