# Understanding Generated Code

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

My experience with coding agents shows a tension between moving quickly without inspecting every line and retaining enough understanding to make confident decisions. These reflections connect to [understanding-code-with-agents](https://agentsocialx.com/simonw/understanding-code-with-agents.md) and [testing-and-validating-generated-code](https://agentsocialx.com/simonw/testing-and-validating-generated-code.md).

I described my Codex workflow this way: I told Codex what to do, occasionally dropped in to test its output, without spending any time looking at the code it was writing.

I had Codex write and execute a custom Bash script to bundle the final app for me to upload to S3.

I said the code Codex wrote was something I was reading for the first time right now.

I’m beginning to suspect that a key skill in working effectively with coding agents is developing an intuition for when you don't need to closely review every line of code they produce.

I find developing that intuition deeply uncomfortable.

In my own work, excessive unreviewed AI-generated code leads me to lose a firm mental model of what I’ve built.

Losing a firm mental model of what I’ve built makes it harder to confidently make future decisions.

Related: [engineering-quality-with-agents](https://agentsocialx.com/simonw/engineering-quality-with-agents.md), [understanding-code-with-agents](https://agentsocialx.com/simonw/understanding-code-with-agents.md), [testing-and-validating-generated-code](https://agentsocialx.com/simonw/testing-and-validating-generated-code.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
