You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using multi-agent orchestration (via the Task tool), spawned agents don't inherit the parent agent's runtime approvals or respect pre-approved patterns in settings.local.json consistently. This results in getting bombarded with permission prompts for commands that have already been approved.
Steps to Reproduce
Have extensive pre-approvals in .claude/settings.local.json including patterns like "Bash(find:*)", "Bash(grep:*)", etc.
Run a multi-agent flow that spawns specialized agents
Watch as each spawned agent asks for permission to run commands like:
find ~/workspace/my_project/tests -name "*.test.ts" -type f < /dev/null | xargs grep -L "afterAll\|afterEach"| head -10
Expected Behavior
Spawned agents should inherit parent's runtime approvals
Pre-approved patterns in settings.local.json should be respected by all agents
Complex piped commands that match component patterns should be auto-approved
Current Behavior
Each spawned agent starts with fresh approval state
Users get prompted repeatedly for the same types of commands
Workflow is significantly disrupted by constant approval requests
Suggested Solutions
Add a flag to Task tool to inherit parent approvals
Improve pattern matching for complex piped commands
Add a "trust mode" for multi-agent workflows in secure environments
Allow wildcard approval patterns like "Bash(*)" for trusted workspaces
Impact
This makes multi-agent workflows extremely frustrating to use, defeating much of their productivity benefit.
Your example with piped in xargs grep | xargs grep is related to #2983 where | xargs grep asks for permissions in a single (top level) agent as well, even though xargs grep is in allowed tools.
I personally experience the pain of this as I work with c# code that has very stringent editorconfig and stylecop. Claude code runs in WSL Ubuntu and a) has a horrible habit of including empty lines at the end of a file and also using only \n at the end of the file instead of \r\n. So this spirals and the context window is too big and it forgets the instructions I put into claude.md or any other instructions. I have somewhat fixed it with a sub-agent due to a cleaner context, but the bash commands to fix the \n is constantly prompting, making the friction so intense, I might as well do the work myself, defeating the purpose of the sub-agent. How they "missed" this as being an MVP necessity (permissions are inherited from the parent when using a sub-agent from yaml) just boggles my mind. Claude Code writing quality c# is already bad enough that I need a 300 line context to tell it what it needs to do, but then to have the bad tool permissions prompting makes it an experience I wouldn't want to wish on my worst friend.
It's been very frustrating using claude code's "advertised" multi-agent orchestration capabilities. I get prompted for almost EVERY command that has been approved and included in my settings.json file.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
nickolay-kondratyev commentedon Jul 9, 2025
Your example with piped in xargs grep
| xargs grepis related to #2983 where| xargs grepasks for permissions in a single (top level) agent as well, even though xargs grep is in allowed tools.darthmolen commentedon Sep 11, 2025
I personally experience the pain of this as I work with c# code that has very stringent editorconfig and stylecop. Claude code runs in WSL Ubuntu and a) has a horrible habit of including empty lines at the end of a file and also using only \n at the end of the file instead of \r\n. So this spirals and the context window is too big and it forgets the instructions I put into claude.md or any other instructions. I have somewhat fixed it with a sub-agent due to a cleaner context, but the bash commands to fix the \n is constantly prompting, making the friction so intense, I might as well do the work myself, defeating the purpose of the sub-agent. How they "missed" this as being an MVP necessity (permissions are inherited from the parent when using a sub-agent from yaml) just boggles my mind. Claude Code writing quality c# is already bad enough that I need a 300 line context to tell it what it needs to do, but then to have the bad tool permissions prompting makes it an experience I wouldn't want to wish on my worst friend.
JediMasterKT commentedon Oct 24, 2025
It's been very frustrating using claude code's "advertised" multi-agent orchestration capabilities. I get prompted for almost EVERY command that has been approved and included in my settings.json file.
Is this issue being track for a fix soon?
github-actions commentedon Dec 11, 2025
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
github-actions commentedon Jan 13, 2026
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
github-actions commentedon Jan 20, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.