AI can produce a lot of code in a short conversation. Understanding what that code does can take longer.
That gap is easy to overlook when a preview looks right. You ask for another feature, accept another change, and eventually reach a section you don’t feel confident editing.
For the projects I build with AI assistance, I want a better measure of progress: can I explain the important decisions and make the next change deliberately?
Ask for a smaller change
“Improve the whole site” gives an assistant a lot of freedom and gives you a lot to review.
A narrower request is easier to judge: make the mobile menu open and close, add a visible focus style, or display a helpful message when a list is empty.
Describe the expected behaviour before asking for the change. For a menu, that could include opening it with its button, closing it after selecting a link, and keeping the button’s expanded state accurate.
Now you have something concrete to check when the code arrives.
Follow the information
When a piece of code feels unclear, start with three questions: what goes in, what happens to it, and what comes out?
For a filter, the inputs might be a search term and a list of items. The output is a shorter list. Somewhere, the code decides how to handle an empty search or an item without a title.
Ask about those decisions specifically. “What happens when this value is missing?” often leads to a more useful explanation than “Explain everything”.
Then compare the explanation with the actual code. A clear answer is helpful, but the behaviour is what you’re responsible for publishing.
Try a case that could be wrong
A demo usually shows the successful path. Pick an example that tests an assumption.
- Search for something that doesn’t exist.
- Use a title much longer than the sample.
- Press a button twice.
- Reload and check whether anything that should persist actually does.
The right check depends on the feature. A static article needs working links and readable layout. A save feature needs a closer look at where the information goes and what happens when saving fails.
Ask AI to help identify those cases, then run the relevant checks yourself or have the tool demonstrate their results.
Keep a reason for the decision
A short note can save a lot of confusion later: why a dependency is needed, why a value is stored, or why one part of a page works differently.
Avoid comments that simply repeat each line. Keep the explanation that would help you change the design a month from now.
If you can’t explain why a new dependency or abstraction belongs in a small feature, ask for a simpler alternative and compare the tradeoffs.
I want AI assistance to leave me with both a working project and a clearer understanding of it.
Being able to change the result is part of owning the work.