How I run a read-before-write rule with my AI agent
The thing my AI agent gets wrong most often isn't logic, it's editing a file it never actually read. One of the many rules I have for it is to read the file first, this session, before it changes anything, and not let it just promise it did.