Disallow dangerous command in AI plugin

Answered

The AI coding agent has a brave mode. However I'm concerned about command like “dd”, “fdisk”, “rm”, etc. How to prevent dangerous things? A sandbox like approach would be nice.

0
1 comment

Hello. 

By default, the JetBrains AI agents require user approval for terminal commands. However, Brave mode disables this safeguard, allowing all commands to run automatically. For safety, especially with concerns about dangerous commands, it's best to keep Brave mode disabled.

You can use the Action Allowlist feature to specify which commands are allowed to run without approval and to block dangerous commands such as rm, dd, and fdisk. See the documentation here: https://www.jetbrains.com/help/ai-assistant/ai-chat.html#junie-approve-operations.

0

Please sign in to leave a comment.