﻿# Continue mode policies override individual permission rules

Continue CLI resolves mode policies before per-tool flags and saved permissions; auto or plan mode can override exclusions or allowances a caller expected to remain effective.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-continue-mode-policy-precedence/
Language: en

## Read the complete launch configuration

A script includes an exclusion for terminal execution alongside a broad automatic mode flag. Reading only the exclusion creates the wrong expectation. Continue's [tool-permission reference](https://docs.continue.dev/cli/tool-permissions) defines a priority order in which mode policies override individual flags and saved settings. Diagnose the full invocation and current mode rather than treating each argument as an independent restriction that always remains active.

## Apply the documented priority order

The reference places plan and auto mode policies above CLI permission flags, then persistent permissions, then built-in defaults. It explicitly says the mode overrides ignore the lower sources. Auto mode allows everything; plan mode has its own defined tool set. Therefore combining an absolute mode with a selective policy is not a way to combine their most restrictive parts. A launch wrapper should make the intended mode visible instead of hiding it in a shared convenience argument.

## Keep stored consent distinct from this session

The [TUI guide](https://docs.continue.dev/cli/tui-mode) lets an approval decision be saved with “don't ask again.” Those choices are written to personal permissions, and the permission guide says file changes take effect in the next session. A fresh invocation can therefore differ from a currently open session even without a repository change. Record whether the observed behavior came from a launch flag, an absolute mode or a persisted personal decision.

## Test a policy with an observable harmless call

Use a small fixture and a tool whose expected availability is easy to see. Compare the intended policy with the actual current mode, then observe whether the tool is available, prompts or runs automatically. The [quickstart](https://docs.continue.dev/cli/quickstart) lists the relevant launch flags, while the detailed permission page resolves their interaction. Avoid using a real destructive operation merely to establish that a restriction is effective.

## Preserve the resolved expectation in automation

State the mode and selected permission sources in the automation handoff. A [task contract](/journal/learn-codex-task-contract/) should identify what operation is authorized; [tool observations](/journal/learn-codex-tool-observation/) establish how the actual run treated it. If a convenience flag changes later, review the effective policy again. A long command line containing restrictive-looking arguments does not prove those arguments survive the higher-priority mode policy.
