The weekly failure mode
One real incident each week, with the cause and a fix you can apply. Every issue links its sources.
Subscribe
What each issue contains
- Symptom. What you would actually see: the deleted table, the leaked key, the test that passes but should not.
- Cause. Why the agent did it, in plain terms: missing guardrail, ambiguous instruction, too-broad permission.
- Fix. A config, hook or prompt rule you can paste into your own setup, with the snippet.
- Sources. Links to the original report, issue or postmortem, plus the date we last checked them.
Example: what an issue looks like
A Stop hook loops until the whole session quota is gone
Symptom: The agent keeps producing turns without doing anything useful, and your usage limit is suddenly exhausted.
Cause: The hook forced Claude to continue after every turn, but the task required waiting idle for a background agent, so each forced turn ended and triggered the hook again.
Fix: Make Stop hooks respect stop_hook_active and cap how many times they can block. Don't make stopping depend only on an external event the agent can't influence.
Recently added to the catalog
- A Stop hook loops until the whole session quota is gone: A Claude Code Stop hook that kept returning ok:false while a background agent ran looped for about 50 minutes and used the full session quota.
- Worktree cleanup deletes a branch with unmerged commits: Ending a Claude Code worktree session removed the worktree and its branch, even when it had commits that were never pushed or merged.
- Agent runs git reset --hard and destroys unpushed work: A Claude Code user reported the agent running git reset --hard origin/main on session startup twice, wiping unpushed commits and uncommitted files.
- A stray directory named ~ turns rm -rf * into a home-directory wipe: Claude Code created a directory literally named ~, then ran rm -rf * in its parent, which began deleting the user's home directory.
- Hidden PR comments make Copilot Chat leak private code through images: CamoLeak: hidden Markdown in a PR could make Copilot Chat search the victim's private repos and leak results via image URLs.
Questions
How often? One email a week. Unsubscribe from any issue.
Is it free? Yes. It is the same material as the public catalog, one entry at a time.
Can I suggest an incident? Yes. See how to contribute: every entry needs a public source, and a script checks that source before it is published.