[PR #2148] Change default permissions for bash, edit, and webfetch from allow → ask #10208

Closed
opened 2026-02-16 18:14:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2148

State: closed
Merged: No


This PR changes the defaults for bash, edit, and webfetch tools to ask instead of allow.

Why:

Safety: Prevents accidental shell commands, file edits, or network requests that could be destructive or surprising for new users.

Trust & onboarding: New users expect potentially risky actions to require confirmation. Default-allow can feel unsafe and discourage adoption.

I was personally burned by these defaults when trying out opencode for the first time and qwen 3 coder just edited files with shell commands when it could not use the edit tool because it was in Planning mode.

The gemini-cli defaults to ask which felt much saner when trying it out i don't expect an ai-cli tool to just let an agent run arbitrary shell commands on my system by default.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2148 **State:** closed **Merged:** No --- This PR changes the defaults for bash, edit, and webfetch tools to ask instead of allow. Why: Safety: Prevents accidental shell commands, file edits, or network requests that could be destructive or surprising for new users. Trust & onboarding: New users expect potentially risky actions to require confirmation. Default-allow can feel unsafe and discourage adoption. I was personally burned by these defaults when trying out opencode for the first time and qwen 3 coder just edited files with shell commands when it could not use the edit tool because it was in Planning mode. The gemini-cli defaults to ask which felt much saner when trying it out i don't expect an ai-cli tool to just let an agent run arbitrary shell commands on my system by default.
yindo added the pull-request label 2026-02-16 18:14:49 -05:00
yindo closed this issue 2026-02-16 18:14:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10208