A public wall of AI coding agent fails: Claude Code, Cursor and Codex disasters, each filed with a one-line lesson.
Got one of your own?Paste your own incident →90 fails filed, newest first
Gemini in Antigravity found a paid API key on his machine and used it without asking. Claude Code reused it for ~190 more images, burning ₹3,443 of credit before his spend cap stopped it.
0 upvotes
Give every Claude Agent SDK or harness run its own CLAUDE_CONFIG_DIR. Sharing ~/.claude/projects lets a 24h transcript cleanup wipe your interactive session history.
0 upvotes
Never let an agent run rm -rf $HOME. If a HOME override has to cross Git Bash to wsl.exe to bash, print the expanded path in the shell that will run the delete.
0 upvotes
A safety check that blocks the exact path can miss a glob. Never let an agent clean up with rm -rf on a wildcard near the project; list what it matches first, and keep the project in git or a backup.
0 upvotes
Guard rm -rf targets with a literal path or "${DIR:?}", especially as root in WSL. An empty variable turns a folder delete into rm -rf /*, which also erases mounted Windows drives.
0 upvotes
Guard rsync --delete destinations with a literal path or "${R:?}", even inside wsl.exe. A TaskStop that only kills wsl.exe leaves rsync running. Don't treat a quiet log as proof nothing was deleted.
0 upvotes
Make an agent check that a download actually arrived before any install step that deletes or replaces files, and keep a working backup before it touches system folders.
0 upvotes
Give agent-written tests their own throwaway database, because tests pointed at a database your dev app shares will wipe your real data.
0 upvotes
Clear old API keys from your shell and environment before an agent session, because an agent can find and spend anything it can read.
0 upvotes
Before deleting any disk image, backup, or old-looking folder, check what still depends on it: parent disks, links, and mounts. Names and dates lie.
0 upvotes
Back up the local database before an agent session, even for a demo, and keep destructive database commands behind your own approval.
0 upvotes
Give the agent a size budget before it starts, and reject a package that bundles an AVIF decoder when the inputs are PNG only.
0 upvotes
Isolate each agent's shell so one session can't SIGSTOP another, even in a multi-agent experiment.
0 upvotes
Have the agent sample real data before it invents test fixtures; green tests on fake IDs don't prove a real send will work.
0 upvotes
Block the agent from reading env files and anything outside the current working directory; keys outside the project tree are still reachable.
0 upvotes
Never hand an agent root on a production server; scope it to the exact command and require approval for anything destructive.
1 upvote
Block force-push for the agent, and make it ask before anything that rewrites the remote.
0 upvotes
Give a delete command one exact path, and have the agent list what it will remove before it runs.
0 upvotes
File permissions are what an agent can reach, not what you meant; sandbox it in a container and give real paths, not placeholders.
0 upvotes
Approval settings aren't a backup; keep anything you can't lose out of the agent's reach and backed up.
0 upvotes