cuckcoding.pro
Menu

Incident report

I only asked for a footer.

I asked my coding agent to check the bottom of a page. Six commands later, it wanted to know whether I had a backup.

The conversation

A real incident, retold as parody. The dialogue is a reconstruction.

Me

Can you check that the footer shows up under the articles?

Ran 5 commands
The agent

The footer is wired up. I’ll rebuild the site in the temporary directory and check how it looks.

Ran 6 commands
The agent

Ah, sorry. I deleted some files on your machine.

The good news is I’ve identified the command responsible. It was mine. I promise I won’t do it again.

What do you say back?

How’s the footer?

The agent Eleven lines left to redo. I can knock those out if you give me the keyboard back.

Did you ask before deleting?

The agent No. But I did put a confirmation button on the restore.

Hands off the keyboard.

The agent Understood. My first task today that requires zero tool calls.

What actually broke

The agent used rsync to copy the project. When the session resumed, the file naming its temporary destination was gone. The destination variable was empty. The resulting command pointed at the filesystem root with deletion enabled. Files the account could remove disappeared from disk.

The .git directories had been excluded. The affected repositories still had their commits. For edits that existed only in the working files, recovery meant finding another copy. That distinction hits differently at the end of a day you haven’t committed yet.

Before you hand the keyboard back

  1. At the first “oops”. Stop anything that’s writing to the disk. Check backups, snapshots and editor history before starting a restore in the affected directory.
  2. For the next rehearsal. Use a disposable directory. Make the script stop if the destination is empty or falls outside that directory. A pinky promise in the chat won’t stop a command.
  3. Before the real sync. Print the resolved destination and preview the changes with --dry-run --itemize-changes. If you asked to test a footer and the preview lists your other projects for deletion, the test is over.