Skip to content

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

Python

docs: 279 continuation extras for registry, yxlyx, embed

Cursor Agentdc13a46e255a
diff --git a/README.md b/README.md
index d63a5735..620c3027 100644
--- a/README.md
+++ b/README.md
@@ -278,7 +278,10 @@ First things to try once you're at the `›` prompt:
`graff acp` speaks the Agent Client Protocol, so Zed can drive it as an
External Agent. The same spawn is the hosted-agent recipe — see
-[Embedding graff](docs/embedding.md). Register it in `~/.config/zed/settings.json`:
+[Embedding graff](docs/embedding.md). There is no "Install from Registry"
+row yet; the submit recipe and the auth blocker are
+[ACP Registry](docs/acp-registry.md) (#613). Until that lands, register it
+in `~/.config/zed/settings.json`:
```json
{
diff --git a/docs/acp-registry.md b/docs/acp-registry.md
new file mode 100644
index 00000000..76c1a2b8
--- /dev/null
+++ b/docs/acp-registry.md
@@ -0,0 +1,131 @@
+# ACP Registry listing (#613)
+
+Listing is **not a feature of this repo**. The catalog lives in
+[`agentclientprotocol/registry`](https://github.com/agentclientprotocol/registry)
+and is what Zed's "Install from Registry" (and other ACP clients) reads.
+
+This page is the submit recipe. There is no registry client in graff, and
+`graff acp` does not grow one.
+
+Hand-written Zed setup stays in the [README](../README.md#zed-external-agents--acp)
+and the host recipe stays [embedding.md](embedding.md). Replace those with
+"Install from Registry" only after a listing lands.
+
+## What already ships here
+
+| Piece | Status |
+| --- | --- |
+| `graff acp` stdio agent | Shipped. Protocol version 1. |
+| Mid-turn `session/update` (thought / tool / text) | Shipped (ADR [0032](adr/0032-acp-streams-mid-turn.md), #612). |
+| Provider login | `graff login` / keychain / env keys. Not ACP `authenticate`. |
+| `initialize.authMethods` | **Missing.** Registry CI requires at least one method with `type: "agent"` or `type: "terminal"`. |
+| `session/load`, `session/request_permission` | Not implemented. Unattended + `--yolo` is the host path. |
+
+A stale comment on #613 said #612 was still open. It is not: streaming is on
+the tagged v0.0.279 cut. The remaining blocker for a listing is protocol auth.
+
+## Registry auth (the actual blocker)
+
+The registry's [AUTHENTICATION.md](https://github.com/agentclientprotocol/registry/blob/main/AUTHENTICATION.md)
+accepts only:
+
+- **Agent Auth** — the agent runs OAuth (local callback server + browser).
+- **Terminal Auth** — the client re-spawns the binary with setup args (a TUI
+ login), then runs the normal ACP command.
+
+`graff login` is already Terminal Auth in product terms. Listing still fails
+until `initialize` advertises it, for example:
+
+```json
+{
+ "authMethods": [
+ {
+ "id": "graff-login",
+ "name": "graff login",
+ "description": "Interactive terminal login (codegraff / Codex / Kimi)",
+ "type": "terminal",
+ "args": ["login"]
+ }
+ ]
+}
+```
+
+Do not invent Agent Auth that duplicates `graff login`. Do not add env-var
+auth to satisfy the registry — it is not one of the two accepted types.
+
+CI on the registry repo runs
+`python3 .github/workflows/verify_agents.py --auth-check` and rejects an
+agent whose `initialize` omits `authMethods`.
+
+## Submit recipe (other repo)
+
+1. Fork `agentclientprotocol/registry`.
+2. Add a directory whose name equals `id` (suggested: `graff/`).
+3. Put `agent.json` (schema: [agent.schema.json](https://github.com/agentclientprotocol/registry/blob/main/agent.schema.json))
+ and a **16×16 monochrome** `icon.svg` that uses only `currentColor` /
+ `none` / `inherit` fills. Hardcoded colors fail CI.
+4. Open a PR there. Versions must be pinned (no `/latest/`, no `@latest`).
+ GitHub Releases + a `repository` URL let the registry bump the tag hourly.
+
+Draft `agent.json` for the next cut that advertises Terminal Auth (URLs and
+sha256 must match a real release; do not submit against `/latest/`):
+
+```json
+{
+ "id": "graff",
+ "name": "graff",
+ "version": "0.0.279",
+ "description": "Codegraff harness as an ACP agent (graff acp)",
+ "repository": "https://github.com/justrach/codegraff",
+ "website": "https://codegraff.com",
+ "authors": ["Rach Pradhan"],
+ "license": "AGPL-3.0-only",
+ "distribution": {
+ "binary": {
+ "darwin-aarch64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-aarch64-macos.tar.gz",
+ "cmd": "./graff",
+ "args": ["acp"]
+ },
+ "darwin-x86_64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-x86_64-macos.tar.gz",
+ "cmd": "./graff",
+ "args": ["acp"]
+ },
+ "linux-aarch64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-aarch64-linux.tar.gz",
+ "cmd": "./graff",
+ "args": ["acp"]
+ },
+ "linux-x86_64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-x86_64-linux.tar.gz",
+ "cmd": "./graff",
+ "args": ["acp"]
+ },
+ "windows-aarch64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-aarch64-windows.tar.gz",
+ "cmd": "./graff.exe",
+ "args": ["acp"]
+ },
+ "windows-x86_64": {
+ "archive": "https://github.com/justrach/codegraff/releases/download/v0.0.279/graff-x86_64-windows.tar.gz",
+ "cmd": "./graff.exe",
+ "args": ["acp"]
+ }
+ }
+ }
+}
+```
+
+Pin `sha256` from that release's `SHA256SUMS` before the PR. Archive layout
+is sometimes flat (`graff` at the tarball root) and sometimes nested
+(`graff-<target>/graff`); `cmd` must match what the installer extracts.
+
+Until `authMethods` is on the wire, this draft is documentation, not a
+submission.
+
+## Not this repo
+
+- No `graff registry` command.
+- No fetch of `cdn.agentclientprotocol.com`.
+- No change to `src/acp.zig` on this continuation cut for listing.
diff --git a/docs/embedding.md b/docs/embedding.md
index fe4e5fea..e904b9df 100644
--- a/docs/embedding.md
+++ b/docs/embedding.md
@@ -129,6 +129,11 @@ graff acp --yolo --no-local-tools --model gpt-5.5
graff --json --no-local-tools --model gpt-5.5
```
+The same `graff acp` spawn is what a registry listing would run
+(`args: ["acp"]`). Listing itself is the other-repo recipe in
+[acp-registry.md](acp-registry.md) (#613); this page does not grow a
+registry client.
+
## License
codegraff is **Modified AGPLv3** ([`LICENSE`](../LICENSE)): a hosted or SaaS
@@ -137,5 +142,6 @@ written permission.
## Not this
-No `libgraff`, no WASM module, no Node addon, no in-process Zig. Those would
-be a different product. This page is the host recipe that already exists.
+No `libgraff`, no WASM module (`fx-core.wasm` included), no Node addon, no
+in-process Zig. Those would be a different product. The 279 continuation
+does not start them. This page is the host recipe that already exists.
diff --git a/docs/releases/v0.0.279-continuation.md b/docs/releases/v0.0.279-continuation.md
index 8df2dbc7..f55eec9b 100644
--- a/docs/releases/v0.0.279-continuation.md
+++ b/docs/releases/v0.0.279-continuation.md
@@ -2,10 +2,11 @@
The tagged cut is `v0.0.279` on `main` (`70a5228`). Further work on
`release/v0.0.279` stays **off main** until you ask to cut again.
+This branch is **not** a retag and is **not** merged back.
| Item | Status on this branch |
| --- | --- |
-| #629 experiment worktree pool | First slice compiling: `--experiment N`, `/experiment [N\|off\|status]`, children `claim()` a seat and set `agent_cwd` before `git worktree add` (ADR 0037). Mint/reuse of real trees and forced fan-out are still open. |
-| #613 ACP Registry | Listing lives in [agentclientprotocol/registry](https://github.com/agentclientprotocol/registry), not this repo. Not started. |
-| yxlyx doctor / cube / governed / localhost | Still open (#321 / #306 / #283 / #220–217 / #199 / #106). Not started. |
-| WASM / libgraff / in-process embed | Host recipe stays subprocess (`docs/embedding.md`). No `fx-core.wasm`. Not started. |
+| #629 experiment worktree pool | **Started.** `--experiment N`, `/experiment [N\|off\|status]`, children `claim()` a seat and set `agent_cwd` before `git worktree add` (ADR 0037). `/help` and `graff --help` list it. Mint/reuse of real trees, forced fan-out, and deliver-back are still open — do not close #629 yet. |
+| #613 ACP Registry | **Docs only.** Submit recipe in [acp-registry.md](../acp-registry.md). Listing + auth check live in `agentclientprotocol/registry`. #612 streaming already shipped. Blocker: `initialize` has no `authMethods`. No registry client here. |
+| yxlyx doctor / cube / governed / localhost | **Inventory.** [yxlyx-leftovers.md](../yxlyx-leftovers.md). `/doctor` goal/todo slice and `--max-model-calls` already exist. Lease/job/listener doctor, idle localhost supervisor, cube NDJSON ingress, protected verifiers, review-cycle caps: parked. No new product mode. |
+| WASM / libgraff / in-process embed | **Parked.** Host recipe stays subprocess (`graff acp`, `@codegraff/sdk`) — [embedding.md](../embedding.md). No `fx-core.wasm`, no `libgraff`. |
diff --git a/docs/yxlyx-leftovers.md b/docs/yxlyx-leftovers.md
new file mode 100644
index 00000000..dc5b6714
--- /dev/null
+++ b/docs/yxlyx-leftovers.md
@@ -0,0 +1,22 @@
+# yxlyx leftovers (279 continuation)
+
+What still exists in this repo versus what is parked. No new product mode.
+
+| Issue | In this repo today | This cut |
+| --- | --- | --- |
+| [#321](https://github.com/justrach/codegraff/issues/321) `/doctor` | Goal/todo slice shipped: `/doctor` in `src/doctor.zig` + `commands_misc` dispatch. Checks: `GOAL_STATE`, `GOAL_TODO_EPOCH_MISMATCH`, `STALE_GOAL`, `TODO_EPOCH_ABOVE_GOAL`, `COMPLETION_GATE_ARMED`. Read-only; JSON via `toJson`. | Landed earlier. **Parked:** session-lease, owned-job, listener, and aggregate-budget findings (`DUPLICATE_WORKTREE_OWNER`, `STALE_SESSION_LEASE`, `ORPHANED_OWNED_JOB`, …). Those need a durable job/session registry `doctor.zig` refuses to fake. |
+| [#217](https://github.com/justrach/codegraff/issues/217) governed run budget | `src/run_budget.zig`: invocation-wide `--max-model-calls` (default unlimited), concurrency 8, depth 1. Charged across root / children / title / judges / compaction. Exhaustion is a structured stop, not a model plea. `--max-tool-calls` is still root-only. | Partial. **Parked:** finite defaults for `/goal`/`/loop`, wall-time, token, and USD ceilings, descendant tool accounting, slash widening-with-approval. |
+| [#220](https://github.com/justrach/codegraff/issues/220) protected verifiers | `--eval` / `--until` scores a command the agent can invoke. ADR [0008](adr/0008-synthetic-evals-use-external-verifiers.md) is the eval-suite rule, not a `/goal` acceptance contract. | **Parked.** Independent verifier stages and hidden tests are a new controller, not a docs tweak. |
+| [#306](https://github.com/justrach/codegraff/issues/306) review runaway | Same budget knobs as #217. `/review` is one isolated pass (catalog). No review-specific cycle cap or "confirm before implementing" gate. | **Parked** on the #217 remainder. |
+| [#283](https://github.com/justrach/codegraff/issues/283) cube NDJSON buffer | `graff serve` already emits NDJSON as events happen. The failure is Daytona preview buffering the response and iOS `URLSession` idling out. `graff cube` / `src/cube.zig` is the sandbox+serve CLI. | **Parked** (ingress + iOS client). Not a new harness mode. |
+| [#199](https://github.com/justrach/codegraff/issues/199) idle localhost servers | No `graff processes` / idle supervisor. Jobs exist for tool-started bash; they do not pause forgotten `next dev` trees. PR #200 is still open. | **Parked.** Do not start a process-supervisor product on this branch. |
+| [#106](https://github.com/justrach/codegraff/issues/106) representative Ultracode sims | Unit suite + `TUI/sim.zig` Term + tier-2 harness cases. Not a multi-turn human Ultracode drama. | **Parked** (eval/tier-2 work, not 279 continuation). |
+
+#218 / #219 (siblings under #216 governed runs) follow #217/#220: do not open a second budget product here.
+
+## Cheap truth
+
+The only leftover that already lives as product in this repo is `/doctor`'s
+goal/todo report and the optional `--max-model-calls` envelope. Everything
+else is either another surface (Daytona, iOS, registry) or a new mode
+(idle-server supervisor, protected verifier, review cycle cap).