I don't read the code my agents write. Step 2 of what makes that hold:

An agent follows your conventions most of the time. A linter follows them every time. Turn on every rule you can defend, even the noisy ones: with an agent fixing the errors, a noisy rule costs tokens, not your afternoon. A rule the linter holds, you never ask for again.

In Birgitta Böckeler's grid of guides and sensors, a lint rule is a computational sensor. A convention written in a prompt is an inferential guide: the model reads it, and may not follow. The series' map: https://lesecretairedefernand.co/en/tech/mapping-your-attention-to-free-it/

In practice, turn on whole categories as errors rather than hand-picked rules. In oxlint: correctness and suspicious. An agent can leave a warning in place; an error it has to fix before the commit.

Then the rules for the shortcuts an agent takes when it is stuck: no-explicit-any, the exit from the type checker, and no-floating-promises, the await it forgot.

One check that is not a lint rule works like one: the formatter in check mode. Style stops being a correction you ask for.

If you want an example, here is my oxlint config: https://github.com/lbdremy/phax/blob/1a159147956a9d73c189cf7073622a8fb8742d8a/.oxlintrc.json

One step a day of the harness I put around my agents, in the order I added them.