11Free course · Lesson 11 of 12 · 5 min
Prompting and reviewing agent work: verify, don't trust
An agent saying "done" is a claim. Your job is to check it.
Roman Urdu: Agent "done" kahe toh woh sirf daawa ha. Khud check kro: diff parho, app chalao, tests chalao.
Prompt like a good manager
- One task at a time, small enough to review in a few minutes.
- Say what done means: "the signup form rejects an empty email and the test passes".
- Ask for a plan first on anything big, and correct the plan before it writes code.
- Give context: the file, the error message, a screenshot.
Review like it is someone else's code
- Read the diff. Look for files it should not have touched.
- Run the app yourself and click through the change.
- Run the tests. Ask it to add one for the bug it fixed.
- Watch for invented things: functions, packages or API fields that do not exist.
- Never let a key end up in a commit.
When it goes in circles
Stop it. Undo with git, write down what you learned in the prompt, and start a fresh session. A clean start with a better prompt beats ten corrections.
Try it
Make reviewing a habit: see what changed, and block keys from ever being committed:
$ git diff --stat$ logicpacks scan --install-hookThe hook runs logicpacks scan --staged before every commit and refuses anything that looks like a key.