Skip to content

It should be possible to configure a set of commands the agent can run without permission #2484

Closed as duplicate

Description

@udr013

Describe the feature or problem you'd like to solve

No response

Proposed solution

Currently you can only set allow-all to allow the agent to execute commands without permission. Otherwise with every new session i have to approve every command over and over again.

The --allow-all flag bypasses all permission checks, which create real risks:

  • Destructive commands like" rm-rf" could be e executed without confirmation
  • Permission changes (chmod, chown) could silently alteer system security

A granular allowlist ( eg allow read, find, cat,ls but block rm, chmod, would provide a much better balance between autonomy and safety.

This should be configurable via instruction or agent files

Example prompts or workflows

No response

Additional context

No response

Activity

  1. added theissue type on Apr 2, 2026
  2. jamesdraughn commented on Apr 3, 2026

    @jamesdraughn

    I think the proposed feature should also include the ability to granularly remove permissions after allow-all.

  3. alkutn123-tech commented on Apr 3, 2026

    @alkutn123-tech

    السماح للجميع

  4. alkutn123-tech commented on Apr 3, 2026

    @alkutn123-tech

    السماح

  5. added
    area:permissionsTool approval, security boundaries, sandbox mode, and directory restrictions
    on Apr 6, 2026
  6. added
    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents
    on Apr 6, 2026
  7. cbruegg commented on Apr 10, 2026

    @cbruegg

    It would be great if Copilot CLI could reuse the VS Code settings for auto approvals (chat.tools.terminal.autoApprove)

  8. schizek commented on Apr 10, 2026

    @schizek

    I absolutely agree, we need this feature. It is one of the main reasons I prefer using Warp or Claude for my terminal-based AI rather than Copilot CLI.

    FWIW, this appears to be a duplicate of #1973

  9. patniko commented on Oct 26, 2026

    @patniko
    Collaborator

    Thanks for the report! This is the same issue as #1973, so I'm closing this one as a duplicate. Please follow that issue for updates and add any extra details there.

    Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.

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:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:permissionsTool approval, security boundaries, sandbox mode, and directory restrictions

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions