Claude Code uses a permission system combining prompt injection detection, static analysis, sandboxing, and human oversight.

Out of the box, a small set of safe commands are pre-approved. To pre-approve more, run /permissions and add to the allow and block lists. Check these into your team's settings.json.

Full wildcard syntax is supported — e.g., Bash(bun run *) or Edit(/docs/**).

Original source on X