graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Release v0.302.30
justrach22fae6fa1edf
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e2833c49..5bdaded7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,23 @@ 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.302.30++Releases are now tagged with three parts (`v0.302.N`). `graff update` treats v0.302.30 as newer than every v0.0.302.N.++### MCP servers++- Every configured MCP server now reports its state: ready, starts on first use, failed (with the server's own error), needs sign-in, off, or optional. `graff mcp status [--json]` reads it without starting anything, and `/mcp` shows the same rows inside a session. `/mcp` only suggests `/mcp trust` when consent is what's missing (#1606).+- `graff mcp reconnect <name>|--all` and `/mcp reconnect <name>` run a fresh handshake and refresh the server's cached tool list. A failed reconnect shows the server's last stderr line.+- `graff mcp enable|disable <name>` switch a server on or off without editing its config (kept in `~/.codegraff/mcp-state.json`). Entries their own file marks `"enabled": false` are no longer started.+- Fixed: servers that share a launcher command and differ only in `cwd` no longer advertise each other's tools; a server's `env` now adds to graff's environment instead of replacing it, so `npx` servers with an env var start; a transient start failure is retried once. The last failure is remembered until the server starts.+- `GRAFF_NO_BROWSER=1` makes `graff mcp login` print the sign-in URL instead of opening a browser.++### Anthropic++- `graff login anthropic` signs in with an Anthropic Console account through Anthropic's `ant` CLI, so requests bill to that account's API credits. graff reads the profile `ant auth login` writes, sends it as a Bearer token, and refreshes it through `ant`. An `ANTHROPIC_API_KEY` still wins (#1607).+- Claude Haiku 5.5 replaces Claude Haiku 4.5 in the catalog: 1M-token context, long-context pricing above 100k prompt tokens, adaptive thinking and effort (#1608).+## v0.0.302.29### Codegraff gatewaydiff --git a/docs/releases/v0.302.30.md b/docs/releases/v0.302.30.mdnew file mode 100644index 00000000..dd665923--- /dev/null+++ b/docs/releases/v0.302.30.md@@ -0,0 +1,43 @@+# Codegraff v0.302.30++MCP servers that say what's wrong and reconnect on request, sign-in with an+Anthropic Console account, and Claude Haiku 5.5.++Releases are now tagged with three parts (`v0.302.N`). `graff update` treats+this release as newer than every `v0.0.302.N`.++## MCP servers report their state and reconnect++When an MCP server didn't work, graff used to fold it into "not connected —+/mcp trust" and offer nothing but a new session. Now every configured server+has one status row: ready, starts on first use, failed (with the server's own+error), needs sign-in, off, or optional.++- `graff mcp status [--json]` reads the rows from config and cache without+ starting anything. `/mcp` shows the same rows inside a session.+- `graff mcp reconnect <name>|--all` and `/mcp reconnect <name>` run a fresh+ handshake and refresh the server's cached tool list. A failed reconnect+ shows the server's last stderr line.+- `graff mcp enable|disable <name>` switch a server on or off without+ editing its config.++Three bugs behind "it works after a reconnect" are fixed:++- Servers that share a launcher command and differ only in `cwd` no longer+ advertise each other's tools.+- A server's `env` now adds to graff's environment instead of replacing it,+ so `npx` servers with an env var start.+- Entries marked `"enabled": false` are no longer started.++## Sign in with an Anthropic Console account++`graff login anthropic` runs Anthropic's `ant auth login`. graff then reads+the profile it writes, sends it as a Bearer token, and refreshes it through+`ant`, so requests bill to that Console account's API credits. An+`ANTHROPIC_API_KEY` still takes precedence.++## Claude Haiku 5.5++Claude Haiku 5.5 replaces Claude Haiku 4.5 in the catalog. It has a 1M-token+context window, long-context pricing above 100k prompt tokens, and adaptive+thinking with effort levels.diff --git a/scripts/eval/tier1-manifest.json b/scripts/eval/tier1-manifest.jsonindex 3e5ae0e8..68bea22b 100644--- a/scripts/eval/tier1-manifest.json+++ b/scripts/eval/tier1-manifest.json@@ -14,7 +14,7 @@"src/main.zig","src/repl.zig"],- "test_count_baseline": 3201,+ "test_count_baseline": 3223,"test_count_slack": 25,"required_invariants": [{diff --git a/src/cli.zig b/src/cli.zigindex 67808f79..582f29f6 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -23,6 +23,11 @@ const update_target = @import("update_target.zig");pub const changelog_text =\\What's new\\──────────+ \\0.302.30+ \\ • graff mcp status / reconnect / enable / disable, and /mcp reconnect in a session+ \\ • graff login anthropic: use an Anthropic Console account+ \\ • Claude Haiku 5.5 replaces Haiku 4.5+ \\\\0.0.302.29\\ • streamed requests to the Codegraff gateway carry graff's version too\\