Skip to content

Remove Edit/Write permission prompts#257

Merged
bd73-com merged 1 commit intomainfrom
claude/remove-unwanted-feature-c1ein
Mar 23, 2026
Merged

Remove Edit/Write permission prompts#257
bd73-com merged 1 commit intomainfrom
claude/remove-unwanted-feature-c1ein

Conversation

@bd73-com
Copy link
Owner

@bd73-com bd73-com commented Mar 23, 2026

Summary

Adds Edit and Write to the project-level Claude Code permissions allow list in .claude/settings.json. This removes the interactive confirmation prompt that appears every time Claude attempts to edit or create a file, streamlining the development workflow.

Changes

  • .claude/settings.json: Added permissions.allow array with Edit and Write entries, preserving the existing hooks configuration

How to test

  1. Open a new Claude Code session in this repo
  2. Ask Claude to edit any file (e.g., "add a comment to README.md")
  3. Verify that no "Allow Claude to Edit?" permission prompt appears
  4. Ask Claude to create a new file
  5. Verify that no "Allow Claude to Write?" permission prompt appears

https://claude.ai/code/session_01G8R5ayrkzQRk53TAzUhohs

Summary by CodeRabbit

  • Configuration
    • Introduced permissions configuration settings with support for edit and write operations.

@github-actions github-actions bot added the chore Maintenance or refactoring label Mar 23, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 23, 2026

📝 Walkthrough

Walkthrough

Adds a new top-level permissions configuration object to .claude/settings.json with an allow list containing "Edit" and "Write" entries, without modifying existing configuration structure or hooks.

Changes

Cohort / File(s) Summary
Configuration
.claude/settings.json
Added new permissions object with allow list containing "Edit" and "Write" entries (+6 lines).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

chore

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding Edit and Write permissions to remove confirmation prompts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/remove-unwanted-feature-c1ein

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot]
coderabbitai bot previously requested changes Mar 23, 2026
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/settings.json:
- Around line 2-7: The "permissions" -> "allow" array currently pre-authorizes
"Edit" and "Write", enabling automatic file modification/creation; remove or
restrict these entries to avoid bypassing safety prompts—either delete "Edit"
and "Write" from the "allow" array or replace them with a less-privileged option
(or scoped roles) and add a short documented decision note explaining why this
change was made so reviewers know the intended security posture.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f0056c7f-2395-42f0-b27e-19007d63cf3b

📥 Commits

Reviewing files that changed from the base of the PR and between 8ea57d8 and 8b5b4a5.

📒 Files selected for processing (1)
  • .claude/settings.json

Comment on lines +2 to +7
"permissions": {
"allow": [
"Edit",
"Write"
]
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

What are the valid permission names for Claude Code settings.json permissions.allow array?

💡 Result:

The valid permission names for the permissions.allow array in Claude Code's settings.json are the exact tool names used in permission rules. These are listed in the official Tools reference documentation. Core tools include: - Agent (spawns subagents) - AskUserQuestion - Bash (shell commands) - CronCreate, CronDelete, CronList (scheduled tasks) - Edit (modify files) - ExitPlanMode - Glob (file pattern search) - Grep (search file contents) - LSP (language server protocol) - NotebookEdit - Read (read files) - TaskOutput - TodoWrite (task checklist) - ToolSearch - WebFetch (fetch URL content) - WebSearch - Write (create/overwrite files) Additional patterns: - Agent(AgentName) e.g., Agent(Explore), Agent(Plan) - Bash(command_pattern) e.g., Bash(npm run *) - Read(file_pattern), Edit(file_pattern), Write(file_pattern) using gitignore-style globs - WebFetch(domain:example.com) - mcpservertool for MCP tools Rules follow the format "Tool" or "Tool(specifier)". Use just the tool name to allow all uses, or add specifiers for fine-grained control. Deny rules take precedence.

Citations:


Pre-authorizing Edit and Write permissions bypasses safety prompts—ensure this aligns with your security requirements.

The "Edit" and "Write" permission names are valid in Claude Code. However, this configuration grants automatic file modification and creation without interactive confirmation.

Risk: Claude will modify and create files without explicit approval for each operation, increasing the chance of unintended changes propagating if instructions are misunderstood or if the AI makes mistakes.

When this is appropriate: Personal development environments where you fully trust the AI's judgment and can quickly recover from errors.

When to reconsider: Shared repositories, production codebases, environments with critical files, or when you need explicit oversight of every modification.

Make a deliberate decision about whether this security trade-off is acceptable for your workflow and codebase sensitivity.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/settings.json around lines 2 - 7, The "permissions" -> "allow" array
currently pre-authorizes "Edit" and "Write", enabling automatic file
modification/creation; remove or restrict these entries to avoid bypassing
safety prompts—either delete "Edit" and "Write" from the "allow" array or
replace them with a less-privileged option (or scoped roles) and add a short
documented decision note explaining why this change was made so reviewers know
the intended security posture.

@bd73-com bd73-com dismissed coderabbitai[bot]’s stale review March 23, 2026 17:48

Dismissing bot review — changes are intentional

@bd73-com bd73-com merged commit 11af298 into main Mar 23, 2026
3 checks passed
@bd73-com bd73-com deleted the claude/remove-unwanted-feature-c1ein branch March 23, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance or refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants