Boris Cherny, the creator of Claude Code at Anthropic, has shared a practical rule for teams struggling with AI-generated code: prototypes can sometimes be treated as disposable black boxes, but production code created by AI should be held to a higher standard than human-written code.
The argument started with an email about AI slop
Cherny publicly shared a message from a developer who described growing friction inside teams using coding agents. One camp wanted AI-generated code to remain understandable and maintainable, while another preferred to treat the code as a black box and judge only whether the final output worked.
Throwaway code and production code need different rules
Cherny argued that both approaches can be valid depending on the blast radius. A disposable prototype with low consequences can be treated more loosely. Production systems, especially anything involving money, credentials or long-term maintenance, need stricter review and automation around quality.
Anthropic uses guardrails around AI-written code
Cherny said Anthropic relies on lint rules, extensive tests, Claude-driven end-to-end testing, daily fuzzing, automated code review, security review and automated refactoring to keep AI-generated code maintainable.
His broader point is that the developer's role is shifting from manually writing every line toward setting standards, rejecting weak output and designing the environment in which the coding agent operates.
A practical workflow for AI coding teams
For production work, the useful pattern is simple: define quality gates before the agent writes code, require tests and static checks, review high-risk changes more closely, and keep project instructions such as CLAUDE.md and reusable skills current.
If generated code remains difficult to maintain, Cherny recommends increasing model quality or reasoning effort, improving the project instructions, guiding the agent more closely, or asking the model to refactor accumulated technical debt.
Why this matters
The discussion captures a larger change in software engineering. As coding agents produce more of the implementation, human developers increasingly become reviewers, system designers and quality owners. The key question is no longer whether AI wrote the code, but whether the process around that code is strong enough for the risk of the system.
Business Insider reported on Cherny's public response, which he originally shared on X.
