Skip to content

feat: add auto-mode toggle (--permission-mode auto) for Claude sessions#441

Open
DaniFdz wants to merge 4 commits intoasheshgoplani:mainfrom
DaniFdz:dani.fernandez/auto-mode
Open

feat: add auto-mode toggle (--permission-mode auto) for Claude sessions#441
DaniFdz wants to merge 4 commits intoasheshgoplani:mainfrom
DaniFdz:dani.fernandez/auto-mode

Conversation

@DaniFdz
Copy link
Copy Markdown

@DaniFdz DaniFdz commented Mar 26, 2026

Summary

Closes #440

Adds support for Claude Code's recently released auto mode (--permission-mode auto), which provides a middle ground between full interactivity and --dangerously-skip-permissions:

A classifier model reviews commands before they run, blocking scope escalation, unknown infrastructure, and hostile-content-driven actions while letting routine work proceed without prompts.

Changes

  • ClaudeSettings — new auto_mode config field (toml:"auto_mode")
  • ClaudeOptions — new AutoMode bool field; ToArgs() and ToArgsForFork() emit --permission-mode auto when set
  • buildClaudeExtraFlags / resume command builderinstance.go updated to pass the flag when launching sessions
  • Precedence: dangerous_mode > auto_mode > allow_dangerous_mode
  • New Session & Fork dialogs — "Auto mode" checkbox added between Skip permissions and Chrome mode
  • Setup wizard — same checkbox added to first-time setup
  • Config reference — docs updated with the new key
  • Tests — coverage for auto_mode in ToArgs, ToArgsForFork, and NewClaudeOptions

Config example

[claude]
dangerous_mode = false   # --dangerously-skip-permissions (bypasses all checks)
auto_mode = true         # --permission-mode auto (classifier-based auto-approval)

Screenshot

image

Adds support for Claude Code's auto mode, which uses a classifier model
to auto-approve safe operations while blocking scope escalation and
hostile-content-driven actions.

Precedence: dangerous_mode > auto_mode > allow_dangerous_mode

Closes asheshgoplani#440
@DaniFdz DaniFdz marked this pull request as draft March 26, 2026 10:23
@DaniFdz DaniFdz marked this pull request as ready for review March 26, 2026 13:41
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.

Add auto-mode toggle (--permission-mode auto) for Claude sessions

1 participant