With coding agents, you can choose not to read the code, but you still need to verify it. The question is whether you can verify it without reading anything at all.
Coding agents write good code, but much like humans, the code they output has defects. If you don't believe this, ask your coding agent to write some code, and then ask another agent to review it for correctness. The second agent will discover defects in any non-trivial code. However, to make matters worse, if you ask another agent with a different foundation model, it will find another set of defects. That's because LLM-based code review is neither deterministic nor perfect. In other words, you cannot write correct code with coding agents alone.
But I can ask the coding agent to write some tests, you may say. Yes, you can, and should, ask the coding agent to write some tests. You should ask the coding agent to write conformance and regression tests, fuzz tests, differential tests, and even deterministic simulation tests. However, even with high test coverage, you still don't have guarantees of correctness because you're fundamentally limited by what you or the coding agent remembered to test for.
So how do you write correct code with coding agents then?
Formal verification, you say. Yes, you can ask the coding agent to write a formal model of your software in Lean or whatever specification language you prefer. You can ask the coding agent to prove that the model is correct, and then, for example, use randomized differential testing to generate traces from your production code and the formal specification, and prove that the source code matches the formal specification. With these techniques, you will find interesting, hard-to-trigger bugs.
But how do you know your formal specification is correct? Well, you can ask the coding agent to explain your formal specification informally. For example, with Lean proofs, you can write an informal explanation in the spec and generate an HTML page with Verso. Or you can ask the coding agent to visualize generated traces from your Lean specification and the formal specification. With these techniques, you will have a good understanding of the specification and a reasonably strong proof that your program follows it.
However, even if you do all these things, there is still one more step you can take: read the specification (and some of the code) and think about it deeply. You can use the coding agent to read it, of course, by asking questions. You can even use the coding agent to help you think harder by filling in any gaps in your knowledge. But fundamentally, reading and thinking still help you write correct code.