graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
v0.302.57
Reliability fixes for images, failed requests, streamed errors, and long-running sessions.
- Images are typed by their bytes.
read_image,/image, paste, ACP and MCP image blocks, and JSON image input detect PNG, JPEG, GIF, and WebP from the file's contents. A WebP saved as.pngis sent as WebP. A file that is none of these is refused before it is queued, so a mislabelled screenshot can no longer leave a block in the transcript that fails every later turn (#1762). - Retrying after a failed request works. A turn that fails before any reply now ends with a
[request failed: …]marker in history, saved with the session. Resending the same prompt makes a new request; a genuine duplicate submission of a pending prompt is still skipped (#1729). - Streamed error events surface as errors. An SSE body holding only an error event is reported with the provider's error type and message on chat-completions, Anthropic Messages, OpenAI Responses, and Gemini Interactions, instead of failing reassembly and being retried as a truncated response. Invalid-request errors are not retried; overload and server errors keep their bounded retry (#748).
- Withdrawn checklist items can be closed.
todo_writeacceptscancelledwith a requiredreasonfor work the user withdrew or delegated. The item stays visible as[-] item (cancelled: reason), is never counted as verified, and no longer blocks completion. A verification item can be cancelled after a newer user message or anask_useranswer (#1520). - Workspace switches reach ACP clients immediately.
session_info_updateis sent right after theworkspacetool moves the session, and carries the session's absolute folder as_meta["graff/cwd"](#1737). - Retained workers survive a workspace switch.
subagent_resumefinds a retained worker's checkpoint under the folder it was saved in, and refusals explain whether the id is malformed, the checkpoint is missing, or the worker is still running (#1724). - Polling a running subagent is not a repeat. The identical-tool-call guard skips
agent_outputsnapshots that report a subagent still running (#1706).
Includes all changes from v0.302.56.