A few thousand internal users could not tell the Claude Docs team whether its service would survive launch traffic. To get real evidence, the team let Claude spend roughly two weeks before launch continuously breaking and repairing a staging copy of the service.

At a Glance

  • Claude Docs launched on September 16, 2026, and users had created more than 4.6 million docs by September 22. Across 2 billion requests the service returned only 60 server errors, and the team never rolled back.
  • One Claude Code session cycled through load tests, telemetry analysis, fixes, and staging deploys for two weeks, while a human signed off only on changes that were hard to undo.
  • So that Claude could trace every measurement back to the team’s own code, the service was written in Rust, with no garbage collector, and kept to a minimal set of dependencies.
  • Inference from late August to launch day cost roughly $125,000 at Claude Fable 5.2 API list prices as of November 2026. The author puts a similar two-week push for a small service at $3,000 to $10,000, but has not actually run one.

About the Original Post

Vivek Nair published this 9-minute post on November 17, 2026. Claude Docs is a shared editor where people and Claude sessions work in the same document, and the post covers how the backend underneath it was hardened for launch scale. It suits backend engineers who want to hand pre-launch load testing to an agent. Source: Using a “chaos loop” to harden the Claude Docs launch .

Inside the Chaos Loop

Three weeks before launch, Claude Docs was a proof of concept on a single node serving a few thousand Anthropic employees. The team expected millions of docs within days of launch, so on September 4 the author handed Claude a staging cluster that mirrored production. Claude pushed more than a million synthetic docs a day through it and broke core components on purpose. The author picked scenarios he considered paranoid, such as 10M new docs in one day, 22,000 live connections reconnecting at once, a hot doc with hundreds of viewers, a server killed while still loading a doc, and a stalled database.

The loop ran in one Claude Code session acting as a coordinator that delegated most work to sub-agents, typically about 11 at a time during the busiest week and 30 at peak. In each iteration the harness, a test rig that applies load and records results, drove one feature such as document creation to saturation. Claude then read telemetry through the Datadog MCP and came back with a few options and a recommendation. Because every database query reported its name along with rows scanned versus rows returned, Claude could find inefficient queries and rewrite them.

The figure below shows one iteration. Blue dots mark steps Claude handles, and orange dots mark steps a person handles.

One iteration of the chaos loop: harness adds load, Claude reads telemetry, proposes options, a person picks one, Claude writes the change, reviews it in a separate session, a person approves, and Claude deploys to staging, with the two invariants written in the center

Figure 1. The top row runs from Harness adds load to You pick one, and the bottom row continues from Writes the change through a review in a separate session, You approve, and Deploys to staging. The text in the middle states the two invariants. Source: Original post .

The figure shows a person deciding twice in every iteration, but the prose draws a line. Claude wrote and deployed easy-to-undo changes to staging on its own and reran the test, pausing only for decisions that would be hard to reverse, such as changes to the database schema, key layout, or how docs are stored and materialized. The author usually approved Claude’s recommendation in those cases. Claude also had two invariants to respect throughout testing: docs had to open almost instantly even with a long history, and any edit the server had acknowledged had to still be there when tests checked.

Making the Service Traceable for Claude

Borrowing an idea from a tutorial by his colleague Felix Rieseberg , the author argues for asking Claude for an outcome, such as a crash-free app, instead of one crash fix at a time. That only works if Claude can read symptoms and verify fixes by itself, so the Docs team did two things.

First, Claude filled gaps in the telemetry itself, adding instrumentation it judged missing on every iteration. A memory problem shows why that paid off. Early in the run, one large doc consumed about 3 GB on its pod. Claude first shrank a cache so docs would be evicted sooner, then reverted that change when the next run showed the memory actually lived in a separate cache inside a dependency. Finer-grained profiling eventually traced the growth to keystrokes: each one copied the doc into several data structures and added a few MB, so Claude switched those structures to copy-on-write. After about three days of iteration the doc peaked at roughly 180 MB, and the launch estimate dropped from more than 500 memory-optimized pods to about 50.

Second, the team picked its stack for measurability. A model improves step by step (hill-climbs) fastest when the signal it is chasing is clean, and the team worried that a garbage collector would muddy that signal, since memory and latency would rise and fall on the collector’s timetable. They chose Rust and a minimal dependency list, and for the few libraries they could not drop, they copied the source into the repo (vendoring) so it could be inspected and profiled like their own code.

Comparison of two technology paths: the top row goes from Rust and few dependencies to Claude finding the cause and fixes that are easy to check, while the dashed bottom row goes from garbage collection and third-party libraries to memory the team cannot account for and a noisier signal

Figure 2. The top row (What we chose) leads from Rust and few dependencies to fixes that are easy to check, while the dashed bottom row (What we avoided) leads from garbage collection and third-party libraries to a noisier signal. Source: Original post .

The author is careful to note that Anthropic has strong Go tooling as well and that the team never compared the two languages head to head, and the figure labels the avoided path “a bet, not a test.” He adds that Rust’s reputation as a hard language for humans to write matters far less now that Claude handles it comfortably.

Launch Results and Cost

The first million docs arrived in about 30 hours, and the team rolled production 629 times in September without a single rollback. Seven of the ten rehearsed scenarios actually hit production, but the fixes were already sitting behind runtime flags, so the usual response was to flip one. The author doubts this approach would have worked a few months earlier. Older models read telemetry through MCP without trouble, yet ten or twenty iterations into a long loop they lost track of the optimization target, which other Anthropic employees call goal drift. The internal research model used here, roughly comparable to Claude Fable 5.2, kept every invariant in view across many compactions, the summarization step that shrinks a long context, without any reminders.

The author guesses that work at this scale would have taken a team of engineers about six months a couple of years ago. He also burned many tokens just figuring out the process, and thinks that, knowing what he knows now, the roughly $125,000 in inference could have been about half. For a small service running on a couple of Kubernetes nodes and a Postgres instance, only about a third of the changes would still apply. After also removing his early mistakes, he puts a two-week push like this at $3,000 to $10,000 at the same list price, while noting that he has not actually run it, so the figure is only a rough sense.

Takeaways

The notes below are this blog’s own interpretation, not part of the original post.

  1. Drawing the human-approval line at reversibility transfers directly to data work. In a pipeline, schema, partition key, and storage format changes can stay with a person, while query rewrites that the next run can roll back go to the agent, with that boundary written down before the loop starts.

  2. Rows scanned versus rows returned, the numbers that let Claude spot inefficient queries here, are numbers data teams already watch. Agent systems could apply the same idea by logging latency and token counts for each tool call to narrow down causes.

  3. One of the two invariants was enforced by tests. For agent runs that last weeks, turning must-hold conditions into automated checks seems safer than leaving them in the prompt alone.

What to Try First

  • Check whether your staging query logs record each query’s name alongside rows scanned and rows returned.
  • Write down two or three invariants your service must never break, and confirm that each one has a test.
  • List the changes that are hard to undo, such as schema, key layout, and storage format, and add a rule to your agent instructions to stop and present options with a recommendation before making them.

Original post: Using a “chaos loop” to harden the Claude Docs launch: 60 server errors across billions of requests