“Another Approval Prompt?” Claude Code Permissions, Done Safely

Contents
Are you clicking “approve” on every single Claude Code command, or did you allow everything and now worry it might change a file that matters? Loose permission settings either break your flow or leave you discovering hard-to-undo changes after the fact.
Claude Code is Anthropic's AI coding tool that reads and edits files on your machine and runs commands from the terminal or desktop app. Permission settings are the rules that decide what it can do without asking, what it must always ask about, and what it can never do. This guide is based on the official docs (code.claude.com/docs) as of November 2026 and covers permission modes, writing rules, sandboxing, and splitting team and personal settings. Names change often, so double-check the docs before you apply anything.
Claude Code permission modes at a glance

A permission mode is the main switch for how often Claude Code asks for approval. Start with the default mode and widen it one step at a time, only for work you trust.
| Mode | Behavior | Good for |
|---|---|---|
| default | Asks before most edits and commands | First use, important repositories |
| acceptEdits | Auto-accepts file edits in the working folder | Work you can roll back with git |
| plan | Reads and plans, but doesn't edit | Reviewing direction before big changes |
| dontAsk | Auto-denies anything that would prompt | Unattended runs on allow rules only |
| bypassPermissions | Runs without prompts | Isolated containers or VMs only |
During a session, Shift+Tab cycles default → acceptEdits → plan. You can also start with a flag such as claude --permission-mode plan. The docs also describe an auto mode where a background classifier checks each action.
Write allow, ask, and deny rules in settings.json

For finer control than modes, add rules under permissions in settings.json. Put safe, frequent commands in allow, commands you always want to review in ask, and anything off-limits in deny.
- allow:
Bash(npm run test *)runs test commands without asking. - ask:
Bash(git push *)always confirms before pushing to a remote. - deny:
Read(./.env)andRead(./.env.*)block files holding passwords and tokens. - web access:
WebFetch(domain:example.com)allows fetching only from a set site.
Rules are checked in the order deny → ask → allow, and the first match decides. A broad deny can't be carved out by a narrower allow. Type /permissions in a session to see every active rule and the settings file it comes from.
Contain risky commands with the sandbox
The sandbox lets the operating system itself limit what shell commands can touch. Even if a command goes wrong, it can't write outside your working folder or reach sites you haven't allowed.
- Turn it on: type
/sandboxin a session, or add"sandbox": {"enabled": true}to a settings file. - Default scope: writes are limited to the working folder and a temp folder, and network access opens only for domains you allow.
- Platforms: macOS, Linux, and WSL2.
Because the blast radius is small inside the sandbox, you can afford fewer prompts. Teams with lots of repetitive tasks benefit most from turning it on.
Split team and personal settings

Keep rules the whole team follows in the shared repository file, and rules only you need in your personal file. That way nobody's preferences collide.
| File | Scope | Rules to put there |
|---|---|---|
| .claude/settings.json | Team, committed to the repo | Block .env reads, confirm before push |
| .claude/settings.local.json | Just you, this project | Allow commands you run often |
| ~/.claude/settings.json | You, every project | Your default mode |
Precedence runs managed settings → command-line flags → local project → shared project → user settings. Choosing “don't ask again” on a prompt saves the rule to your local project file.
Turn meeting decisions into permission rules
Rules like “a person always confirms deploy commands” or “never open the customer data folder” usually get decided in team meetings. Record that conversation with daglo and it becomes the raw material for your permission rules.
- Draft with daglo Chat: Pick the meeting board as the scope and ask, “Sort the AI working rules we agreed on into allowed, confirm first, and forbidden.” You get a list ready to move into allow, ask, and deny, and each answer cites its source so you can check the original remark.
- Know who decided what: daglo's Speaker ID remembers the voices of the people in your meetings and adds their real names instead of “Speaker 1” from the next recording on. You can see who proposed each rule and know who to talk to before changing it. daglo is the first service in Korea to offer this to every user.
Drop the list into the team's shared settings.json, and repeat the same steps whenever a meeting changes the rules.
#ClaudeCode #AICoding #Permissions #Sandbox #DeveloperProductivity #DevTools #AIWorkflow #daglo
Where talk becomes work.
Get started with 1,000 credits a month — no credit card required.