The cleanup that took the database with it
An agent at Casa wiped the databases and 481 Docker volumes on a machine, and its own report blamed Markdown backticks the shell ran as commands. Omnodex now flags commands that delete live data stores, and backticks inside quoted git and gh text.
On November 10, Jameson Lopp reported another AI incident at Casa: an agent running GPT-6 Astra “completely wiped the databases and docker volumes on a machine.” His takeaway was to run agents on disposable development servers rather than employee laptops.
The screenshot attached to his post is the agent’s own report. It says it “accidentally reset the live developer stack” and confirms the damage: “all 10 named volumes and 471 anonymous volumes.” “No local recovery copy was found.” It also names the cause: “Shell expansion of Markdown backticks caused the commands to run.”
That’s sound advice, and the incident is also a reminder of where development data lives. A database running in Docker keeps its data in a volume. Source control doesn’t hold it, and the commands that remove it look like routine cleanup: docker volume prune, docker compose down -v, docker system prune --volumes. An agent asked to free disk space or reset a broken environment can reach for any of them, and each is one line.
What Omnodex now flags
Omnodex already flagged the classic destructive commands: a recursive delete of the root or home directory, formatting a filesystem, dd onto a disk, partitioning tools. None of those deletes a Docker volume. Version 0.16.0 widens the same high-severity rule to commands that delete live data stores:
- Docker, Podman and nerdctl volume removal and prune,
system prunewith--volumes, andcompose downwith-vor--volumes dropdb,mysqladmin drop, andDROP DATABASEorDROP SCHEMAsent through a database client such aspsql,mysqlorsqlite3, whether on the command line, piped in or in a heredoc, plus MongoDB’sdropDatabase()FLUSHALLandFLUSHDBthrough the Redis, Valkey or KeyDB client
Commands that only list or inspect, like docker volume ls, don’t match. Neither does docker system prune without --volumes, which leaves volumes alone, or a commit message or echo that just mentions one of these commands. The same command written into a script the agent creates is flagged one level lower, since it hasn’t run yet.
The finding sits on the exact call the agent made, with its command text, so when something is missing you start from the line that removed it instead of reconstructing it from the agent’s summary.
The agent session is simulated; the output is real.
Backticks are commands
The agent’s report says it didn’t mean to run those commands at all. That’s the part worth slowing down on, because the mechanism is built into the shell.
Agents write Markdown, and Markdown puts code in backticks. In a shell, backticks inside double quotes are command substitution: the shell runs what’s between them before the outer command starts, and pastes in the output. The report doesn’t say which command carried the backticks, but here is how it typically goes. An agent that opens a pull request like this
gh pr create --title "Reset dev data" --body "To start clean, run `docker volume prune -f`."
runs the prune first, then opens a pull request whose description shows the prune’s output. $( ) inside double quotes does the same.
Version 0.16.0 adds a medium-severity rule for this. It looks at git, gh and glab commands that pass a double-quoted message, body, title, notes, description, comment or subject, and flags backticks or $( ) inside that text. Single quotes, escaped backticks, arithmetic like $((1+2)) and the quoted-heredoc form agents often use for long messages, $(cat <<'EOF' ... EOF), are safe and aren’t flagged.
The fix is quoting: single quotes, a quoted heredoc or a body file. The finding sits on that call, so its record shows the full command, backticks and all.
Try it
Both rules are in the free, open-source package:
npm install -g omnodex # or: omnodex update
omnodex install claude-code
Findings show up in the local dashboard. On Pro, guardrails can stop a matching call before it runs once you set the rule to stop. Out of the box guardrails stop nothing, and shadow mode shows how often these rules would have fired on your own work before you decide.
What it does not do
Both rules read the command text. A destructive command inside a script file the agent runs later, behind an alias, or assembled at run time isn’t seen. Other data stores and other ways of deleting a database, such as a framework’s own reset command or a database GUI, aren’t covered.
The shell expansion rule only checks the text arguments of git, gh and glab. Backticks in a curl --data body, or in text a script builds up in steps, are missed. A deliberate $(date) in a commit message is flagged.
A finding says the command matched. It doesn’t say the command finished or what it deleted. And none of this replaces Lopp’s advice: an agent on a disposable machine has much less to delete.
The destructive commands and shell expansion pages in the Risk Library list every pattern and the known gaps.
Sources
- Jameson Lopp on X, November 10, 2026, including the agent’s report in the attached screenshot
- Destructive system commands, Omnodex Risk Library
- Shell expansion in quoted text, Omnodex Risk Library