Packs / Safe setup for Claude Code

Safe setup for Claude Code

Guardrails that stop an AI coding assistant from pushing your code, wiping your work or reading your secrets, plus two slash commands for reviewing and committing. Drop the folder into a project and it works the same on Windows, macOS and Linux. Part of Pro.

Get early access to Pro Read the free guide first

Why permission rules alone aren't enough

Claude Code's own documentation says a deny rule like Bash(git push *) stops git push origin main but not git -C . push origin main or git 'push' origin main, and that a rule for rm does not stop bash -c 'rm -rf build/'. Those are ordinary ways for an AI to write a command. This pack pairs deny rules, which Claude Code enforces itself, with hooks that read the whole command and close those gaps. The free guide explains the core idea with a working example.

What it blocks

LayerWhat it stops
Permission rules
enforced by Claude Code
git push, git reset --hard, sudo; reading .env files, SSH and AWS keys, secrets/; and, through the same rules, writing to them
Command hook
guard-bash.mjs
The same things written the way rules miss (git -C . push, git 'push', sh -c '...', pwsh -Command '...'); recursive deletes outside build folders; curl ... | sh and iwr ... | iex; DROP TABLE and other destructive database commands; git clean -f; printing every environment variable; switching off the guards through the shell
File hook
guard-files.mjs
Edits to .env and other secrets, the guard files themselves, .git, lock files and node_modules

It deliberately allows the harmless look-alikes: git commit -m "add push button", rm -rf node_modules, curl ... | jq, cat .env.example, and heredoc commit messages that mention pushing.

What's in the folder

How it was tested

What it can't do

Not released yet. Pro isn't open, so there is nothing to buy today. Join the waitlist and we'll email you when it opens, at the founding price.

Join the waitlist Free guide: block git push