day 22 building guard for Claude Code
0.4.16 is out
9,574 commands from my Claude Code history, judged by 4 versions
asks: 916 → 605 → 539 → 527
denies: 97 → 86 → 86 → 86
X=rm; $X -rf ~ went from ask to deny
my dev work, not a user sample
https://t.co/xmIRe25vYO
day 21 building guard for Claude Code
day 19 said guard doesn't open script files. 0.4.13 does
bash scripts/wipe.sh with rm -rf ~/ inside
0.4.11: no decision
0.4.13: ask
it asked on 1 of 52 scripts I tested
which script line should it ask about?
https://t.co/xmIRe25vYO
day 20 building guard, pre-run checks for Claude Code
2 of my 31 no-decision lines are docker cleanup:
docker network prune -f
docker stop n8n && docker rm n8n
guard asks on docker volume rm. not on these two
what docker command should it ask about?
https://t.co/xmIRe25vYO
day 19 building guard, pre-run checks for Claude Code
4 of my 31 no-decision lines (3 reports): the agent ran a script. the damage was a line inside it
guard reads the command line, not the file
how would you check a script before it runs?
https://t.co/xmIRe25vYO
day 18 building guard, pre-run checks for Claude Code
of my 31 no-decision commands, the biggest group is git. 6 of its 8 lines are stash or pop
guard asks on stash drop and clear. plain stash and pop: no rule
should they ask? you run them all day
https://t.co/xmIRe25vYO
day 17 building guard, pre-run checks for Claude Code
you picked 2 of my 31 no-decision groups: databases, files outside the repo
db: 3 of 6 are bare SQL, sender unknown
files elsewhere on the machine: 5. add db, Docker, GitHub: 15
https://t.co/xmIRe25vYO
#buildinpublic
I tried to make guard ask less often. All 2,369 of my tests passed.
Then I handed the change to a second AI reviewer that was not told what I expected. One job: find a command this version judges weaker than before.
It ran twice. It found one both times.
One of them: a five-line command with rm -rf / inside. Before my change: denied. After: no decision at all. The change misread where a heredoc ended and took rm -rf / for input text.
The version that was safe saved 8 prompts out of 701 on my own machine's history. I dropped it.
What shipped in 0.4.10 instead: 4 old holes the same review turned up. Example: cat <<EOF | bash used to get no decision. Now it asks.
It also listed more shapes. 0.4.11 closed some; others are still open.
Who checks your work after tests go green?
https://t.co/BlMYfoE2pw
tried to make guard ask less. my 2,369 tests passed
then a second AI reviewer, not told what I expected, hunted for commands the change judged weaker. found one, both rounds
dropped the change. shipped the 4 old holes it turned up
who checks your work after tests go green?
day 13 building guard, a pre-run command check for Claude Code
re-judged my 107 incident commands on 0.4.11: still 76. the list has none of what 0.4.11 changed
sorted the 31 with no decision, table below
which group first?
https://t.co/xmIRe25vYO
#buildinpublic
My guard for Claude Code asked before `curl ... | bash`.
It said nothing about `curl ... | env bash`. One wrapper word and guard had no opinion.
An internal review found it. From 0.4.11 it asks. Ask, not block.
https://t.co/xmIRe25vYO
day 12 building guard, a pre-run command check for Claude Code
a review found a gap: guard asked on `curl | bash`, not `curl | env bash`. fixed
13,986 recorded commands re-judged: 25 new prompts, all appends
what fooled your checks?
https://t.co/xmIRe25vYO
#buildinpublic
day 11 building guard, a pre-run command check for Claude Code
first 2 GitHub stars
a commenter caught me: my "76 of 107" was scored on the same commands I wrote the rules for. no held-out set
now new incidents get scored first
how do you keep your own numbers honest?
https://t.co/0SsgFUq0kx
#buildinpublic
This week I posted that guard gives a decision on 76 of 107 commands from public AI agent deletion reports, up from 53.
A commenter asked if those were the same commands I wrote the new rules against.
They were. #ClaudeCode
So 76 means guard now covers cases it has already studied. It says nothing about an incident it has never seen. I have no held-out set.
New habit: when a new incident report comes in, I score it first and change rules after.
The README also has a new section, "What it does not see": deletes inside scripts and tests, commands sent over ssh or into a container, a container handed your whole disk, a git alias.
How do you test a safety tool without grading your own homework?
https://t.co/0SsgFUpsuZ
Building Boxdawn guard in public, day 10.
13 releases since Nov 1. 0 GitHub stars yet.
Today: of 107 commands from public AI agent incident reports, 76 now get a decision before they run. Yesterday, 53.
The 31 left include deletes hidden inside scripts. That's the hard one.
I collected 107 commands from public reports of AI agents wiping files, repos and databases, and ran them through Boxdawn guard, the Claude Code plugin I build.
Yesterday's version gave 53 of them a decision (deny or ask). Today's gives 76.
The 31 it still misses matter more: What changed: a command hidden inside tmux new, setsid, screen or wsl is now read too.
Database resets like prisma migrate reset and supabase db reset, git checkout -- . and git stash drop now get denied or held until you say yes.
Still missed: a delete inside a script or test file, a command sent over ssh, docker -v mounting your whole disk. guard reads the command line, not what it runs.
Some commands are rebuilt from the report text. Judge-only, nothing executed.
https://t.co/BlMYfoE2pw
I took the commands from 6 public Claude Code bug reports where an agent wiped a home folder, a repo, or a drive, and ran them through Boxdawn guard.
On 0.4.6, 5 of 13 got no decision.
On 0.4.7, shipped today: 2.
What changed and what still gets through:
Now caught:
- bash -lc "...rm -rf ..." and the same string from PowerShell. guard now reads code passed through flags like -lc, and asks because the target is only known at run time
- adb shell pm clear, which wiped an app's data. New adb rule, asks first
Still gets through: cargo test and ./rebuild.sh, where the rm -rf sat inside a test or script file. guard reads the command line, not the files it runs.
Judge-only on Windows 11, nothing executed. Some commands are reconstructed, one is a comparison case.
guard is a Claude Code plugin from Boxdawn. It runs locally with no API key.
https://t.co/BlMYfoE2pw
#ClaudeCode
Claude Code only for now. Without an API key it opens no network connection, and the rules are readable in the repo.
claude plugin marketplace add boxdawn/guard
claude plugin install boxdawn-guard@boxdawn
https://t.co/xmIRe25vYO
#Claude#AI
rm -rf tests/patches/plan/ ~/
One extra ~/ and a cleanup reaches your home folder.
Boxdawn guard reads every Bash and PowerShell command before Claude Code runs it, and denies this one.
10 releases since Nov 1. What changed this week
0.4.1 follows links. A symlink pointing outside the project counts as outside.
0.4.2 Windows Grep tool searches skip .env and SSH keys.
0.4.3 guard messages in Korean.
0.4.4 asks before tar -C, unzip -d, rsync outside the project.
0.4.5 grep -r runs with secret files left out.