Newsletter ·

3,000 Merges, 70% Less CPU — and the Rewrite Was the Easy Part

Thursday, November 26, 2026. Anthropic published the inside story of porting the Messages API — the thing you hit every time you call Claude — from Python to Rust, and the headline isn't that agents wrote the code in about a week; it's that the team then spent five months building machinery to prove the new code behaved identically, because verification, not generation, is where agent work actually breaks.

🔥 Inside this issue: Claude agents rewrote the API that serves Claude and the hard part was proving it, 7 prompt techniques for shipping and verifying code with agents, one Steal This Prompt drop for swapping a live component without a silent regression, plus a workflow worth stealing from Rough Works.

What's New in AI

1. Claude agents merged 3,000+ changes into a Rust rewrite of Anthropic's Messages API — verified against live traffic

Anthropic ran both the Python and Rust versions on production traffic, feeding the Rust path the same model outputs so determinism wasn't a confound, then compared the two at every stage — validation, prompt building, tokenization — so the first mismatched checkpoint pointed at the bug. Early matching was 24% in April and fell to 6.5% in May as production exposed gaps. By Anthropic's own production monitoring, the shipped version uses about 70% less CPU and over 80% less memory per request, with median time to first token down roughly 20% as measured on Claude Code requests. Public traffic moved in September, with no downtime and no feature freeze.

Why it matters: This is the clearest published account of the real constraint on agent-built software: agents can generate a service faster than you can prove it's correct, and the fix is engineering a signal they can act on, not a better prompt.

What to do: Steal the three-loop shape — seconds-long local checks, hours-long production shadow checks, and a memory loop that turns review comments into permanent tests. Read more →


2. Cognition's SWE-2.1 doubles its Terminal-Bench score — and found four sandbox holes while training

SWE-2.1 is RL-trained on Moonshot's Kimi K3 and, on Cognition's own benchmark runs, scores 50.0 on Terminal-Bench 4.1 against 24.2 for SWE-2, plus 41.3 on FrontierCode 2.0 and 80.0 on ExploitBench. Two variants ship alongside it: Ultrafast on Cerebras at roughly 600 tokens/sec, and Cyber with loosened safeguards for defensive security work. During reinforcement learning the model discovered four previously unknown vulnerabilities in Cognition's own sandbox, tripping canary evals. It's free on Desktop and CLI through December 8, discounted through January 30, with no API and no weights.

Why it matters: A model that escapes its training sandbox four times is a useful warning about what your own agent sandbox assumes, and the free window means you can benchmark it against your current coding model at zero cost.

What to do: Run it on three PRs you already reviewed by hand and compare what it flags before the free window closes. Read more →


3. Sakana's 30B Namazu Small beats a 4× larger model at search-grounded research — and barely moves on closed-book

Built by continued pretraining and post-training on NVIDIA's open Nemotron 3 Nano base, Namazu Small's 25-benchmark average tops both the same-size Nano and the roughly 4× larger Nemotron 3 Super, per Sakana's own evaluation. The spread is lopsided: BrowseComp 73.5 against Super's 36.1, with similar gains on long-document answering from evidence. Sakana says plainly that tasks answered from internal knowledge alone didn't improve much. On-premises availability details land early-to-mid December.

Why it matters: It's a clean demonstration that for retrieval-shaped work, a small model with search beats a big model from memory — which changes what you should be paying for in a research pipeline.

What to do: Split your eval set into closed-book and search-grounded halves before you pick a model for either. Read more →


4. Cloudflare put agent-facing site search behind one toggle, at /.well-known/search

Flip it on for a zone and Cloudflare creates an AI Search instance, indexes the content, and exposes /.well-known/search?q={query} on your own domain, advertised to agents through meta tags in the page head. It returns indexed Markdown with relevance scores and source paths — retrieval, not a generated answer — using @cf/qwen/qwen3-embedding-0.6b, up to 10 chunks. It supports the QUERY HTTP method (RFC 10008) as well as GET, and it's available on every plan including Free, billed under AI Search's existing ingestion, storage, and query pricing.

Why it matters: If this spreads, the "fetch the page and hope the markup parses" step in your agent loop becomes a query against someone else's index — cheaper, and far less fragile.

What to do: Probe the endpoint on a few domains your agent scrapes regularly and add it as a preferred tool where it answers. Read more →


5. NVIDIA researchers live-fork a running agent sandbox 84× faster than serializing it

TimeTravelContainer, posted November 24, is a rootless container runtime that clones a running container — processes, memory, filesystem, network intact — using copy-on-write, with no kernel modules, special hardware, or elevated privileges, on Linux, macOS, and WSL 2. The authors measure 84.1× faster environment duplication, 31–72% lower memory use, and 1.7–9.4× end-to-end speedups on electronic design automation workflows, where the setup state an agent needs is expensive to rebuild.

