back

AI code is here. We need to be responsible with it.

AI generates broken code and costs thousands

In today's increasingly AI-assisted development world, we're facing a new kind of challenge: code that looks right but silently creates expensive problems. Last week's viral tweet perfectly illustrates this danger – an AI assistant named Devon added a single event to a component that triggered 6.6 million events in one week, resulting in a surprise $733 analytics bill.

Key Points:

  • AI-generated code often lacks crucial context awareness, leading to expensive errors that human reviewers might miss
  • Traditional code review practices are struggling to keep pace with the volume of AI-generated code being committed
  • The increasing ease of writing code has inversely affected our tolerance for the tedium of reviewing it
  • Usage-based pricing models can magnify minor code errors into major financial problems

Why Human Review Still Matters

The most insightful takeaway from this incident is how profoundly AI is changing the developer workflow balance. Pre-AI, developers spent approximately two-thirds of their time writing code and one-third reviewing it. As AI tools like GitHub Copilot and Cursor AI dramatically accelerate code generation, this ratio has flipped – or at least it should have.

This shift is happening against a backdrop of human psychology where our tolerance for tedious tasks decreases as our tools become more powerful. When AI makes writing code feel effortless, the relatively unchanged task of code review feels increasingly burdensome by comparison. Yet this is precisely when we need more review, not less.

The implications for the industry are significant. Teams that maintain rigorous code review cultures will have a competitive advantage over those that rush AI-generated code into production. Companies with strong review practices will experience fewer outages, lower unexpected costs, and higher customer trust.

Solutions Beyond the Obvious

While the Devon incident focuses attention on the importance of code review, there are additional approaches that weren't covered in the video that can help prevent similar problems:

AI-specific testing harnesses: Consider developing specialized test environments that specifically measure the resource usage patterns of new code. For analytics events, this could mean creating ephemeral test environments that track event emission rates and alert on anomalous patterns before deployment.

Rate limiting by default: Implement system-wide rate limiting on API calls, database writes, and third-party service usage. This creates a safety valve

Recent Videos

May 6, 2026

Hermes Agent Master Class

https://www.youtube.com/watch?v=R3YOGfTBcQg Welcome to the Hermes Agent Master Class — an 11-episode series taking you from zero to fully leveraging every feature of Nous Research's open-source agent. In this first episode, we install Hermes from scratch on a brand new machine with no prior skills or memory, walk through full configuration with OpenRouter, tour the most important CLI and slash commands, and run our first real task: a competitor research report on a custom children's book AI business idea. Every future episode will build on this fresh install so you can see the compounding value of the agent in real time....

Apr 29, 2026

Andrej Karpathy – Outsource your thinking, but you can’t outsource your understanding

https://www.youtube.com/watch?v=96jN2OCOfLs Here's what Andrej Karpathy just figured out that everyone else is still dancing around: we're not in an era of "better models." We're in a different era of computing altogether. And the difference between understanding that and not understanding it is the difference between being a vibe coder and being an agentic engineer. Last October, Karpathy had a realization. AI didn't stop being ChatGPT-adjacent. It fundamentally shifted. Agentic coherent workflows started to actually work. And he's spent the last three months living in side projects, VB coding, exploring what's actually possible. What he found is a framework that explains...

Mar 30, 2026

Andrej Karpathy on the Decade of Agents, the Limits of RL, and Why Education Is His Next Mission

A summary of key takeaways from Andrej Karpathy's conversation with Dwarkesh Patel In a wide-ranging conversation with Dwarkesh Patel, Andrej Karpathy — former head of AI at Tesla, founding member of OpenAI, and creator of some of the most popular AI educational content on the internet — shared his views on where AI is headed, what's still broken, and why he's now pouring his energy into education. Here are the key takeaways. "It's the Decade of Agents, Not the Year of Agents" Karpathy's now-famous quote is a direct pushback on industry hype. Early agents like Claude Code and Codex are...