Skip to content

Command permissions #3960

Closed as duplicate
Closed as duplicate

Description

@matssk

What feature would you like to see?

I would suggest three permissions for command line commands. Always block, Always ask and Always allow

This could come as options the first time it tries to run a command. For example if it tries to run 'git' you would see the options: "Allow once", "Always allow", "Always ask", "Always block", "Block once". Essentially what this would do is to add commands to a blacklist and a whitelist. Commands that are not on either a blacklist or a whitelist would be "always ask" so no need for an extra list for this.

Are you interested in implementing this feature?

No response

Additional information

No response

Activity

  1. arteagacz commented on Sep 22, 2025

    @arteagacz

    That would be useful, but it is important to be able to allow all command executions too, regardless of params, so not just "nl -ba packages/shared/src/services/base/base.service.ts" but something like "nl /"

  2. AlexB138 commented on Oct 27, 2025

    @AlexB138

    Strongly support this. It is tedious to have to approve the same commands over and over.

    If finer granularity is needed, perhaps parameters could be regexed. That is to say, you could approve the command foo * OR some more strict regex where foo bar is allowed but foo baz is not.

  3. changed the title [-]command permissions[/-] [+]Command permissions[/+] on Nov 13, 2025
  4. etraut-openai commented on Dec 14, 2025

    @etraut-openai
    Contributor

    I'm going to close this in favor of #3085, which has more upvotes.

    We have recently added a new preview feature called "rules" which implements this functionality. For details, refer to this documentation.

  5. ziyuang commented on Feb 16, 2026

    @ziyuang

    For details, refer to this documentation.

    Page not found

  6. etraut-openai commented on Feb 16, 2026

    @etraut-openai
    Contributor

    @ziyuang, apologies for the stale link. Here's the updated link. I've also updated my original post.

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

    enhancementNew feature or requestsandboxIssues related to permissions or sandboxing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions