Skip to content

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

Python

docs(release): v0.0.277 notes for hosted x_search

Cursor Agent057ffeb10af1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82ede892..6215be8d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,8 +31,11 @@ current is part of cutting a release.
(#624/#625).
- Smolify / deepwiki / mobbin stay out of the default catalog unless opted
in (`GRAFF_SMOLIFY`) (#628).
+- xAI Responses splices hosted `x_search` onto tools turns (ADR 0031).
+ Not a catalog tool. `GRAFF_XAI_X_SEARCH=0` opts out. Same-prompt
+ SuperGrok A/B vs scrape: 101s / 7 calls / 64k in → 37s / 1 call / 28k.
- No `v0.0.277` git tag on this cut.
-- Test ratchet: unit suite 1664.
+- Test ratchet: unit suite 1672 (floor 1664).
## v0.0.276 (2026-08-25)
diff --git a/docs/releases/v0.0.277.md b/docs/releases/v0.0.277.md
index 4a357a58..d3241686 100644
--- a/docs/releases/v0.0.277.md
+++ b/docs/releases/v0.0.277.md
@@ -34,3 +34,23 @@ L is N after muscle memory has been written. Both dominate H/I/J. Lean
default `-p` (variant R) is a different catalog and is not on this front.
See ADR 0029.
+
+## Hosted x_search (xAI Responses)
+
+grok-4.6 already runs `{"type":"x_search"}` server-side. This cut splices
+that hosted tool onto xAI Responses **tools** turns (ADR 0031). It is not
+a catalog function and not on the prefix. Chat completions and Codex
+never get it. `GRAFF_XAI_X_SEARCH=0` opts out.
+
+Same SuperGrok prompt (“what are people saying about xAI on X?”):
+
+| | scrape (`GRAFF_XAI_X_SEARCH=0`) | hosted `x_search` |
+|---|---:|---:|
+| wall | 101s | **37s** |
+| calls | 7 | **1** |
+| input tokens | 64k | **28k** |
+
+RLM is **not** flipped on by context size. Lean `-p` already advertises
+`rlm` on the catalog; REPL folds it behind `load_tool_schemas`. A load
+appends the schema to the tools **tail** (ADR 0011), so the cached prefix
+stays. sPTC only runs after an `rlm` script streams.
diff --git a/src/cli.zig b/src/cli.zig
index bd8be6c8..7d8fb7c6 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -24,6 +24,7 @@ pub const changelog_text =
\\0.0.277
\\ • MCP-inside-rlm + learnt slim: fat MCP results drop to id/title; comments fold to n+latest_author (ADR 0029)
\\ • L (warm slim, --no-lean) 14.8s/31k/5 vs H 28s/112k/7 on SuperGrok grok-4.6; no v0.0.277 tag
+ \\ • xAI Responses hosts x_search on grok-4.6 tools turns (ADR 0031); GRAFF_XAI_X_SEARCH=0 opts out
\\ • licensed codedb-pro is one read/search surface; Smolify is opt-in; turns pulse without a 16-call cap
\\
\\0.0.276