You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: align OpenCode permission defaults with Claude Code for reduced approval prompts #28
OpenCode's default permission configuration is minimal — most tool operations fall through to "ask", causing frequent approval prompts during normal development workflows. In contrast, Claude Code ships with a more ergonomic permission model:
Claude Code: defaultMode: "acceptEdits" + broad allow-list for Read/Glob/Grep/Edit/Write/WebSearch/WebFetch + pattern-based Bash whitelist
OpenCode: Only denies packages/opencode/migration/* for edits; everything else defaults to "ask"
This difference makes OpenCode feel significantly more intrusive during day-to-day coding sessions.
Proposed Solution
Update .opencode/opencode.jsonc to include Claude Code-aligned permission defaults:
Read/Edit/Glob/Grep/List: "allow" by default (matching Claude Code's unconditional allow)
Bash: Pattern-based whitelist for common dev tools (git, gh, node, npm, bun, python, curl, docker, etc.) with "ask" as fallback
Activity
feat: align permission defaults with Claude Code's approval model
feat: expand bash allow-list with monorepo dev tools
feat: add question and todowrite to permission allow-list
feat: align permission defaults with Claude Code's approval model
feat: expand bash allow-list with monorepo dev tools
feat: add question and todowrite to permission allow-list