Skip to content

Multi-agent flows don't inherit permission approvals, causing repetitive prompts #2823

Closed as not planned

Description

@mkreyman

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

  1. Have extensive pre-approvals in .claude/settings.local.json including patterns like "Bash(find:*)", "Bash(grep:*)", etc.
  2. Run a multi-agent flow that spawns specialized agents
  3. 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

  1. Add a flag to Task tool to inherit parent approvals
  2. Improve pattern matching for complex piped commands
  3. Add a "trust mode" for multi-agent workflows in secure environments
  4. 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.

Activity

  1. added
    bug
    has repro
    on Jul 1, 2025
  2. nickolay-kondratyev commented on Jul 9, 2025

    @nickolay-kondratyev

    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.

  3. darthmolen commented on Sep 11, 2025

    @darthmolen

    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.

  4. JediMasterKT commented on Oct 24, 2025

    @JediMasterKT

    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?

  5. github-actions commented on Dec 11, 2025

    @github-actions

    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.

  6. added
    autoclose
    on Dec 11, 2025
  7. github-actions commented on Jan 13, 2026

    @github-actions

    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.

  8. github-actions commented on Jan 20, 2026

    @github-actions

    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.

  9. locked as resolved and limited conversation to collaborators on Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:securityarea:toolsautoclosebughas repro

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions