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.279 for ACP native app

Cursor Agentf19922bede53
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ebd87056..b28be757 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,15 @@ 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.279 (2026-08-26)
+
+- Native Beautiful UI app (`apps/native`) is an ACP client. Next.js
+ `/api/acp` spawns `graff acp --yolo`; thinking and tool chips stream
+ from the first call. `graff serve` is not required (#637).
+- `graff acp` emits mid-turn `session/update`s for thought, text, and
+ `tool_call` / `tool_call_update` (ADR 0032). Protocol version stays 1.
+- Existing Tauri `gui/` is unchanged. No `v0.0.279` tag until asked.
+
## v0.0.278 (2026-08-26)
- Composer image pastes are marker-gated (#634). Deleting `[Image]`,
diff --git a/README.md b/README.md
index fe9c33a1..be9926ad 100644
--- a/README.md
+++ b/README.md
@@ -114,7 +114,7 @@ Much of this implementation and benchmark work was made possible by
[Cursor Cloud Agents](https://cursor.com/docs/cloud-agent): parallel agents in
isolated environments, with measured evidence merged back into the harness.
-### What shipped in v0.0.277 and v0.0.278
+### What shipped in v0.0.277–v0.0.279
- **MCP results learn to slim themselves.** On the Linear fixture, the warm
learnt path moved from **28.0s to 14.8s**, **112k to 31k input**, and **7 to 5
@@ -128,9 +128,12 @@ isolated environments, with measured evidence merged back into the harness.
- **Removed images really leave.** The v0.0.278 privacy follow-up drops a pasted
screenshot if its composer chip is removed, collapses duplicate payloads, and
makes `/image clear` clear the whole queue before anything reaches the model.
+- **The native app speaks ACP.** Thinking and tool chips stream mid-turn from
+ `graff acp` (ADR 0032). `graff serve` is not required.
-Read the full [v0.0.277 notes](docs/releases/v0.0.277.md) and the
-[v0.0.278 privacy follow-up](https://github.com/justrach/codegraff/blob/release/v0.0.278/docs/releases/v0.0.278.md).
+Read the full [v0.0.277 notes](docs/releases/v0.0.277.md), the
+[v0.0.278 privacy follow-up](docs/releases/v0.0.278.md), and the
+[v0.0.279 ACP native cut](docs/releases/v0.0.279.md).
### Broader comparison: model choice, footprint, and startup
diff --git a/docs/releases/v0.0.279.md b/docs/releases/v0.0.279.md
new file mode 100644
index 00000000..279eeb0e
--- /dev/null
+++ b/docs/releases/v0.0.279.md
@@ -0,0 +1,53 @@
+# v0.0.279 (2026-08-26)
+
+Newer cut on `main` after the v0.0.278 privacy line. The native Beautiful
+UI app speaks ACP from the first turn, so thinking and tool use render
+while the agent is still working. **No `v0.0.279` git tag** until you
+ask for one.
+
+This branch also carries the v0.0.278 product commits (composer-image
+privacy, bundled Smolify dropped). Those notes stay in
+[v0.0.278](v0.0.278.md).
+
+## Native app is an ACP client
+
+`apps/native` is a merjs desktop shell around Beautiful UI primitives.
+It used to proxy `graff serve` NDJSON. That needed a second process and
+still stacked a second "Thinking" spinner on the thinking chip.
+
+It now owns one `graff acp --yolo` child via Next.js `/api/acp`. Mid-turn
+`session/update` notifications map onto the same chips the screenshot
+already showed:
+
+| ACP `sessionUpdate` | primitive |
+| --- | --- |
+| `agent_thought_chunk` | `ThinkingState` |
+| `tool_call` / `tool_call_update` | `ToolChips` (+ edit diffs) |
+| `agent_message_chunk` | `StreamingText` |
+
+`graff serve` is not required. `session/cancel` sets Esc. A model change
+respawns the child. Approvals are off this path (`--yolo`); ACP has no
+`session/request_permission` yet.
+
+## `graff acp` streams mid-turn (ADR 0032)
+
+v0 ACP wrote one final `agent_message_chunk`. During `session/prompt`
+the agent now installs a translating writer on `root.out` / `g_out` so
+`--json` events become v1 session updates (thought, text, tool_call,
+tool_call_update). Stub turns that emit nothing still write the v0 final
+chunk. Zed stays on protocolVersion 1.
+
+## Run the app
+
+```sh
+zig build
+cd apps/native && npm install && npm run dev
+```
+
+The existing Tauri app in `gui/` is unchanged.
+
+## Tests
+
+Unit suite grows by the ACP translator cases (`kindFor`, thought/text
+chunks, minted tool ids, EventSink). Floor stays **1683** from the 278
+ratchet (slack 25).
diff --git a/src/cli.zig b/src/cli.zig
index c97bff95..133424b0 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.279
+ \\ • native Beautiful UI app speaks ACP: thinking and tool chips stream mid-turn (ADR 0032)
+ \\ • graff acp emits thought / tool_call / text session/update; graff serve is not required
+ \\
\\0.0.278
\\ • deleted composer screenshots are not sent: submit keeps [Image #N] / @[path] only (#634)
\\ • /image and /paste stay sticky; /image clear drops the whole queue