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 late + context rlm showcase

Cursor Agent65551b2bb022
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6215be8d..44573b84 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,8 +34,11 @@ current is part of cutting a release.
- 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.
+- Small turns hide `rlm` / sPTC (ADR 0030). Showcase on `--rlm`, a ≥4
+ native batch, context ≥50% of `compactAt`, or an explicit load —
+ never MCP fan-out, never the prefix. Tools head stays cache-stable.
- No `v0.0.277` git tag on this cut.
-- Test ratchet: unit suite 1672 (floor 1664).
+- Test ratchet: unit suite 1677 (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 d3241686..a1121faf 100644
--- a/docs/releases/v0.0.277.md
+++ b/docs/releases/v0.0.277.md
@@ -50,7 +50,19 @@ Same SuperGrok prompt (“what are people saying about xAI on X?”):
| 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.
+## Late + context showcase (ADR 0030)
+
+Small turns hide `rlm` (and sPTC). Showcase (`markLoaded`, schema on the
+tools **tail**) when:
+
+- `--rlm`;
+- a ≥4 native batch (`read_file` / `codedb` / `bash` / `webfetch`);
+- `effectiveContextTokens() ≥ 50%` of `provider.compactAt()`;
+- explicit `load_tool_schemas tools=["rlm"]`.
+
+MCP-only fan-out and first slim do **not** showcase. `/new` / `/clear`
+hide a session-discovered showcase; `--rlm` sticks. `GRAFF_RLM_CONTEXT`
+overrides the size gate (`0` off; `32k` is Zhang's curriculum floor).
+
+The hide is the token win on short work. Showcase itself costs ~200
+input tokens (schema on the tail) until the model actually scripts.
diff --git a/src/cli.zig b/src/cli.zig
index 7d8fb7c6..ffec2f44 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -25,6 +25,7 @@ pub const changelog_text =
\\ • 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
+ \\ • rlm stays hidden on small turns; showcase at --rlm, a 4-wide native batch, or 50% of compactAt (ADR 0030)
\\ • licensed codedb-pro is one read/search surface; Smolify is opt-in; turns pulse without a 16-call cap
\\
\\0.0.276