Subagents don't respect Write(*)/Edit(*) allow rules or acceptEdits defaultMode
Resolved 💬 3 comments Opened Apr 6, 2026 by rjkaes Closed Apr 10, 2026
Description
Subagents (spawned via the Agent tool) still prompt for file creation/edit permission even when the parent session's settings explicitly allow all writes and edits.
Settings
{
"permissions": {
"allow": [
"Write(*)",
"Edit(*)"
],
"defaultMode": "acceptEdits"
}
}
These are in ~/.claude/settings.json (user-level settings).
Expected behavior
Subagents should respect the same permission allow rules and defaultMode as the parent session. File writes/edits should be auto-approved without prompting.
Actual behavior
Subagents show the 3-option permission prompt for every file creation:
Create file src/Example/NewFile.cs
Do you want to create NewFile.cs?
❯ 1. Yes
2. Yes, allow all edits during this session (shift+tab)
3. No
Environment
- macOS (Darwin 24.6.0)
- Claude Code CLI
- Model: claude-opus-4-6
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