- Editing or deleting files (
write_file,edit_file,delete) - Running shell commands (
execute) - Making web requests (
web_search,fetch_url) - Delegating work to subagents (
task)
ls, read_file, glob, and grep always run without prompting. Approval modes let you choose how much oversight each session requires for the gated actions.
Choose a mode
Enable Auto
Auto is eligible only in interactive, unsandboxed sessions.Launch with Auto
~/.deepagents/config.toml:Shift+Tab.Enable YOLO
YOLO runs gated actions without any review. Use it only when you accept that the agent can take any action without asking.Launch with YOLO
~/.deepagents/config.toml:Shift+Tab to cycle YOLO → Manual → Auto → YOLO. Set startup.yolo_switcher = false to omit YOLO from the cycle.
How Auto works
Auto keeps the same gated-action rules as Manual but changes how those actions are reviewed. It uses two stages:- Routine actions run automatically. A write to a source file like
src/parser.pyor a read-only Git command likegit statusproceeds without a prompt. Sensitive targets like.github/workflows/ci.ymlor mutating commands likegit commitgo to the next stage. - The model reviews the rest. For anything not clearly routine, the active model checks whether the action matches your requested outcome. Ordinary steps reasonably necessary for that outcome can proceed even when you did not name each implementation detail. High-risk effects, such as sending local content to an unconfigured destination, still require explicit authorization. If the model denies a call, the agent gets an error result and can revise its plan.
Auto decision flow
Auto decision flow
Select a classifier model
By default, the Auto classifier uses the same model as the main agent. You can point it at a different (typically cheaper and faster) model to reduce cost and latency during Auto review. Set the classifier model through any of these source:- TUI command
- CLI flag
- Environment variable
- config.toml
Run Use
/auto model to open the interactive model picker and select a classifier model for the current session. To specify a model directly, pass it as an argument:/auto model clear to go back to inheriting the main model.Precedence order
Precedence order
/auto modelTUI command: takes effect immediately for the current session.--auto-classifier-modelflag: sets the classifier on launch (interactive TUI sessions only).DEEPAGENTS_CODE_AUTO_CLASSIFIER_MODELenvironment variable: applies at startup.[models].auto_classifierinconfig.toml: your persistent default.- Inherit: uses the main agent model (the default when nothing is configured).
config.toml./auto model output.
Revalidate before side effects
The decision plan is bound to the thread, mode, batch, and exact gated calls. Missing or invalid state, a mode race, or a replay falls back to human review. For example, if you switch to Manual while classifier review is in progress, an earlier Auto decision cannot execute silently; the normal approval UI opens instead.Understand scope and limitations
- The Manual approval menu can enable Auto for the current thread. Threshold fallback can switch permanently to Manual or perform a one-off review while leaving Auto enabled.
- The active model is not an independent security authority. MCP read-only annotations are trusted as a deliberate beta tradeoff.
- Parent-level Auto review does not cover actions performed inside delegated subagents or broader explicitly configured
js_evalfan-out. Model providers and tracing backends may still observe classifier inputs and outputs even though the TUI hides them.
Where Auto and YOLO are available
Auto and YOLO are interactive-mode features. Auto is eligible only in an interactive, unsandboxed session; a remote--sandbox forces it to Manual. YOLO is interactive-only as well and requires the risk acknowledgement regardless of sandbox. Headless runs use fail-closed MCP routing and --shell-allow-list for shell access.
In non-interactive mode (-n or piped stdin), -y/--auto-approve and --yolo are ignored. Headless runs use fail-closed MCP routing and --shell-allow-list for shell access.
Remember the last mode across sessions
When no flag or configured mode applies, Deep Agents Code restores the last selected Manual or Auto mode. YOLO must be explicitly selected. See Startup approval mode. For flag and configuration precedence, see Startup approval mode.See also
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