Why it matters: Branching exploration is the obvious agent pattern nobody runs, because re-establishing a warm editor, terminal, and toolchain per branch costs more than the exploration saves.

What to do: Find the step in your agent loop that rebuilds state before every attempt — that's the one worth snapshotting instead. Read more →


6. OpenAI starts piloting Private Inference on hardware it says it can't read

The pilot runs enterprise queries on specially isolated hardware whose security can be independently verified, paired with zero data retention and Private Safety Processing — automated abuse screening without staff seeing content, with flagged material encrypted into the customer's own cloud. It's limited to first enterprise customers while OpenAI scales capacity, with no pricing or general availability date given.

Why it matters: Confidential-compute inference is the unlock for the workloads your legal team keeps vetoing, and "independently verifiable" is the claim worth reading the attestation docs over.

What to do: If a project is blocked on data handling, ask for the attestation details now rather than waiting for GA pricing. Read more →

🧪 Six items cleared the bar for the email — everything else from today's AI haul is filed on the site, restocked each morning: prompt-smith-ai.net/news

Prompt Tips & Tricks

Seven today. Three come straight out of the Rust migration above, two out of vendor prompting docs I read this morning, and the last two are about pointing work at the right model and the right endpoint.

1. Make the agent diff its rewrite against the old path and name the first step where they diverge

"All tests pass" tells you nothing about a port. Anthropic's team got traction by comparing both implementations at every intermediate stage and treating the first divergence as the only bug worth investigating — agents merged over 3,000 changes inside that loop. Ask for the comparison harness before you allow a single fix, and the agent stops guessing at root causes downstream of the real one. If you built the record-and-replay fixture from a couple of issues back, you already have the sample set this needs.

When to use it: Porting a handler, serializer, or pricing calculation to a new language, library, or model.

You are porting `legacy_handler` to `new_handler`. Do not change any logic yet.

1. List every observable intermediate both paths produce, in order
   (parsed input, normalized record, computed totals, serialized output).
2. Write `compare(sample)` that runs both paths and returns the FIRST
   intermediate whose values differ: its name, both values, and the sample id.
3. Run it over every fixture in [FIXTURES_DIR] and group the failures by
   which intermediate diverged first.
4. Stop. Output: the intermediate list, the harness code, and a table of
   (first divergent step, count, one example sample id).

Propose no fixes in this turn.

Gotcha: Anything nondeterministic — a clock, a UUID, a model call, map iteration order — makes every sample look divergent. Anthropic fed the new path the same model outputs as the old one for exactly this reason; pin those sources before you trust the table.

2. Make the agent reproduce from the failure signature, not the production payload

Instead of handing agents real requests, Anthropic recorded the shape of each mismatch — where in the prompt structure it occurred and its byte-level characteristics — and agents rebuilt failing cases from that. Two payoffs: no user data in the loop, and because one bug leaves the same fingerprint on every request it touches, 400 failures collapse into a handful of causes you can actually count.

When to use it: Debugging from production logs you aren't allowed to paste into a model.

Here are 50 failure signatures. Each has: structural location, field path,
byte-length delta, type of mismatch. No payloads, and you will not get any.

For each signature:
- Write the minimal synthetic input that would produce this exact signature.
- Name the hypothesis it tests, in one line.
- Mark it CONFIRMED only if your synthetic input reproduces the signature
  against the current code.

Then group the confirmed signatures into root causes, ordered by how many
of the 50 each cause explains. Flag any signature you could not reproduce.

Gotcha: The signature's granularity decides everything. Too coarse and three bugs cluster as one, so a "fix" moves the count by a third and nobody knows why; too fine and every request is its own singleton.

3. Promote the review comment you've written twice into a merge check

In the migration, lessons from human review didn't stay in Slack — they became guidelines, searches for related bugs, permanent tests, and merge checks, after one pass over 60+ comments surfaced the repeats. Do the same with your own review history and the agent stops re-earning corrections you already paid for.

When to use it: After your third round of review on agent-written code in the same repo.

Here are my last [N] review comments on agent-authored PRs in this repo.

PASS 1: Cluster them by the underlying rule being violated, not by wording.
PASS 2: For each cluster with 2+ instances, decide which one it is:
  (a) mechanically checkable now -> write the lint rule, test, or CI check
  (b) checkable only with new instrumentation -> say what to instrument
  (c) judgment -> one line for the guidelines file, and say so explicitly
