graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
docs(release): cut v0.0.270
Rach Pradhan69a23587df17
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8ca32762..3944c702 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,22 +10,25 @@ The release workflow uses a tag's section here as its release notes (ahand-written `docs/releases/<tag>.md` wins if present), so keeping this filecurrent is part of cutting a release.-## v0.0.269 (2026-08-20)+## v0.0.270 (2026-08-22)+- OpenRouter is a built-in OpenAI-chat seat (`OPENROUTER_API_KEY`,+ `graff key set openrouter …`, default `anthropic/claude-sonnet-4.6`).+ Chat goes to `openrouter.ai/api/v1`; live `/models` overlays the+ catalog. Attribution headers `http-referer` + `x-title`. Provider+ kernel 21.- Windows: `edit_file`/`write_file` no longer panic the session on Zig 0.17'sunimplemented path chmod (`dirSetFilePermissions`). Mode restore uses handle- chmod; directory chmod is skipped on Windows the same way the rest of the- tree already did (#606).+ chmod (#606).+- Line REPL transcript is the task, not the event bus (ADR 0021).+- TUI markdown paints numbered lists, quotes, tasks, rules, and `_italic_`.+- Test ratchet: unit suite 1578.++## v0.0.269 (2026-08-20)+- codedb pairing (ADR 0019): advertise five one-shots — `context <task>`,`around <name>` (def+callers), `callpath A B`, `list_dir <path>`,`status`. Hop verbs stay callable, not on the catalog menu.-- OpenRouter is a built-in OpenAI-chat seat (`OPENROUTER_API_KEY`,- `graff key set openrouter …`, default `anthropic/claude-sonnet-4.6`).- Chat goes to `openrouter.ai/api/v1`; live `/models` overlays the- catalog (`context_length`). Attribution headers `http-referer` +- `x-title` (OpenRouter rankings). `/effort` is `reasoning_effort`.- This is not Anthropic Messages or image/video generation. Provider- kernel 21.- Vercel AI Gateway is a built-in OpenAI-chat seat (`AI_GATEWAY_API_KEY`,`graff key set vercel …`, default `alibaba/qwen3.8-27b`). Chat goes to`ai-gateway.vercel.sh/coding-agent/v1` (docs: marks harness traffic;diff --git a/docs/releases/v0.0.269.md b/docs/releases/v0.0.269.mdindex aea91715..939dc8bf 100644--- a/docs/releases/v0.0.269.md+++ b/docs/releases/v0.0.269.md@@ -1,20 +1,9 @@# v0.0.269 (2026-08-20)This release upgrades the existing Z.AI seat to GLM-5.3 and token-maxes-its implicit prefix cache, and adds Vercel AI Gateway and OpenRouter as-first-class chat seats. It ships on top of 0.0.268 (TOML agents, live bash,-Cerebras, session resume, `codedb list_dir`).--## OpenRouter--`OPENROUTER_API_KEY` (or `graff key set openrouter …`) is a built-in-OpenAI-chat seat at `https://openrouter.ai/api/v1`. Default model is-`anthropic/claude-sonnet-4.6` (1M context). Live `GET /models` overlays-the catalog (`context_length`; `include_reasoning` marks effort). Requests-send app attribution (`http-referer: https://codegraff.com`,-`x-title: graff`) so the client shows up in OpenRouter rankings. `/effort`-is the usual `reasoning_effort` field. This is not the Anthropic Messages-wire, the Responses wire, or image/video generation.+its implicit prefix cache, and adds Vercel AI Gateway as a first-class+chat seat. It ships on top of 0.0.268 (TOML agents, live bash, Cerebras,+session resume, `codedb list_dir`).## Vercel AI Gatewaydiff --git a/docs/releases/v0.0.270.md b/docs/releases/v0.0.270.mdnew file mode 100644index 00000000..fa740cd5--- /dev/null+++ b/docs/releases/v0.0.270.md@@ -0,0 +1,39 @@+# v0.0.270 (2026-08-22)++This release adds OpenRouter as a first-class chat seat, stops a Windows+panic that killed `edit_file` sessions, and makes both REPLs read like+the task instead of the event bus. It ships on top of 0.0.269 (GLM-5.3,+Vercel AI Gateway, codedb one-shots).++## OpenRouter++`OPENROUTER_API_KEY` (or `graff key set openrouter …`) is a built-in+OpenAI-chat seat at `https://openrouter.ai/api/v1`. Default model is+`anthropic/claude-sonnet-4.6` (1M context). Live `GET /models` overlays+the catalog (`context_length`; `include_reasoning` marks effort). Requests+send app attribution (`http-referer: https://codegraff.com`,+`x-title: graff`) so the client shows up in OpenRouter rankings. `/effort`+is the usual `reasoning_effort` field. This is not the Anthropic Messages+wire, the Responses wire, or image/video generation. Provider kernel 21.++## Windows path chmod (#606)++Zig 0.17's Threaded Io panics on Windows for `Dir.setFilePermissions`+instead of returning an error. `edit_file` / `write_file` restored the+pre-edit mode that way, so a mid-turn edit killed the whole REPL.+Mode restore now uses handle chmod (`File.setPermissions`, implemented+via NT attributes). Directory chmod is skipped on Windows, matching the+rest of the tree.++## Transcript is the task++Line REPL tool rows are decisions, not raw tool dumps (ADR 0021). Bookkeeping+tools stay off the transcript; todos render as a `WORKING` tree; scouts are+one-line cards. The TUI pager now paints numbered lists, `+` bullets, quotes,+task checkboxes, thematic breaks, and `_italic_` the same way.++## Distribution++Prebuilt archives are available for Linux, macOS, and Windows on arm64 and+x86_64. Both macOS binaries are Developer ID signed, hardened-runtime enabled,+and notarized by Apple; `SHA256SUMS` covers all six platform archives.diff --git a/scripts/eval/tier1-manifest.json b/scripts/eval/tier1-manifest.jsonindex 44d3d472..5ca5d49d 100644--- a/scripts/eval/tier1-manifest.json+++ b/scripts/eval/tier1-manifest.json@@ -15,7 +15,7 @@"src/repl.zig","TUI/root.zig"],- "test_count_baseline": 1557,+ "test_count_baseline": 1578,"test_count_slack": 25,"required_invariants": [{diff --git a/src/cli.zig b/src/cli.zigindex bc84152d..fe7b19b5 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -21,8 +21,13 @@ const harness_version = root.harness_version;pub const changelog_text =\\What's new\\──────────- \\0.0.269+ \\0.0.270\\ • OpenRouter (OPENROUTER_API_KEY → anthropic/claude-sonnet-4.6); live /models+ \\ • Windows: edit_file/write_file no longer panic on path chmod (#606)+ \\ • Line REPL transcript is the task, not the event bus+ \\ • TUI markdown: lists, quotes, tasks, rules, italic+ \\+ \\0.0.269\\ • Vercel AI Gateway (AI_GATEWAY_API_KEY → alibaba/qwen3.8-27b); coding-agent /v1\\ • Z.AI defaults to GLM-5.3 (1M); thinking.enabled + implicit prefix cache\\ • GLM Coding Plan: ZAI_CODING=1 / GRAFF_ZAI_URL; not image/video