Skip to content

M31A separates approval modes (an interactive default for tool confirmation) from policies (durable, declarative rules evaluated by the core policy engine).

The four modes ​

ModeBehavior
defaultPrompt for approval before executing tools. This is the default.
auto_editAuto-approve edit tools; still prompt for other tools such as shell commands.
yoloAuto-approve all actions. Available only from the CLI, not from settings.
planRead-only mode; write and shell actions are blocked.

Set a mode at startup:

bash
m31a --approval-mode auto_edit
m31a --approval-mode plan
m31a --approval-mode yolo

Or 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:

  • policyPaths in settings (additional files or directories),
  • adminPolicyPaths (administrator-enforced rules),
  • the --policy and --admin-policy CLI 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:

SettingEffect
tools.allowedTool names that bypass confirmation.
tools.confirmationRequiredTool names that always prompt; overrides allowlists.
tools.excludeHide tools from discovery.
tools.coreRestrict the built-in tool set.
tools.sandbox, tools.sandboxAllowedPaths, tools.sandboxNetworkAccessLegacy 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.

  1. Start in default mode in an unfamiliar repository.
  2. Use auto_edit for focused edit tasks with known tool expectations.
  3. Use plan for analysis and design, where no writes should occur.
  4. Reserve yolo for isolated sandboxes or throwaway environments.

Next steps ​

  • Read Tools for the exact tool names used in rules.
  • Read Sandboxing for process isolation options.

Built with VitePress. Powered by NVIDIA NIM.