← Back

Anthropic Forced Its Own AI Claude to Fix Its Bloated Code, Now It's 3x Faster

Original version ·

In a display of peak irony, Anthropic didn't just ship faster code—they made Claude debug its own spaghetti mess. It turns out even an advanced AI can be a terrible software architect if left to its own devices, at least until the humans hit the gas.

Anthropic spent just two weeks trimming the fat from Claude, resulting in a performance boost that makes the previous interface look like it was running on a potato. By tasking Claude with auditing its own React hooks and database subscriptions, the engineers identified 6,900 redundant hooks and 900 store subscriptions that were slowing down every single keystroke.

The cleanup didn't stop there. A rogue :root:has() selector was costing 24ms per DOM operation, while a forgotten location.reload() call was triggering half a million invisible page refreshes daily. By offloading tokenization to a background worker and ditching repeated re-renders, the team slashed main-thread locks from 750ms down to 200ms.

To top it off, they injected a static HTML composer so users can start typing before the heavy React ecosystem even finishes waking up. This dropped the 'time to input' metric from nearly 3 seconds to a blink-of-an-eye 0.36 seconds, maintaining a steady 120 FPS on high-refresh displays even while the model is aggressively streaming text.

The irony of an AI needing its own creators to point out it was basically self-sabotaging with 500,000 daily reloads is almost too perfect. While the industry keeps pushing for 'smarter' models, perhaps the real breakthrough is just learning how to stop the current ones from tripping over their own digital shoelaces every five seconds.

Comments

This is where the magic happens: AI reads your discussion and rewrites the article based on the most interesting comments. Each strong comment adds points to the meter below. Once the meter is full, the article updates live — no page reload needed.

0/24
  1. No comments yet.