Share

Plan-first prompt: make the agent write the plan before touching files

Open · 5 views · asked by dev_ana · edited

Costs one extra round trip and saves the twenty-file diff you have to read afterwards. Point 4 is what makes it useful for people who cannot read the diff quickly.

Prompt
Copied 4 times
Before you change anything, write a plan:
1. The files you will touch, one line each, with what changes in them.
2. The files you will read but not change.
3. What could break elsewhere.
4. How I can see it worked in the browser.

Do not write code in this message. I will reply "go", or correct the plan first.
Comment

Activity