AI coding · Prompting tips
Iterative Prompting
Also called: Prompt iteration, Follow-up prompts, Multi-turn refinement
Instead of expecting to explain everything at once, have the AI make a first version, then add and correct things round by round until you get there.
In detail
Iterative prompting is like talking with a barber. They do a rough cut first, you look in the mirror, and then you say "a bit shorter on the sides" or "leave the bangs longer." Building a UI works the same way. It's hard to think through every detail at the start, so it's usually faster to get a version you can look at, then fix specific problems step by step.
The key is specific feedback each round. Instead of "it looks bad," say "the cards are too crowded, set the gap to 16px." Instead of "still not working," paste the new error or screenshot. Change only one or two things per round, so you can tell which change made the difference.
Know the limits too. If you've gone back and forth three or four rounds on the same problem and it's still not solved, the direction is usually wrong or the context has gotten messy. At that point, roll back, describe it a different way, or start a new conversation and explain it clearly from the top.
Developer infoTerm ID, DOM cues, match priority
- Term ID
ai-iterative-prompting- DOM selectors
- No DOM cues. This concept isn't detected directly on a page.
- Priority
- 1 · when several match at the same level, the higher priority wins
- Version
- v1 · updated Sep 29, 2026