Permission modes determine how Qoder handles tool calls — each mode balances automation and security differently.
Mode
Best for
Behavior
default
Normal interactive use
Safe reads and internal actions run automatically; sensitive actions require confirmation.
accept_edits
Routine coding tasks
Automatically approves safe file edits inside working directories. Shell commands, external actions, and sensitive paths still go through normal checks.
auto
Autonomous runs, Goal execution
Zero prompts. Safe reads and workspace edits are auto-approved; risky actions are denied or evaluated by the AI classifier.
bypass_permissions (YOLO)
Trusted local experiments only
Skips all approval prompts. All tool calls are allowed automatically.
dont_ask
Headless flows that must not prompt
Never prompts. Any action that would normally ask is denied instead.
Plan is an independent work state (not a permission policy) that can coexist with any permission mode above. Toggle it with the /plan command. While active, Qoder explores code in read-only mode and outputs proposals; writes are restricted to plan files. On exit you can choose a follow-up permission mode or start a Goal execution.
Goal is an autonomous execution state. Enter via /goal set <objective> — this automatically switches to auto mode and locks Shift+Tab switching to ensure zero-interruption execution. Goal can coexist with Plan (plan first, execute second). Exit with /goal clear or /goal pause.
Use --permission-mode to set the default behavior for the current session:
Copy
qoder --permission-mode defaultqoder --permission-mode accept_editsqoder --permission-mode plan # Legacy compat: translates to default + enters Plan work stateqoder --permission-mode autoqoder --permission-mode bypass_permissionsqoder --permission-mode yolo # Equivalent to bypass_permissionsqoder --permission-mode dont_ask# Shortcutsqoder --yolo # Equivalent to --permission-mode bypass_permissionsqoder --dangerously-skip-permissions # Same as above
In interactive sessions, you can also press Ctrl+Y to quickly switch to YOLO mode.Multiple naming formats are supported (case-insensitive):
Standard (snake_case)
camelCase
Alias
accept_edits
acceptEdits
—
bypass_permissions
bypassPermissions
yolo, YOLO
dont_ask
dontAsk
—
Example:
Copy
# The following are equivalentqoder --permission-mode bypass_permissionsqoder --permission-mode bypassPermissionsqoder --permission-mode yoloqoder --yoloqoder --dangerously-skip-permissions
Non-default modes only take effect in trusted directories. If the current directory is not trusted, Qoder falls back to default.
Runtime temporary rules ("Allow for this session" in prompts)
Higher-priority sources override lower ones. If organization policy enables allowManagedPermissionRulesOnly, only policy-managed rules are used.How each source is configured:
Layers 1-3 (settings files): Write permissions.allow / permissions.deny / permissions.ask arrays in the corresponding JSON file. settings.local.json is ideal for machine-local approval rules; add it to .gitignore.
Layer 4 (flagSettings): qoder --settings ./custom-settings.json specifies an additional settings file. Same format as standard settings.json.
Layer 5 (cliArg): Configured via --permission-mode, --allowed-tools, --disallowed-tools, --tools CLI arguments; applies to current session only.
Layer 6 (command): Type /allow Bash(npm test) or /deny WebFetch in-session; persisted to settings.local.json.
Layer 7 (session): Temporary rules from selecting "Allow for this session" in prompts; lost when the process exits.
Auto-approves file edits, shell commands still require confirmation
acceptEdits
plan
Read-only mode (legacy compat: maps to default + Plan work state)
—
auto
AI classifier evaluates action safety
—
bypass_permissions
Skip all permission checks (YOLO)
yolo, bypassPermissions
dont_ask
Non-interactive: deny anything requiring approval
dontAsk
Case-insensitive. All aliases are accepted.Disable YOLO mode — organization admins can prevent users from entering bypass_permissions mode:
Copy
{ "security": { "disableYoloMode": true }}
When set, --yolo, --permission-mode bypass_permissions, and Ctrl+Y are all disabled, and the Shift+Tab cycle skips this mode. Sub-agents declaring bypass are also downgraded to acceptEdits.Disable Plan mode — if the Plan workflow is not needed:
Copy
{ "general": { "plan": { "enabled": false } }}
When set, the /plan command is unavailable, --permission-mode plan falls back to default, and EnterPlanMode/ExitPlanMode tools are not registered.Auto mode classifier configuration — guide the AI classifier's decisions with natural language rules:
Copy
{ "autoMode": { "allow": [ "running npm/yarn/pnpm scripts defined in package.json", "creating or editing test files" ], "soft_deny": [ "deleting files outside the test directory", "modifying CI/CD configuration" ], "environment": [ "This is a Node.js monorepo with pnpm workspaces", "The project uses Vitest for testing" ] }}
Field
Purpose
allow
Operation descriptions the classifier tends to auto-approve
soft_deny
Operation descriptions the classifier tends to deny
environment
Environment context provided to the classifier
These rules are soft guidance — injected into the classifier prompt as reference; the final decision is still made by the AI classifier. For security, autoMode configuration is only read from trusted sources (user global settings and localSettings); project settings are excluded to prevent malicious privilege escalation.
--allowed-tools and --disallowed-tools use the same rule syntax as settings. --tools restricts the available built-in tool set for the current run (unlisted tools are denied).
Some paths are protected because editing them can change execution behavior, credentials, or tool behavior. Examples include .git, .vscode, .idea, .husky, most .qoder configuration files, shell startup files like .bashrc/.zshrc, Git config, .mcp.json, and .ripgreprc. In normal interactive modes these paths require explicit approval; in auto mode they are denied.
Path-scoped read rules use Read(...). Path-scoped write rules use Edit(...); they cover file editing and writing checks for Edit, Write, and NotebookEdit. An Edit(...) allow rule also implies read permission for the same path.File rules use gitignore-style matching.
Pattern
Meaning
/src/**
Rooted at the rule source's root directory. In project/local settings, relative to project root; in user settings, relative to home directory.
~/Documents/**
Home-directory-based path.
//tmp/data/**
Absolute path from system /. Use double slash for absolute paths.
*.secret
Rootless filename pattern that matches at any location.
deny and ask rules see through common wrappers and environment variable prefixes, so Bash(rm -rf:*) still catches wrapped destructive commands.
Prefix and wildcard allow rules do not silently approve compound commands unless every top-level command segment is independently allowed.
Some provably read-only shell commands can be automatically allowed after deny, ask, and path checks.
Dangerous commands (destructive deletes, force pushes) can still force confirmation even with broad allow rules. In auto mode, dangerous shell commands are denied.
Avoid broad rules like Bash or Bash(*) unless you fully trust the session.
Web tools can be controlled at the tool level. Use ask when every web fetch should require confirmation, or deny when web access should be blocked for a session or project.
Triggered after the permission pipeline produces ask, before the prompt/callback. Suitable for automated approval systems or external notifications (e.g., Slack/email alerts):
Hook permission decisions have higher priority than permission modes — even in bypass_permissions mode, a PreToolUse hook returning deny will still block execution. This provides an unbypassable interception capability for organization-level security policies.Execution order:
Hook PreToolUse → if returns allow/deny, short-circuit