Share
Refactor prompt with an acceptance test the agent has to show you
The last line is the whole trick. Asking for the output of the command instead of a description turns "I have refactored this cleanly" into something you can check in two seconds.
Asking for command output instead of a claim is the best trick in here.
katja_s