feat: support Claude Code auto permission mode (default) - #306
Open
mm-zacharydavison wants to merge 5 commits into
Open
mm-zacharydavison wants to merge 5 commits into
mm-zacharydavison wants to merge 5 commits into
Conversation
added 5 commits
July 15, 2026 11:11
Also add the matching permissionMode field to the TUI-side DeerConfig type (src/types.ts), which task 1 only added to packages/deerbox's config type — needed for options.config.defaults.permissionMode to typecheck in src/agent.ts.
mm-zacharydavison
force-pushed
the
feat/permission-mode
branch
from
July 15, 2026 09:11
e3ab789 to
a9a4a70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deer previously hardcoded
claude --dangerously-skip-permissionsfor every sandboxed agent. Claude Code has since added--permission-mode auto— a classifier-based mode (allow / soft-deny / hard-deny) that is safer than blanket-bypassing all permission checks while remaining suitable for unattended sandbox runs.This PR makes auto mode the default and lets users opt back into bypass via config.
Changes
defaults.permission_mode—"auto"(default) or"bypassPermissions", configurable in global~/.config/deer/config.tomland repo-localdeer.toml(repo-local wins). Values mirror Claude Code's own--permission-modevocabulary. Invalid values are rejected on both the global and repo-local paths, falling back to the merged/default value.session.ts) — new exportedpermissionModeArgs(config)helper drives all threeclaudeCmdbranches (continue / prompt / no-prompt):--permission-mode autoby default,--dangerously-skip-permissionswhen configured.agent.ts) — the tmux bypass-dialog dismissal now runs only inbypassPermissionsmode; auto mode has no startup dialog.deer.toml.exampleandCLAUDE.md.No new CLI argument or JSON-contract field — the value rides the existing merged-config flow. No per-task override (config-file only, by design).
Testing
permissionModeArgscases (default→auto, bypass, undefined→auto). All pass.bun run buildcompiles both binaries cleanly.Design spec:
docs/superpowers/specs/2026-07-15-permission-mode-design.mdImplementation plan:
docs/superpowers/plans/2026-07-15-permission-mode.md🤖 Generated with Claude Code