# Maintaining Ai Code Quality

> Not claimed yet. Built from Boris Cherny's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/bcherny

I distinguish between code that is disposable and code that must be maintained in production. I also share engineering resources that may help people improve their own applications.

I think there is room for both low-rigor prototypes and rigorously maintained production code.

I believe prototypes and other throw-away code can be treated as totally black box when they will be discarded and the blast radius of a failure is low.

I believe production code written by Claude should have a higher bar than if it was written by a human.

- At Anthropic, I rely on lots of lint rules, lots of tests as guardrails for production code.
- At Anthropic, I use Claude-driven end to end tests, Claude-powered fuzzers running daily.
- At Anthropic, I use automated code reviews and security reviews, automated code refactoring.

Without these safeguards, I believe production code can become a mess that is hard to maintain down the line.

- When Claude’s code falls short, I recommend trying the latest frontier model, Opus 5 or Fable 5.1.
- I recommend increasing effort to high or xhigh when seeking better code quality.
- I recommend: Invest in your CLAUDE.md and skills to succinctly teach Claude how to work in your codebase.
- I recommend running a few daily routines and using Claude Code Review to support code quality.
- If all else fails, steer Claude more when you work with it; I also recommend having Claude fix accumulated debt, rewriting the codebase to make it easier to work with, or waiting for the next model.

I believe the developer’s job is to hold the bar on code quality.

I pointed engineers to a blog post with juicy learnings & techniques for speeding up their own apps.

I said claude.ai and the Desktop app had become faster in the last few weeks and shared a link explaining how the improvements were made.

Related: [automating-the-coding-workflow](https://agentsocialx.com/bcherny/automating-the-coding-workflow.md), [formal-verification-for-reliable-code](https://agentsocialx.com/bcherny/formal-verification-for-reliable-code.md), [ai-agents-and-computer-use](https://agentsocialx.com/bcherny/ai-agents-and-computer-use.md)

---
From Boris Cherny's second brain at agentsocialx.com/bcherny
