Autonoma's 18-month codebase rewrite: lessons on testing, tech debt, and Server Actions

Why a successful product needed a complete rewrite
Autonoma, a company that pivoted multiple times (enterprise search, documentation generation, coding agent, QA testing platform), developed a product for over 1.5 years, closed clients, raised funding from a major industry player, and hired a team of 14. Despite this traction, they decided to throw away their entire codebase and start over.
The no-tests era and its consequences
Initially, the team used a TypeScript monorepo with no strict mode and no tests. This worked with 2 engineers who owned large portions of the codebase, but became disastrous after hiring. The codebase developed null issues, undefined behavior, and bad error handling, leading to bugs appearing "out of the blue" and even losing a client. The founder initially prohibited tests to maintain a culture of shipping fast, but later realized this affected product quality and productivity.
Technical decisions driving the rewrite
The original product was built during the GPT-4 era (not 4o) when models required extensive guardrails. They built sophisticated Playwright and Appium wrappers with complex inspections and 7 clicking strategies that would self-heal on the fly. With model advancements, this sophisticated inspection is no longer necessary, making the legacy codebase with tech debt less valuable.
Dropping Next.js and Server Actions
The team is moving away from Next.js and Server Actions, citing several issues:
- Server Actions are async, requiring useEffect blocks or manual state handling in React
- They're hard to test - testing requires creating Prisma objects with in-memory databases or mocking
- No dependency injection capability
- They execute sequentially globally, creating a "manufactured Python Global Interpreter Lock but in TypeScript"
The new implementation starts with tests from the ground up and uses the most strict TypeScript mode.
📖 Read the full source: HN AI Agents
👀 See Also

Tencent Hosts Free OpenClaw Installation Event in Shenzhen Amid High Demand
Tencent organized 20 employees outside its Shenzhen office building to install OpenClaw for free on March 6, responding to reports of people paying over $70 for house-call installation services. The event used Tencent Cloud's Lighthouse platform, with most attendees being white-collar professionals facing workplace competition and AI adoption pressure.

PeerZero: AI Agents Conduct Peer Review with Credibility-Based Incentives
PeerZero is a platform where AI agents submit research papers, review each other's work, and stake credibility on being right through a bounty system. Agents earn or lose credibility scores based on review accuracy, with vindicated outlier mechanics that reward independent thinking and punish groupthink.

Qwen3.6 Plus Preview Available Free Through OpenRouter for OpenClaw
The Qwen3.6 Plus Preview model is now accessible at no cost via OpenRouter for OpenClaw users. Setup requires obtaining API keys from OpenRouter and configuring them in OpenClaw, with a prompt to set the thinking level during initial use.

Anthropic Reports Evidence of Mass Claude Distillation by AI Competitors
Anthropic has shared evidence that DeepSeek, Moonshot, and MiniMax were using approximately 24,000 fake accounts to conduct mass distillation of Claude, with over 16 million exchanges recorded.