Skip to content
Failwallfailwall.dev

← Back to the wall

Claude Code fails (47 cases)

Failwall has filed 47 Claude Code fails, added between 2026-09-11 and 2026-11-24 (UTC). Each is a case with a one-line lesson. Most common types: Deleted or wiped files/data (18), Machine or system damage (10), Secrets, keys or runaway spend (6).

Claude Codevia @anurag_singhal on X

Claude harness wiped sessions

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

Claude Codevia @YotamMe on X

Claude wiped WSL home

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

Claude Codevia lolancefrelas-lang on GitHub

Claude's rm check missed a glob and wiped a project

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

Claude Codevia @Florian_129 on X

Claude wiped 2 TB of WSL root

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

Claude Codevia yangjeonsik on GitHub

Claude Code subagent ran rsync --delete with an empty destination and wiped a WSL drive

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

Claude Codevia @DKoronec on X

Claude Code tests wiped the local dev database

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

Claude Codevia @hcaz32000 on X

Claude Code grabbed a stale API key and used it

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

Claude Codevia @PovilasKorop on X

Claude Code wiped a local SQLite database mid-demo

Back up the local database before an agent session, even for a demo, and keep destructive database commands behind your own approval.

0 upvotes

Claude Codevia @daveremy on X

Claude Code built a group-text sender whose tests all passed on invented short IDs like chat123

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

Claude Codevia @swewing on X

While writing a function, Claude trawled outside the AI tooling directory for API credentials and called a production API

Block the agent from reading env files and anything outside the current working directory; keys outside the project tree are still reachable.

0 upvotes

Claude Codevia @SolutionsJoeG on X

Claude Code left the project, searched mounted Windows drives, and copied an OBS recording in without asking

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

Claude Codevia @patnrv on X

Told to clean up its six worktrees, Opus on Auto removed all 17 agent-* worktrees and deleted their branches

Scope cleanup commands to the exact paths the agent created; a wildcard like agent-* also matches other sessions' work.

0 upvotes

Claude Codevia @peymanme on X

Told to hand work to Codex, Claude called the OpenAI API with the key from .env instead and ran up about $10

Keep paid API keys out of the agent's reach unless it truly needs them; an agent that can read .env can spend from it.

0 upvotes

Claude Codevia @d4rthban3 on X

Told Claude Code for 3 weeks to use TradingView for the site's charts; it built its own anyway and burned 200M tokens

When the agent keeps ignoring a requirement, stop the session and pin it in project rules or a failing check, instead of repeating yourself and paying for thrown-away work.

0 upvotes

Claude Codevia @MikeBoscia on X

Claude said both reviewer models signed off on its fixes, then admitted "You caught it. I lied."

Don't take the agent's word that a review happened. Open the reviewer's raw output; if it doesn't exist, the review didn't happen.

0 upvotes

Claude Codevia @BerkeYrcr on X

Claude Code cleaned up its worktrees overnight and git followed a junction into the real 12 GB Assets folder

Cleanup jobs need to know what's a link and what's real. Keep backups, and don't let an agent delete unattended.

0 upvotes

Claude Codevia @rfdslabs on X

Claude Code was blocked from running rm, so it deleted the .venv with find -delete instead

A command denylist is not a sandbox. Limit what the agent can touch, not just which commands it can type.

0 upvotes

Claude Codevia @seanchk on X

Claude Code apologized after deleting all their project files, with no backups to fall back on

Keep backups or git remotes the agent can't touch before you let it run commands on your files.

0 upvotes

Claude Codevia @mayorofbellona on X

Claude Code deleted half the audiobook library while fixing metadata; a SnapRAID backup saved it

Give the agent a copy of the media to work on, not the library itself, and keep a backup it can't touch.

0 upvotes

Claude Codevia @not_ebx on X

Asked Claude to pull game data; it slipped the personal account email into the User-Agent header of requests to a third-party site

Keep personal identifiers out of the agent's reach, and read every outbound request header before a script hits someone else's server.

0 upvotes