Development & Automation

Claude Code CLI Cuts p99 CPU Usage in Half.

Anthropic says it cut Claude Code CLI's p99 CPU usage by 2x. The cause was a Bun garbage collector timing bug, and the exact version that ships the fix isn't in the official changelog yet.

· Huuush

Claude Code CLI Cuts p99 CPU Usage in Half

Key takeaways

  1. 1Anthropic's official developer account ClaudeDevs said on August 18, 2026, that Claude Code CLI's p99 CPU usage dropped by 2x.
  2. 2The cause was a bug where Bun's garbage collector ran on a fixed timer and took CPU when work was busiest; after the fix, it runs only when idle.
  3. 3The exact shipping version hasn't been disclosed or added to the official changelog, so check the actual difference yourself by updating to the latest version.
Close-up of a computer processor chip with a silver heat sink on a dark teal background

At 9:28 AM (KST) on August 18, 2026, Anthropic's official developer account ClaudeDevs announced a performance improvement to the Claude Code CLI. Its p99 CPU usage dropped by half.

Why Did CPU Suddenly Spike?

The cause was the garbage collector (GC) in the Bun runtime. This GC ran on a fixed timer, so it cut in and took CPU even when work was at its busiest. One developer said in a reply, "A timer-driven GC stealing CPU in the middle of a turn is a really sneaky bug. From the outside, it would've looked like the model's responses were getting slower."

The Fix: Wait Until Idle

ClaudeDevs said this fix changes the GC to wait until the process goes idle. p99 is a metric for the delay experienced by the heaviest 1% of all requests. It shows how much CPU is used at the worst moments, not the average.

2x Lower, but Not Zero Usage

"2x lower" doesn't mean CPU usage went away. It means the figure at the p99 range, the moments of heaviest load, was cut in half, and how much you notice in everyday use may vary with your work patterns.

The Shipping Version Isn't Out Yet

The ClaudeDevs tweet has no specific version number. The official changelog page (code.claude.com/docs/en/changelog) also doesn't reflect this item as of 5 PM (KST) on August 18, 2026, when this was written. The announcement itself came from the official account, but the exact release timing remains not officially confirmed.

If you keep the Claude Code CLI running for long stretches, the most reliable approach is to update to the latest version and see the difference yourself. Separate cases related to Bun's GC, such as CPU staying high while idle, have also been reported several times before as GitHub issues.

Frequently asked questions

Why did Claude Code CLI CPU usage suddenly spike?
Bun runtime's garbage collector ran on a fixed timer, so it cut in and took CPU at the busiest moments. Anthropic fixed it to wait until the process goes idle.
What does a 2x drop in p99 CPU usage mean?
p99 is the load experienced by the heaviest 1% of all requests. It means the CPU usage at the worst moments was cut in half, not the average, and it doesn't mean CPU usage went away.
Which version ships this fix?
The Anthropic ClaudeDevs tweet has no specific version number, and the official changelog page didn't reflect it as of 5 PM (KST) on August 18, 2026. Update to the latest version and check for yourself.
Is this the first report of a Bun garbage collector problem?
No. Several issues related to Bun's GC, such as CPU staying high in the Claude Code CLI even while idle, have been reported separately on GitHub. It hasn't been confirmed whether this fix resolves all of that family of problems.

Related articles