← Back to library

▶ quest log

Safer Alternative to Bypass Permissions: Allow + Deny Lists in Claude Code

Claude Code / SkillsAdvanced@itsmariahbrunnersaved JUN 11

◇ Could this help me?

Yes: This allow/deny list pattern is directly applicable to this project right now. We run in bypass mode but should have explicit deny rules for rm -rf and git push --force. General Claude Code update.

✦ Walkthrough+10 xp / step
0 / 5 steps · adopt for +40
$ suggested_prompt+40xp

Set up an allow list and deny list in this project's Claude Code permissions. Allow list: npm run, git status, git log, git diff, reading files. Deny list: rm -rf, git push --force, sudo, DROP TABLE. Show me the settings.json changes.

More from Claude Code / Skills

Enter world →