Disallow dangerous command in AI plugin

已回答

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

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

请先登录再写评论。