swyx 在 Latent Space 播客中指出,AI 智能体写的坏代码一旦进入代码库,就会成为下一次修改的上下文,智能体看到坏模式后假设它是系统的一部分并继续在其上构建,导致代码库持续退化。他认为需要围绕智能体建立规划、审查、对抗性智能体、全新上下文审查、测试等机制,同时仍需有经验的人读代码、理解架构,判断改动是否在把系统带向错误方向。
This recent @latentspacepod pod was a good one (they usually all are).
One specific piece resonated: They were talking about AI agents writing code, and the line was basically that without caution / diligence, your codebase can regress to your worst engineer.
Bad AI-generated code does not just create a one-time cleanup problem. Once it gets into the repo, it becomes part of the context for the next change. The agent sees the bad pattern, assumes it is part of how the system works, and then builds on top of it.
So if you let bad architecture, bad code, or code slop leak into your repo, you are not just making the codebase messier. You are changing the inputs that guide future agent decisions.
This is the failure mode I worry about with coding agents - particularly on larger teams. I get a ton of value out of coding agents, but you need real mechanisms in place to keep them from amplifying the worst parts of your system.
Some of that is technical. You need a system around the agents: better planning, review steps, adversarial agents, fresh-context reviews, tests, checks, and small changes that limit the blast radius. Basically, a team-aligned process around compound engineering.
But that is not enough by itself. You also need experienced people at the wheel.
Especially on a broad team where lots of people have access to these tools, someone still needs to read the code. Someone needs to understand the architecture. Someone needs to know when a change is technically working but pulling the system in the wrong direction.
Bad code in the repo becomes precedent. And once it becomes precedent, the agent can keep building on it until the codebase no longer accurately reflects what you are trying to build - and is hard to move forward, with or without AI agents.
🆕The Age of Async Agents: Devin’s 7x PR growth, 80% AI commits, background agents, memory, testing, & Open-Inspect latent.space/p/cognition @cognition cofounder + CPO @walden_yan and Open-Inspect creator @_colemurray explain why engineering is moving from local IDEs to cloud background agents, how Devin went from 16% to 80% of commits across Cognition repos, why spec-to-PR workflows became real after the December model inflection, why testing is harder than computer use, how Devin separates the brain from the machine, why MCP is not enough for production agent integrations, and how PMs, support teams, and SRE workflows are starting to turn Slack messages into pull requests. Video在 X 查看被引用的帖子
来源:@mstockton · x.com