Enum PermissionMode
Controls the permission model for tool invocations within a session.
public enum PermissionMode
Fields
AcceptEdits = 2Auto-approve file edits — ConfirmOnce tools (file writes, git ops) are auto-approved, but AlwaysConfirm tools (shell, web search) still require confirmation.
BypassAll = 3Auto-approve everything — equivalent to --dangerously-skip-permissions.
Normal = 0Default interactive mode — prompts for confirmation based on safety tiers.
Plan = 1Read-only mode — only AutoApprove-tier tools (read/explore) are allowed; all write and shell tools are blocked at the filter level.