Opens in a new tab

Independent WordPress hosting guides · Recommended host: Convesio

Start a free trial →

Should AI Rewrite Your Old Theme? Lessons from Bun’s AI Rewrite

Bun's AI-driven rewrite produced about a million lines in 11 days for about $165,000, and sparked a fight about review. What it teaches anyone tempted to let AI rewrite a legacy WordPress theme.
By Shahzad Hasan · November 18, 2026

In July 2026 Bun’s creator reported using up to about 64 parallel Claude Code instances over 11 days to port roughly 535,000 lines of Zig into over a million lines of Rust, for about $165,000 in API spend. The creator of Zig called the result “unreviewed slop”, arguing that passing tests is not the same as reviewed code (Vibe Coding Weekly #40).

Figures and claims about other companies are as reported at the time and summarised by Vibe Coding Weekly; check the original announcement before relying on them.

The WordPress version

Many sites run on an old theme: page-builder shortcodes, custom PHP, years of patches. It is tempting to ask an AI to rebuild everything in Bricks or a block theme in a weekend. It can now produce that much output. The question is whether anyone can stand behind it.

Lessons from the rewrite debate

  • Tests are not review. A page that loads is not proof it is correct, accessible or secure.
  • Volume hides problems. A huge change set is hard to check; small batches are not.
  • Cost is real. Parallel agents multiply spend.

A safer way to rebuild a theme

  1. Inventory first: templates, shortcodes, custom functions, plugins, and what each page needs.
  2. Design system first: colours, fonts, spacing and global classes, reviewed by a person.
  3. Rebuild templates, then pages, in batches, each checked on phone and desktop.
  4. Keep URLs or add redirects for every changed address.
  5. Review custom code by hand. See Securing AI-written code.
  6. Run old and new side by side on staging until you are sure.

This is how this site moved to Bricks: plan, approve, build in batches, verify and log. See the case study.

Source: Vibe Coding Weekly #40. This article is our own take for WordPress and Bricks builders; it does not reproduce the newsletter.

In this article

Need hosting that scales?

Convesio runs each site in Docker containers with auto scaling and load balancing built in.
Try Convesio free →
Affiliate link: we may earn a commission at no extra cost to you.