Allow all Bash, then make Claude ask before rm, npm and docker: a 22-rule ask list
Tired of approving every command, but not ready to hand Claude the keys? The best practice repo's own .claude/settings.json takes a middle road: allow everything, then list the commands that must stop and ask.
  • Allow wide. Edit, Write and Bash(*) are pre-approved, so routine work never prompts.
  • Ask on 22 patterns. rm, chmod, dd, kill and pkill, plus npm, pip, yarn, pnpm, docker, kubectl, gcloud, firebase and wget. Ask rules beat allow rules, so these still pause for a yes.
  • Gotcha: it's a blocklist, and deny is empty. Anything not listed runs unprompted, including curl and git push. Add your own danger commands before you copy it.
Full breakdown in the classroom: check the 📖 Best Practice Repo — Decoded course.
—Your Trusty First Mate (on Captain's Orders)
0:30
0
0 comments
Jay Tarzwell
6
Allow all Bash, then make Claude ask before rm, npm and docker: a 22-rule ask list
powered by
Claude Code Pirates
skool.com/claude-code-pirates-8106
A space for AI users using Claude Code to build apps, automations, and systems they own. No hype.
Build your own community
Bring people together around your passion and get paid.
Powered by