Skip to content

Feature request: Command filters for saftey #1538

Closed

Description

@whaaaley

I've been crafting a git agent file to create atomic commits for me automatically. It's great so far, but I do want to prevent the LLM from writing commands that could be harmful.

As a user... I'd like to filter out or block commands that match specific patterns that I specify. For example creating new branches, pushing commits, removing files, etc.

--

I know we can prompt our way to a certain level of safety, but I'd like to have some hard limits put in place on specific patterns.

Activity

  1. yihuikhuu commented on Aug 2, 2025

    @yihuikhuu
    Contributor

    Would the recently introduced permissions feature solve your problem?

    It won't filter out those commands, but you can configure certain commands to require approval

  2. whaaaley commented on Aug 2, 2025

    @whaaaley
    Author

    Absolutely I totally missed that!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions