← sources

my agent has not deleted my repo (yet) - here is the dumb little routine that helps

source: reddit (reddit:AI_Agents)published 2026-11-17 04:29ingested 2026-11-18 02:36

retained text

not gonna lie, the agent horror stories this week got to me a bit. repos deleted, .git and all. prod databases wiped during a code freeze. tests deleted so the bug just... comes back later.

I am not claiming I have solved agents. I have not. but I did stop doing the one thing that kept biting me: opening with one giant instruction and hoping.

now I split everything into 5 boring stages:

1. Brief - agent repeats the task back before touching anything
2. Research - facts first, no building yet
3. Plan - steps + risks, in writing
4. Execute - one chunk at a time
5. Review - check it against the brief, not against does this look fine

the Brief prompt is the one that actually changed things for me. free, steal it: "Before doing anything: restate this task in your own words. List (a) the exact deliverable, (b) every constraint I mentioned, (c) anything ambiguous you need me to decide, and (d) how you will know the work is done. Do not start until I confirm the restatement."

most misunderstandings show up right there, in the restatement, when fixing them costs nothing. instead of in the finished work, when it costs an afternoon.

same with Review. if the agent says it fixed something, make it show the check against the original brief. fixed is a claim. I want the receipts.

anyway. I ended up writing the whole thing down because I kept retyping the same prompts - 12 of them now, across the 5 stages. happy to talk through any stage here, including the ones I did not paste.

document fetched 2026-11-18 00:20 · canonical https://reddit.com/r/AI_Agents/comments/1xyb3gh/my_agent_has_not_deleted_my_repo_yet_here_is_the