Elffuss BraidHub

kikocis/continue public

main · 3.6 KiBSourceRawPermalink

Modes

Modes are a system for managing tool permissions in the CLI. They can be set via command-line flags at startup or switched dynamically during chat sessions. The following modes are available:

Available Modes

normal (default)

The default mode that follows configured permission policies from permissions.yaml and command-line overrides without any additional restrictions or mode-specific policies.

plan

Planning mode that completely overrides all user permissions to enforce read-only access with command execution. This mode prevents file modifications but allows command execution for analysis, regardless of user configuration.

auto

Auto mode that completely overrides all user permissions to allow everything without asking. This mode provides maximum automation by bypassing all permission policies and restrictions, regardless of user configuration.

Usage

Command-Line Initialization

Modes can be set when starting the CLI:

cn --readonly "Help me analyze this code"  # Starts in plan mode
cn --auto "Fix all the linting errors"     # Starts in auto mode
cn "Let me implement this feature"         # Starts in normal mode (default)

Dynamic Mode Switching

Users can switch modes during chat sessions using:

Keyboard Shortcut:

Implementation

Modes are implemented through the permission system:

Mode Policy Priority

Mode policies completely override all other configurations when in plan or auto mode:

Plan and Auto modes:

  1. Mode policies (absolute override - ignores everything else)

Normal mode only:

  1. Command-line overrides (--allow, --ask, --exclude)
  2. Permission configuration from permissions.yaml
  3. Default tool policies

Mode-Specific Behaviors