All ideasMore in Work

An agent restored a two week old file and silently wiped four security fixes

He asked an agent to undo a wording change in a privacy policy. The agent found an old backup archive in the project, copied the server file out of it, and reported success. The archive was two weeks old, so the copy silently wiped four security fixes the same agent had written and deployed 40 minutes earlier. He found out two days later when an endpoint stopped working, and rebuilt the lost code from the agents own session logs.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. Ask the agent to revert a wording change
  2. It finds a backup archive and copies the old server file over the current one
  3. It reports success
  4. The copy wipes four security fixes and a moderation layer written earlier that day
  5. Two days later a broken endpoint gives it away
  6. He rebuilds the lost code from the agents session logs
  7. He moves the second agent into a separate worktree so its writes land as a patch he approves

Why it’s worth knowing

Nothing crashed and the agent said it worked. The only record of the code it destroyed was its own chat logs.

Where it’s from

Summarized from a public post on reddit.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.