Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

docs(release): cut v0.0.269 — Z.AI GLM-5.3

Cursor Agente1de93ec9202
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3313c48c..d968a977 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,7 +10,7 @@ The release workflow uses a tag's section here as its release notes (a
hand-written `docs/releases/<tag>.md` wins if present), so keeping this file
current is part of cutting a release.
-## v0.0.268 (2026-08-20)
+## v0.0.269 (2026-08-20)
- Z.AI's existing seat now defaults to GLM-5.3 (1M context) with live
`/api/paas/v4/models`, `thinking.type=enabled`, and `/effort` remapped
@@ -20,6 +20,10 @@ current is part of cutting a release.
(`cached_tokens`) plus `thinking.clear_thinking=false` so replayed
`reasoning_content` stays in that prefix. This is the GLM chat API,
not image/video.
+- Test ratchet: unit suite 1531.
+
+## v0.0.268 (2026-08-20)
+
- Cerebras Inference is a built-in OpenAI-chat provider (`CEREBRAS_API_KEY`,
`graff key set cerebras …`, default `gpt-oss-120b`). Live `/v1/models`
overlay; this is `api.cerebras.ai`, not the WSE CSL SDK.
diff --git a/docs/releases/v0.0.268.md b/docs/releases/v0.0.268.md
index 0cb48198..75a64025 100644
--- a/docs/releases/v0.0.268.md
+++ b/docs/releases/v0.0.268.md
@@ -50,21 +50,6 @@ next agent step sees it, and an idle TUI starts a turn. Combined with
ADR 0010 (wait-for-exit already in 0.0.267), the model should not poll
`bash_output` every 30s.
-## Z.AI GLM-5.3
-
-`ZAI_API_KEY` was already a first-class seat. It now defaults to
-`glm-5.3` (1M context) and fetches the live catalog from
-`https://api.z.ai/api/paas/v4/models`. GLM-5.3 always reasons: the wire
-sends `thinking.type=enabled` and maps `/effort` onto `low` / `high` /
-`max` (graff's default `medium` becomes `high` so the request is not
-rejected). Cache is implicit on an identical prefix
-(`usage.prompt_tokens_details.cached_tokens`); the wire also sets
-`thinking.clear_thinking=false` so replayed `reasoning_content` stays
-in that prefix across tool turns. Pay-as-you-go stays on `/api/paas/v4/`.
-A GLM Coding Plan key needs `ZAI_CODING=1` or `GRAFF_ZAI_URL` pointing at
-`https://api.z.ai/api/coding/paas/v4/chat/completions`. Image and video
-models are not chat seats.
-
## Cerebras Inference
`graff key set cerebras csk-…` (or `CEREBRAS_API_KEY`) adds the same
diff --git a/docs/releases/v0.0.269.md b/docs/releases/v0.0.269.md
new file mode 100644
index 00000000..c2e7a318
--- /dev/null
+++ b/docs/releases/v0.0.269.md
@@ -0,0 +1,41 @@
+# 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. It ships on top of 0.0.268 (TOML agents, live
+bash, Cerebras, session resume, `codedb list_dir`).
+
+## Z.AI GLM-5.3
+
+`ZAI_API_KEY` was already a first-class seat. It now defaults to
+`glm-5.3` (1M context) and fetches the live catalog from
+`https://api.z.ai/api/paas/v4/models`. Offline catalog also includes
+`glm-5-turbo` and `glm-5v-turbo`; the older GLM-5.2 / 5 / 4.7 / 4.5
+rows stay.
+
+GLM-5.3 always reasons: the wire sends `thinking.type=enabled` and maps
+`/effort` onto Z.AI's allow-list `low` / `high` / `max` (graff's default
+`medium` becomes `high` so the request is not rejected; `xhigh` / `ultra`
+become `max`).
+
+Pay-as-you-go stays on `https://api.z.ai/api/paas/v4/chat/completions`.
+A GLM Coding Plan key needs `ZAI_CODING=1` or `GRAFF_ZAI_URL` pointing at
+`https://api.z.ai/api/coding/paas/v4/chat/completions`. Image and video
+models (GLM-Image, CogVideoX) are not chat seats.
+
+## Implicit prefix cache
+
+Z.AI cache is implicit on an identical request prefix
+(`usage.prompt_tokens_details.cached_tokens`). The paas default
+`thinking.clear_thinking=true` would drop replayed `reasoning_content`
+on the next tool turn and bust that prefix, so graff sends
+`thinking.clear_thinking=false`. Coding Plan already defaults preserved
+thinking on. A sticky `prompt_cache_key` is accepted and does not
+prevent hits. `/cache` still shows remaining-max for the seat.
+
+This is still one provider id (`zai`). The kernel stays at 19 seats.
+
+## 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.json
index 0618c1e4..64322d70 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": 1486,
+ "test_count_baseline": 1531,
"test_count_slack": 25,
"required_invariants": [
{
diff --git a/src/cli.zig b/src/cli.zig
index 215a347e..eb6e7a52 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -21,6 +21,10 @@ const harness_version = root.harness_version;
pub const changelog_text =
\\What's new
\\──────────
+ \\0.0.269
+ \\ • 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
+ \\
\\0.0.268
\\ • Cerebras Inference (CEREBRAS_API_KEY → gpt-oss-120b); not the WSE CSL SDK
\\ • Codex-shaped .harness/agents/*.toml (and ~/.codex/agents) pin model/effort