graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Verified image generation + honest clipboard pastes
v0.0.232 adds an imagegen tool that proves every image it reports, and makes
clipboard paste failures honest — and usually recoverable — instead of silent.
imagegen: image generation the model can't fake (#352, PR #355)
- A new codex-gated
imagegentool generates images through your Codex ChatGPT plan (hostedimage_gen, no API key) with the skill'simage_gen.pyCLI as anOPENAI_API_KEYfallback. The Codex imagegen skill is mirrored into~/.harness/skills/imagegensoskill imagegenworks, LICENSE intact, with a graff addendum explaining the mapping. - Investigating #352 caught Codex 0.141.0 fabricating generation success
from a stale file, so verification is the tool's core: graff scans a
per-run private
CODEX_HOME, requires a fresh artifact (mtime, magic bytes, size floor), copies and resizes it itself, and re-verifies the delivered bytes. Exit 0 plus a confident transcript and no fresh artifact is a hard error. Concurrent generations cannot cross-attribute — spawn one subagent per image and they parallelize safely. imagegenrespects plan mode and--no-local-tools, and overwrites are/rewind-snapshotted likewrite_file.- MCP tool schemas with top-level
oneOf/allOf/anyOfare now lowered instead of rewrittenoneOf→anyOf— one connected MCP server can no longer 400 every Anthropic turn.
Clipboard pastes stop lying (#349, #350, PR #353)
- An oversized clipboard image is downscaled to a provider-safe payload and attached instead of being dropped with "couldn't read the clipboard image" while the prompt goes out text-only. If it truly cannot fit, the error names the real size and the limit.
- Telegram-style file-URL clipboards and PDF clipboards now attach: capture
cascades PNGf → file URL → PDF with
sipsnormalization. macOS already synthesizes PNGf from any raster flavor; only pixel-less clipboards ever failed, and now they mostly don't. - Every paste attempt leaves a
clipboard_pastetrace event (result, flavor, bytes, mime — never the payload), and the shared/tmp/.harness-clip.pngrace is gone in favor of unique per-paste temp paths.
Agent PRs must explain why (#351, PR #354)
- The root system prompt now requires agent-authored PR descriptions to cover both what changed and why — problem, approach, trade-offs, rejected alternatives — proportional to the change, so later agents stop undoing deliberate decisions.
Full Changelog: https://github.com/justrach/codegraff/compare/v0.0.231...v0.0.232