Skip to content

Start Claude Code in auto permission mode by default - #1

Draft
chrisjenx wants to merge 1 commit into
JustSuperHuman:mainfrom
chrisjenx:worktree-auto-permission-mode
Draft

Start Claude Code in auto permission mode by default#1
chrisjenx wants to merge 1 commit into
JustSuperHuman:mainfrom
chrisjenx:worktree-auto-permission-mode

Conversation

@chrisjenx

Copy link
Copy Markdown

What

bro launched Claude Code with --dangerously-skip-permissions by default (bypass every check), with fully-manual as the only alternative (--safe). This makes auto mode (--permission-mode auto) the default instead — Claude's intelligent auto-mode approves safe actions and only prompts when needed.

Changes

  • New permissionMode config key in ~/.bro/config.json: "auto" (default) | "manual" | "bypass".
  • --safe now means manual (prompt for everything). The menu Skip permissions toggle opts a single launch into the dangerous --dangerously-skip-permissions bypass.
  • Shared permissionArgs(mode) maps the posture to claude flags; used by both the direct launcher (launch.js) and the account-pool launcher (pool.js).
  • Backward-compat: an existing dangerouslySkipPermissions: true/false still maps to bypass/manual when permissionMode is unset, so upgraders aren't surprised.
  • README + --help + default config updated.

Verification

No JS test harness exists in this package, so verified with bro --dry-run across a throwaway HOME:

Scenario claude args
Fresh/default config --permission-mode auto
--safe (none — manual)
Pool path (-p pool) --permission-mode auto
Legacy dangerouslySkipPermissions: true --dangerously-skip-permissions
Legacy false (none — manual)
permissionMode: "bypass" --dangerously-skip-permissions
permissionMode: "bypass" + --safe (none — --safe wins)

🤖 Generated with Claude Code

bro launched Claude with --dangerously-skip-permissions by default (bypass all
checks) and offered only fully-manual as the alternative via --safe. Default to
Claude's intelligent auto-mode (--permission-mode auto) instead.

- New `permissionMode` config key: 'auto' (default) | 'manual' | 'bypass'.
- --safe now means manual (prompt for everything); the menu "Skip permissions"
  toggle opts a single launch into the dangerous bypass.
- Legacy `dangerouslySkipPermissions: true/false` still maps to bypass/manual
  when `permissionMode` is unset, so existing configs keep working.
- Applies to both the direct launcher and the account-pool launcher.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant