Skip to content

feat: add 'deny' option to permission configuration system#1620

Closed
josephschmitt wants to merge 1 commit into
anomalyco:devfrom
josephschmitt:deny-permission
Closed

feat: add 'deny' option to permission configuration system#1620
josephschmitt wants to merge 1 commit into
anomalyco:devfrom
josephschmitt:deny-permission

Conversation

@josephschmitt

@josephschmitt josephschmitt commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Users can now permanently block specific bash commands or file operations by setting permission values to "deny" instead of just "ask" or "allow". This provides stronger security controls by preventing the AI from executing potentially dangerous commands or modifying files when explicitly forbidden.

The deny option works for both bash command patterns and file editing permissions:

  • bash: { "rm *": "deny", "sudo *": "deny" }
  • edit: "deny"

This is super important for us to be able to set certain high-risk tools/commands to always deny, such as the aws cli or terraform.

🤖 Generated with opencode

Co-Authored-By: opencode noreply@opencode.ai

Users can now permanently block specific bash commands or file operations by setting permission values to "deny" instead of just "ask" or "allow". This provides stronger security controls by preventing the AI from executing potentially dangerous commands or modifying files when explicitly forbidden.

The deny option works for both bash command patterns and file editing permissions:
- bash: { "rm *": "deny", "sudo *": "deny" }
- edit: "deny"

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
@rekram1-node

Copy link
Copy Markdown
Collaborator

support for this was added yesterday!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants