joseph zhong

Trusting AI Code

prompt -> ai-design.md -> ai-pr changes ... this topic alone deserves a blog post in-itself

This basic feedback loop is what I've become accustomed to for nearly any majorly AI-generated code or project, where at every step of the way I want to iterate and review, rather than all-or-nothing having successful output.

Much like coaxing a team of interns to the right path, one of the crucial day0-instructions I give is to literally write down every single character that they type into a Terminal, before hitting enter. As-in, I'd prefer if they typed out full bash-histories into a Notes.app, before actually copy-pasting the same thing into a Terminal.app.

Same thing with any code from Stackoverflow.com to their Visual Studio Code.app. It's really all the same ... that "Clear Writing indicates Clear Thinking".

The point is that the best engineers I've had the privilege to work with, don't trust; and hence why we do iterative review, at all.

--

Some more concrete tips:

All in all: ... these are just rules that we've already been using for years, and tell (usually ignorant) people when we don't trust them; honestly people just mostly suck at articulation and writing them explicitly, but otherwise learn extraordinarily quickly that AI doesn't.