graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
docs: the cap keeps the bytes now, and says where (#409)
Rach Pradhan31824d9e0675
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b2f8415b..057feb2f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,17 @@ current is part of cutting a release.## v0.0.240 (unreleased)+- An oversized tool output is now spilled, not destroyed (#409). The+ per-result cap (#193/#201) used to delete the elided bytes, leaving the+ model to re-run the tool and guess a better slice; when the session is+ durable the full output is now written to+ `.graff/sessions/<session>/artifacts/tool-<n>.txt` first, and the marker in+ the transcript cites the absolute path and the byte count, so the next turn+ can read or grep exactly what it needs. Bounded by a 64 MiB per-session+ budget (whole artifacts only, so a marker can never overstate what is on+ disk), and reclaimed with the session: an artifact dir whose+ `<session>.session.json` is gone is swept at the next spill. Subagents,+ whose history is never persisted, keep the plain truncation.- The REPL/engine separation began (#422): agent output now flows through atyped event vocabulary and a strict sink boundary (`engine_events.zig` /`engine_sink.zig`), with streamed model output, the codex WS transportdiff --git a/README.md b/README.mdindex f972deaf..6c3d83a9 100644--- a/README.md+++ b/README.md@@ -1067,7 +1067,13 @@ the data plane for task-aware recipe comparison; they do not silently switchmodels or effort levels.Long tool results are stored exactly under `.graff/tool-results/`; model history-receives a short preview and an inspectable file pointer instead. Responses+receives a short preview and an inspectable file pointer instead. A result that+is still over the per-model result cap at send time is spilled the same way+rather than truncated away: the full bytes go to+`.graff/sessions/<session>/artifacts/`, and the note left in the transcript+carries that absolute path and the byte count, so the next turn can read or grep+the slice it needs. Artifacts are bounded per session and are reclaimed once the+session file they belong to is gone. Responsesrequests are explicitly capped at 16k output tokens (4k for compaction and 64for titles), while compaction carries the latest clean ~8k-token user-turnsuffix forward verbatim. A shared atomic run budget allows at most four model