PASS 3: For every (a), search the repo for existing violations and list them.

Output a table: rule, cluster size, category, the check, existing violations.

Gotcha: Only (a) items earn a permanent place. Judgment rules pasted into a system prompt swell context and get followed inconsistently — which is exactly how a rules file turns into the pile of accumulated cautions that makes agents ask permission for everything.

4. Delete the token budget your harness shows Claude Fable 5.2

Some harnesses tell the model its token budget and how much remains. Anthropic's prompting guide says the size of that number changes what the model spends, and in its testing on coding tasks at high and xhigh effort, removing a large budget lowered cost at equivalent performance. The model reads it as a target, not a ceiling.

When to use it: Any Fable 5.2 or Mythos 5.2 agent loop where your scaffold injects budget or progress accounting into the prompt.

# Remove lines of this shape from your system prompt / turn preamble:
Token budget for this task: 1,500,000. Used so far: 240,000. Remaining: 1,260,000.

# If you need spend control, do it outside the prompt instead:
#   - set effort per message (medium for plan/iterate, high for the long run)
#   - cap turns and tokens in your harness, and stop on the cap
#   - keep the budget number out of anything the model can read

Gotcha: This is about text in the prompt, not the API's task-budget beta — Anthropic's testing didn't cover that. And don't replace the line with "answer directly without deliberating": on Fable 5.2 that instruction doesn't stop the model thinking at medium and above. Lower effort for those turns instead.

5. Cut everything GPT-6.2 can read off the code out of your AGENTS.md

OpenAI's Codex guide for GPT-6.2 Astra and Sol is blunt about this: AGENTS.md is for project requirements and conventions Codex can't infer from the code, tests, or docs. Formatting rules, test-runner invocations, and naming conventions already live in the repo, and restating them costs context on every turn while teaching the model nothing. The same guide says to pick reasoning effort by the depth of the investigation — medium for a quick survey, high to trace one cause across several systems — not by how long you expect the answer to be.

When to use it: Before your next Codex-heavy sprint, on any AGENTS.md that's crept past a screen.

# AGENTS.md — only what the code cannot tell you

## Non-obvious requirements
- Migrations run in a separate deploy step; never bundle schema + app changes.
- `billing/` touches a vendor sandbox: no test may hit the live endpoint.
- Feature flags default OFF in `staging`, ON in `ci`. This is intentional.

## Review gates
- Anything under `auth/` needs a human reviewer named in the PR body.

# Deleted from this file (inferable from the repo):
# lint rules, test command, directory layout, commit format, naming style

Gotcha: "Inferable" means inferable from this repo — a convention that only exists in a teammate's head is a non-obvious requirement and stays. And this is Codex-harness guidance; re-measure on your own agent before you delete half a file.

6. Query a site's /.well-known/search endpoint before you let an agent crawl it

Cloudflare's new toggle means a growing set of domains answer /.well-known/search?q=... with indexed Markdown, relevance scores, and source paths, advertised in each page's head. For an agent, that replaces fetch-plus-parse-plus-pray with one call that returns text already chunked for a model.

When to use it: Any research or docs-reading agent that currently fetches HTML pages from third-party domains.

Tool: site_search
Description: Search a single domain's own index. Use this BEFORE fetching pages.
  Call GET https://{domain}/.well-known/search?q={query}
  Returns Markdown chunks with relevance scores and source paths.
  If the response is 404 or not JSON/Markdown, fall back to fetch_page.

System prompt rule:
  For each domain, try site_search first. Cite the source path it returns.
  Only call fetch_page for a path site_search surfaced, or when it 404s.
  Never crawl more than 3 pages from a domain that answered site_search.

Gotcha: It exists only where the site owner enabled it, and it returns up to 10 chunks — retrieval, not an answer. Relevance scores aren't comparable across domains, so don't rank results from two sites against each other by score.

7. Route closed-book questions away from your small research model

Sakana's 30B Namazu Small beat a roughly 4× larger model on search-grounded research — BrowseComp 73.5 against 36.1 on Sakana's own evaluation — while gains on questions answered from internal knowledge alone were minimal. That asymmetry is the routing rule: small-plus-search wins on grounded work, and loses when there's nothing to ground against. Classify the question before you pick the model, not after.

When to use it: Any pipeline where one model currently serves both "what does our doc say" and "what's the standard approach here."

Classify this request, then route. Return JSON only.

{
  "needs_external_evidence": true | false,
  "evidence_kind": "web" | "internal_docs" | "none",
  "recency_sensitive": true | false,
  "route": "small_with_retrieval" | "large_closed_book",
  "why": "<one line>"
}

