ai-coding-minesIndexGitHub

The session container rolls the repo back to an old commit

Claude Code and agents

Symptom

HEAD        : d45e9008 (old commit)
origin/main : 7f08c3ba
48 commits behind

Recurred four times in a single thread.

Why it's dangerous

Detection

Rules

Caught in the act

The hook caught the fourth occurrence. Uncommitted files were evacuated to the scratchpad, the repo resynced, the files restored. Not adding auto-reset was the right call.