Stops dangerous commands before Claude Code runs them.
Website · Install · What it runs and sends · Privacy · Source
Boxdawn guard judges every Bash and PowerShell command before Claude Code runs it. A command that would wipe a directory outside your project, force-push over shared history, drop a database or destroy cloud resources is denied or held for your approval. Everything else passes to Claude Code's own permission settings, untouched. The guard never says allow.
This is the directory edition of the plugin. The guard's source, its fixed rules and its tests are in boxdawn/guard.
From the Claude plugin directory, or in Claude Code from Boxdawn's own marketplace, which ships every build inside the plugin and downloads nothing at session start:
/plugin marketplace add boxdawn/guard
/plugin install boxdawn-guard@boxdawn
- At session start (
scripts/install.shon macOS and Linux,scripts/install.ps1on Windows): if the guard build for this version is not in the plugin's data folder yet, the script downloads one file for your machine from the boxdawn/guard v0.4.29 release on GitHub, checks its sha256 against the value written in the script, unpacks it into the data folder and removes the download. A file whose sha256 does not match is discarded. Once the build is in place, later sessions make no download. The request to GitHub carries no command, path or key; GitHub sees your IP address. - Before each Bash or PowerShell call: the hook runs the downloaded
bdxguardwith the call's details on its standard input and returns deny, ask or nothing. This runs on your machine and opens no connection. - Before each Read or Grep call: the same build checks whether the call reads a secret file by name, also on your machine with no connection.
- Before each Write, Edit or MultiEdit call: the same build checks, by the path as written, whether the call changes a Claude Code settings file or a file in a Claude Code plugins folder, also on your machine with no connection; an ordinary file gets no decision.
- Before a shell command a skill runs while it loads (
!`…`in a skill or a command such as/security-review), from Claude Code 2.1.332: the same check; a deny or an ask keeps that command from running. Earlier versions run those commands without the guard. - Snapshots, on unless you turn
undooff in/plugin: before each Bash or PowerShell call the build saves a copy of the project's files (ignored ones such as.envtoo) in the plugin's data folder on this machine; at session start it takes the project's first copy in the background and removes copies of projects not used for 30 days. Nothing is sent./boxdawn-guard:undoshows the copies and puts one back. What is and is not saved: Bring back files. - Deny and ask record, on unless you turn
judgment_logoff in/plugin: each deny or ask a rule gives on a Bash or PowerShell call is written as one line in the plugin's data folder on this machine (when, which tool, the decision, the rule names and where each target sits; never the command, a path or the reason text). Nothing is sent./boxdawn-guard:logshows the last 30 days by reason, and ends with a block (rule names and counts, no command, path or time) you can paste into a public GitHub issue if a deny or ask got in the way for nothing; it goes nowhere unless you paste it. A day's file goes once it is more than 30 days past. Details: Deny and ask record. - CI after a push, off unless you turn
ci_noticeon in/plugin: after agit pushin Bash or PowerShell, the build waits in the background (up to 25 minutes) for the GitHub Actions runs of the pushed commit through theghcommand-line tool you have signed in, and tells Claude when a run fails whose workflow passed on the run before it. These requests go to GitHub with yourghlogin; nothing goes to Boxdawn. It never blocks a call. Details: CI after a push. - Until the build is in place (first session start, no network, or a sha256 mismatch), the hook cannot run and Claude Code blocks the Bash or PowerShell call (
onFailure: block): no guard, no command. Read, Grep, Write, Edit and MultiEdit calls are not blocked when the guard cannot run. - With a Boxdawn API key in the plugin's settings (
/plugin configure), the guard also fetches signed rules from Boxdawn in the background at session start. That request carries the key only. On a paid plan the same background process then sends the block record (the tool, deny or ask, the rule ids and where the target sits; never a command or a path) and deletes it from your machine, unlesskeep_blocks_localis on. Without a key, nothing is sent to Boxdawn.
What the guard sends, keeps and deletes: boxdawn.com/privacy.
rm, find -delete, dd, truncate, chmod -R, sed -i and redirects onto files outside the project; git force push, reset --hard, clean, branch delete, history rewrite, checkout -- . and restore ., stash drop; database clients (DROP, TRUNCATE, DELETE without WHERE) and tools that reset a database (prisma migrate reset, artisan migrate:fresh, supabase db reset, alembic downgrade base and the like); terraform destroy and apply -auto-approve, kubectl delete, helm uninstall, aws s3 rm/rb and other cloud deletes; gh repo delete and gh api DELETE; docker prune and compose down -v; robocopy /MIR and lftp mirror --delete; adb clearing an app's data or deleting on a phone and fastboot wiping one; privilege escalation and code piped into an interpreter. A command handed to bash -c (also -lc, -ec), sudo, env, timeout, nohup, setsid, flock, watch, script -c, tmux new, screen, wsl and the like is judged as if typed directly. When nobody can answer a prompt (bypassPermissions, dontAsk), an ask becomes a deny. The full rules: command_rules_source.py.
Reading a secret file by name (.env files, SSH private keys, cloud and package-registry credentials and the like) asks; sending one out is denied. This is a check on file names, not a sandbox: what it does not see is listed in the guard README.
Changing a Claude Code settings file (.claude/settings.json, settings.local.json) or a file in a Claude Code plugins folder with Write, Edit or MultiEdit asks, and is denied when nobody is there to approve it: such a change can turn hooks, plugins and this guard off. The path is read as written and never looked up, so a link or another name for the same file is not seen.
Builds: Windows x64 (and Windows on Arm through emulation), macOS on Apple silicon and Intel, Linux x64 and ARM64.
FSL-1.1-ALv2. Source-available; each version becomes Apache 2.0 two years after its release. Built by Boxdawn.