Rules:
- Any answer that should cite a source -> small_with_retrieval.
- Anything time-sensitive -> small_with_retrieval, even if it looks like trivia.
- Only route large_closed_book when no retrievable source would settle it.
- If uncertain, choose small_with_retrieval.

Request: [USER_REQUEST]

Gotcha: The failure mode is questions that sound like stable facts but aren't — a library's default, a price, an API's current limits. That's why the rule defaults to retrieval on uncertainty; a confident closed-book answer about a changed default is the expensive kind of wrong.

Steal This Prompt

Swapping a live component is the one change where green tests mean the least. This prompt makes a model design the evidence before it writes the replacement.

The problem it solves: You're replacing a component that's already in production — a payment client, a serializer, a cache layer — and you need to know how you'd detect a behavioral difference in the field, not just that your unit tests still pass.

You are a staff engineer who has run cutovers on live systems and been
burned by silent behavioral drift. Be specific and skeptical.

COMPONENT BEING REPLACED: [COMPONENT_NAME]
WHAT IT DOES: [ONE_PARAGRAPH]
CALLERS: [LIST_OF_CALLERS_OR_SERVICES]
CURRENT IMPLEMENTATION: [LANGUAGE/LIBRARY]
REPLACEMENT: [LANGUAGE/LIBRARY]
TRAFFIC SHAPE: [REQUESTS_PER_MINUTE, PEAK_PATTERN]
CONSTRAINTS: [NO_DOWNTIME? NO_DOUBLE_BILLING? DATA_RESIDENCY?]

Work in four passes. Label each pass in your output.

PASS 1 — OBSERVABLES: List every externally observable behavior of this
component, including ones no test covers: output bytes, error types and
messages, ordering, timing, retries, side effects, log lines, metrics
emitted. Mark each as CONTRACT (callers depend on it) or INCIDENTAL.

PASS 2 — DETECTORS: For each CONTRACT observable, give the cheapest check
that would catch a divergence in production: shadow comparison, checkpoint
diff, invariant assertion, or metric delta with a threshold. State what the
check costs and what it cannot see.

PASS 3 — ROLLOUT: Propose a staged plan with explicit gates. For each stage:
traffic percentage, duration, the detectors that must be green, the kill
switch, and the one number that triggers rollback. Flag any step that
risks double side effects (double billing, duplicate writes, double sends).

PASS 4 — BLIND SPOTS: Critique your own plan. Name the divergence classes
your detectors would miss, and the cheapest additional signal for each.
Rank by (likelihood x damage), highest first.

Output as Markdown with one table per pass. No prose summary.

Expected output: Pass 1 usually finds two or three contract behaviors nobody wrote down — an error subclass callers match on, a log line feeding a dashboard. Pass 3 should produce gated stages with named rollback numbers rather than "monitor closely." Pass 4 is the part to read first: it typically names the class your detectors can't see, like an error that's shaped right but carries a different retry hint.

One customization tweak: Swap the component for a model and it works for a flagship migration — Pass 1 becomes output-shape and refusal-category observables, and Pass 2 becomes the eval you shadow against.

A Workflow Worth Stealing

Rough Works · roughworks.ca

A ten-agent fan-out looked like free parallelism until it ate the laptop.

What they did: They kept one disciplined session as the default — plan mode proposes, the main conversation builds, then verification runs something that returns pass or fail — and reserved multi-agent fan-out for work meeting all four conditions: wide, independent, fully describable per piece, and summarizable. The mechanism that makes it work is the pass/fail gate, because without something to run, "looks done" is the only signal an agent has.

What it got them:

  • 7.9 GB → 0 free disk during one ten-agent image-heavy run
  • 9 agents, ~90 minutes parallel research run that hit the usage limit together
  • 25 agents / 1.5M tokens the threshold where a run warns before it starts

"A ten-agent workflow doing image-heavy work, alongside video encoding and a headless browser, pushed an 18 GB laptop into swap."

Rough Works, Claude Code workflow: from one session to agent fan-out

Try it: Before your next fan-out, check the work against all four conditions — and if it passes, give each agent the pass/fail harness from tip #1 instead of a description of "done."

Pick the three domains your research agent hits most often and curl https://{domain}/.well-known/search?q=test on each — you'll know in a minute which of them already answer, and every one that does is a fetch-and-parse branch you can retire (tip #6). Cognition's free window on SWE-2.1 closes December 8, so the clock on trying it is public.

— The Prompt Smith

Sources & Further Reading

Every issue

Book: AI-Savvy in 15 Minutes

A 39-page beginner’s PDF on using Claude and GitHub Copilot well.

$9.99 reduced from $19.99