M31A separates approval modes (an interactive default for tool confirmation) from policies (durable, declarative rules evaluated by the core policy engine).
The four modes
| Mode | Behavior |
|---|---|
default | Prompt for approval before executing tools. This is the default. |
auto_edit | Auto-approve edit tools; still prompt for other tools such as shell commands. |
yolo | Auto-approve all actions. Available only from the CLI, not from settings. |
plan | Read-only mode; write and shell actions are blocked. |
Set a mode at startup:
m31a --approval-mode auto_edit
m31a --approval-mode plan
m31a --approval-mode yoloOr cycle modes interactively with Shift+Tab. --yolo is equivalent to --approval-mode yolo but cannot be combined with --approval-mode. general.defaultApprovalMode accepts default, auto_edit, or plan; YOLO must be requested explicitly per invocation. general.plan.enabled defaults to true and general.plan.modelRouting can switch between model tiers in Plan Mode.
Folder trust
Workspace trust is the first gate. Until a folder is trusted, file and shell tools are restricted. Trust a folder for the current session with --skip-trust, or permanently with /permissions trust. Trust state is stored locally and can be managed by administrators.
Policy engine
Policies are loaded from:
policyPathsin settings (additional files or directories),adminPolicyPaths(administrator-enforced rules),- the
--policyand--admin-policyCLI flags (comma-separated or repeated).
Use /policies list to see the effective rules. Policy rules can allow or deny tool invocations by name or argument pattern and take precedence over simple allowlists.
Tool-level settings
The tools settings object provides additional controls:
| Setting | Effect |
|---|---|
tools.allowed | Tool names that bypass confirmation. |
tools.confirmationRequired | Tool names that always prompt; overrides allowlists. |
tools.exclude | Hide tools from discovery. |
tools.core | Restrict the built-in tool set. |
tools.sandbox, tools.sandboxAllowedPaths, tools.sandboxNetworkAccess | Legacy process-level sandbox controls. |
security.disableYoloMode blocks YOLO even when requested with a flag. security.disableAlwaysAllow and security.enablePermanentToolApproval control whether "always allow" choices appear in confirmation dialogs. admin.secureModeEnabled disables YOLO and "Always allow" organization-wide.
Recommended workflow
- Start in
defaultmode in an unfamiliar repository. - Use
auto_editfor focused edit tasks with known tool expectations. - Use
planfor analysis and design, where no writes should occur. - Reserve
yolofor isolated sandboxes or throwaway environments.
Next steps
- Read Tools for the exact tool names used in rules.
- Read Sandboxing for process isolation options.