3days since the last Git and AI fuck-up

Incidents 6 Aug reset --hardClaude Code

The agent was asked what happened

Status: asked what happened. Did it again, harder.

What happened

A developer noticed more than 150 changed files had vanished from their working tree and asked Claude Code which command had run.

Why it happened

The agent found reset: moving to HEAD^1 from earlier in the session in the reflog. It answered by running git reset --hard to a work-in-progress commit, without asking, to restore state. Everything after that commit went with it.

How it ended

git fsck --unreachable turned up loose blobs with no filenames, which is Git confirming the data exists and you will not be seeing it. The user stayed up through the night trying to recover it.

The issue has a permissions label and no fix.

From the cut

From the cut: The agent was asked what happenedFrom the cut: The agent was asked what happenedFrom the cut: The log says a reset ran.From the cut: The agent was asked what happenedFrom the cut: The agent was asked what happenedFrom the cut: The agent was asked what happened
The day before 31 JulTwelve agents, one working directoryStatus: tidied once. Refused 1,477 times.Watch it

The day after: Asked to remove one file →