Permissions

Permissions in Claude Code are the rules that decide what Claude may do without asking you, what it must ask about first and what it is not allowed to do. They are written in the settings.json files as allow, ask and deny rules, and they combine with a permission mode. Claude Code itself enforces the rules; they don’t depend on what the model decides.

The rules that say what Claude may do on its own, what it must ask you about and what it’s not allowed to do. Like the keys you give a handyman.

You’ll also find it as: permission

How it shows up in Claude Code

Each rule has the form Tool(what exactly): Bash(npm run test *) for a command, Read(./.env) for a file, Edit(src/**) for a folder. Rules are checked in the order deny, then ask, then allow, so a ban always wins. On top of them sits the permission mode, which you switch with Shift+Tab: Claude starts in auto mode, where a second model reviews actions instead of you; in Manual mode (default) Claude only reads without asking, acceptEdits lets it edit files, plan only plans, and bypassPermissions asks nothing at all and is meant only for isolated containers. With /permissions you see every rule and the file it comes from.

Example

In .claude/settings.json, so the whole team gets the same rules:

{
  "permissions": {
    "allow": ["Bash(npm run test *)"],
    "deny": ["Read(./.env)"]
  }
}

Claude runs the tests without asking, but its tools can’t read the .env file with the passwords, whatever it is told.

Common mistakes

  • Writing bans only in CLAUDE.md. Instructions in CLAUDE.md shape what Claude tries to do, but they don’t block anything. Real bans go in deny.
  • “Allow and don’t ask again” for everything. Each permanent approval becomes a rule in settings.local.json; check the list with /permissions now and then.
  • bypassPermissions on your own computer. It’s meant only for isolated containers and virtual machines.
  • Thinking Bash rules are a perfect cage. A command written differently can slip through; for real isolation there’s the sandbox.

Related terms and where you learn it

The rules live in settings.json and use an allowlist and deny. The modes include plan mode and acceptEdits. You learn them in the lessons “How are the rules written?” and “How often does Claude ask you? (the permission modes)” in module 03, Permissions: what Claude may do.

Source: Claude Code documentation: Configure permissions

How it appears in the course

Claude Code reads its permissions (what Claude is allowed to do) from settings files.

Introduction · Module 03, Permissions: what Claude may do

A permission mode is like a level of trust: you choose how freely you let Claude work.

How often does Claude ask you? (the permission modes) · Module 03, Permissions: what Claude may do

Terminal only: in the desktop app, /permissions replies “isn't available in this environment”. There you edit .claude/settings.json directly, or ask Claude to edit it.

How do you view and add rules on the fly? · Module 03, Permissions: what Claude may do

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.