Claude Corner
Approving the Same Safe Command Every Session? Run /fewer-permission-prompts in Claude Code.
By Steven Sorensen ยท 1 Dec 2026

At a glance
- One built in command looks back at your sessions and finds the read only calls you keep approving.
- It writes a prioritized allowlist in the project settings file so you can review every rule.
- Committing that file gives your team the same list. Each person still has to trust the folder.
You keep approving the same harmless lookups in Manual mode. Claude Code can look back through your sessions and propose the list.
Why it matters
Anthropic's commands reference describes /fewer-permission-prompts as a skill that scans your transcripts for common read only Bash and MCP tool calls, then adds a prioritized allowlist to the project .claude/settings.json. The best practices guide places it after choosing Manual mode when it asks too often. The permissions guide says a short built in set, including ls, cat, grep and read only forms of git, already runs without a prompt.
How to trim permission prompts with your own history
We have not run these steps live.
- Start Claude Code in the root of the repository. The settings guide says it reads the shared
.claude/settings.jsonfrom the session's primary working directory. - Run
/fewer-permission-prompts. The commands reference says it writes the allowlist to the project.claude/settings.json. - Run
/permissions. The permissions guide says the dialog lists every rule and the file each rule comes from. - Remove any rule you would not approve without reading the call first. For a command you always want to see, add an ask rule, because the guide says Claude Code checks deny, then ask, then allow, and the first match wins.
- Look at the change with ordinary git, which is not a documented step, then commit
.claude/settings.json. The settings guide says committing it gives everyone who clones the repository the same permissions, and the commit message below is ours, not Anthropic's. - Keep personal approvals out of the shared file. Each teammate can override it in their own
.claude/settings.local.json, the guide says, which is also where a "Yes, and don't ask again" answer is saved.
# We have not run this script end to end on every platform
# Inside a session at the repository root: build the allowlist.
/fewer-permission-prompts
# Inside the session: review every rule and its source file.
/permissions
# From your shell: read the change, then share it.
git diff .claude/settings.json
git add .claude/settings.json
git commit -m "Add Claude Code allowlist from transcripts"
Gotchas
- Teammates must trust the folder. The permissions guide says allow rules in a project's
.claude/settings.jsonapply only after you accept the workspace trust dialog, which lists the rules. Deny and ask rules are not held back. - Allow never beats deny. A broad deny rule blocks a matching call even when a narrower allow rule also matches.
- MCP rules name one server. Allow rules take a wildcard only after a fixed server prefix such as
mcp__github__, the guide says, and an unanchored glob such asmcp__*is skipped and approves nothing. - It is a skill, not fixed logic. The skills guide says bundled skills give Claude detailed instructions and let it do the work with its tools, so read the list before you share it.
For rules you write by hand, see Set Claude Code Deny Ask and Allow Rules Before the First Edit.
Sources:
- Commands, Claude Code docs
- Best practices for Claude Code, Claude Code docs
- Configure permissions, Claude Code docs
- Settings files and precedence, Claude Code docs
- Extend Claude with skills, Claude Code docs
Recommended AI prompt
Copy this paragraph into ChatGPT, Claude, Gemini, Grok, or whatever AI you use.
I use Claude Code in Manual mode and keep approving the same harmless commands. Using only Anthropic's Claude Code docs for the command that builds an allowlist from my transcripts, the /permissions dialog and project settings, ask me which repository I work in and whether we share a committed settings file. Then give me a checklist to run the command, review each allow rule, choose which should become ask rules, keep personal approvals local, and confirm teammates see the rules in the workspace trust dialog before they apply.