All Agent Engineering

Setting up Cline Auto Approve: which actions run on their own and which stay manual

Check each Cline Auto Approve toggle, workspace boundary, command flag, notification and YOLO against the docs, and set up Checkpoints before enabling edits.

AINavWritten / Updated
On this page

At a glance

Each time Cline is about to read a file, edit a file, run a command, use the browser or call an MCP tool, it checks the Auto Approve settings for that category. The panel has nine toggles, three of which only work when another toggle is on. The model decides command by command whether a command counts as safe. A separate YOLO Mode switches all of these checks off at once. To set up a project you need to understand how those layers fit together, then decide per category whether to release the action or keep a person in the loop. This article delivers a settings matrix: the state of each action category, the base toggle it depends on, the workspace boundary, how commands are judged, notifications and the 30-second reminder, why YOLO stays off, and the Checkpoints step to confirm before enabling edits. The facts come from two official Cline pages, Auto Approve & YOLO Mode and Checkpoints, read on 2026-11-24. Cline was not installed, run or called for this batch, no setting was changed, and no approval prompt, notification or command result was observed, so all of it is not tested and describes what the pages say. Items marked as editorial advice are this article's judgment, not documented Cline behavior.

Runtime and applicability

Article type
Engineering practice
Verified
Applies to
  • Cline Cline: Auto Approve settings per action category, the YOLO trade-off and the Checkpoints prerequisite

Execution locations and responsibilities

  • The per-tool-call check of the Auto Approve settings The page says that when Cline is about to read a file, edit a file, run a command or use the browser, it checks the settings for that category; an "all files" toggle does something only when its base toggle is on. Which component performs the check is not stated on the page.
  • The requires_approval flag the model sets on each terminal command The model decides from the command and its arguments whether it falls on the safe or the approval side; the page says the examples are not guarantees and that there is no fixed allowlist.
  • The toggles you save in Cline settings, with YOLO Mode under Features in Cline Settings Holds the release state of each action category, the notification toggle and YOLO Mode; with YOLO on, all safety checks are off and there is no confirmation dialog.
  • The shadow Git repository Cline keeps apart from the project Git Saves a snapshot of the project files after each tool use as the rollback basis for edit auto-approval, without touching the project's own Git history; Enable Checkpoints is on by default.

When to use

  • You are using Cline in an IDE project and need to decide which of reading, writing, commands, the browser and MCP run automatically and which keep a manual approval.
  • Some toggles are already on and you need to check whether one specific action, such as reading a file outside the workspace or running npm install, will run automatically under the current settings.

When not to use

  • You embed Cline in your own program through the SDK. The two official pages do not describe approval in that setup, so this article does not cover it.
  • You need to configure an MCP server itself, including the config file, transports and connection checks. This article touches it only at the single Use MCP servers toggle.
  • You want a deeper look at the Checkpoint restore choices. This article treats Checkpoints only as its own recommended prerequisite before enabling edit auto-approval, and lists just the three restore options the page shows.

What to deliver: a matrix filled in per action category

Auto Approve is evaluated on every tool call. The official page says that when Cline is about to read a file, edit a file, run a command or use the browser, it checks the setting for that category. Within one task, some steps therefore run straight away and others stop for your approval, and you need to know in advance which side each category falls on.

The running example is a Node.js project called shop-api, where Cline is asked to add a unit test for the cart module. It would roughly do nine things: read src/cart.ts inside the workspace, read ~/.gitconfig outside it, edit src/cart.ts, edit ../shared/config.json outside the workspace, run npm test, run npm install zod, run rm -rf dist, look up a documentation page in the browser, and call an MCP tool. The nine actions cover reading, writing, commands, the browser and MCP, and the matrix and checks below are filled in against them.

This article covers only the Auto Approve toggles and YOLO Mode in the Cline settings interface. The official page does not say which editors it applies to or whether the CLI is included, gives no Cline version requirement, and marks nothing as experimental, so this article adds no version gate. Approval under the SDK or other embedding is not covered by the page and is outside this article.

The nine toggles and what they depend on

The official permissions table lists nine settings. Read all files, Edit all files and Execute all commands are marked in the table as needing a base toggle, and the other six stand alone.

The official permissions table, with the dependency column summarized by this article
SettingWhat the page says it allowsBase toggle it depends on
Read project filesRead files, list files and search in your workspaceNone; it is the base toggle for reading
Read all filesRead files outside your workspaceRead project files
Edit project filesCreate and edit files in your workspaceNone; it is the base toggle for editing
Edit all filesEdit files outside your workspaceEdit project files
Execute safe commandsRun terminal commands marked safeNone; it is the base toggle for commands
Execute all commandsRun commands that require approvalThe table says it needs a base toggle; the body text describes it as an extension of Execute safe commands
Use the browserThe browser tool, for fetching and searching the webNone
Use MCP serversMCP tools and resourcesNone
Enable notificationsNotifies you about long-running commandsNone

The page warns plainly that Read all files and Edit all files only matter when their base toggle is on. They extend the reach to outside the workspace and are not standalone permissions. Two things the page leaves open. The permissions table has no row for mode transitions; the page mentions that Plan to Act switches are auto-approved only in the YOLO Mode section, and it does not say how mode switches are handled under ordinary Auto Approve. Use MCP servers is a single master toggle, and the page does not say how it interacts with MCP server configuration, which is outside this article.

Inside and outside the workspace: "all files" does nothing when its base toggle is off

The page says that Read all files and Edit all files only extend the base toggle, and that if the base toggle is off the "all files" option does nothing. Reading and editing follow the same rule, and the four combinations of the two toggles work out as follows.

Toggle combinations for reading and editing, organized from the page; assumes YOLO is off, since with YOLO on everything is auto-approved; waiting means an approval prompt appears
Base toggle"All files" toggleAction inside the workspaceAction outside the workspace
OnOffRuns automaticallyWaits for approval
OnOnRuns automaticallyRuns automatically
OffOnWaits for approvalWaits for approval; "all files" does nothing
OffOffWaits for approvalWaits for approval

The third row is the easiest to trip over. Someone who wants Cline to read ~/.gitconfig and turns on only Read all files while Read project files is still off ends up with approval prompts on both sides: reads inside the workspace still need a click, and the read outside is not released either. The page does not define the workspace precisely. Multi-root workspaces, symbolic links, and whether reaching outside paths through a command is covered by these two toggles are all unaddressed.

Commands have the same shape: Execute safe commands releases commands marked safe, and Execute all commands extends that to commands marked as requiring approval. The page spells out "does nothing" only for reading and editing; for commands the permissions table merely notes the base-toggle requirement. This article reads commands conservatively: with Execute safe commands off, do not expect Execute all commands to work on its own, and confirm it with one command in your own environment.

Commands: safe or approval-required is marked by the model, command by command

The page is explicit: Cline does not use a fixed allowlist. The model sets a requires_approval flag on each command based on the command and its arguments, and the examples on the page are examples, not guarantees. There is no command list you can look up in advance, and the same command name with different arguments may land on a different side.

Command examples the official page lists, with its reasons
Example commandCategory on the pageReason on the page
npm run build, npm testCommonly treated as safeBuild and test output
git status, ls -la, cat package.jsonCommonly treated as safeRead-only commands
npm install <pkg>Commonly requires approvalModifies dependencies
rm -rf <path>Commonly requires approvalDeletes files
mv <a> <b>Commonly requires approvalMoves files, which can overwrite
sed -i ...Commonly requires approvalEdits files in place

Mapped onto the toggles: Execute safe commands covers only commands the model marks safe, and only Execute all commands also releases commands marked as requiring approval. In the shop-api example, npm test sits on the safe side of the official examples while npm install zod and rm -rf dist sit on the approval side, but that is "commonly"; what a command is actually marked is up to the model each time.

Several things the page does not say: how the flag is displayed, whether you can inspect or override it, whether the judgment is consistent across models or across runs, and whether reading an outside file with cat in the terminal falls under the command flag or under Read all files. Editorial advice: because the judgment comes from the model, Execute safe commands saves repeated clicks and should not be treated as a security boundary. Do not assume a command is released just because its name looks harmless, and do not stop reading the terminal output once a command is released.

Running example: how one task goes under two sets of settings

Setting A is the official default suggestion: turn on only Read project files and keep edits, commands, the browser and MCP off until you have a specific reason. Setting B is this article's editorial example: clicking approve for every edit and for npm test while writing tests gets tedious, so Edit project files, Execute safe commands and Enable notifications are turned on as well, after confirming Checkpoints is enabled as this article recommends. B is not an official recommendation; the page only says to enable these once you have a specific reason. Notifications are off in A; the browser, MCP, both "all" toggles and YOLO are off in both.

Example: how nine actions in the shop-api test task would go, assuming YOLO is off, derived from the page rules and not run in Cline
ActionSetting involvedSetting ASetting B
Read src/cart.ts, inside the workspaceRead project filesRuns automaticallyRuns automatically
Read ~/.gitconfig, outside the workspaceRead all files, which depends on Read project filesWaits for approvalWaits for approval
Edit src/cart.ts, inside the workspaceEdit project filesWaits for approvalRuns automatically; a Checkpoint then appears in the conversation
Edit ../shared/config.json, outside the workspaceEdit all files, which depends on Edit project filesWaits for approvalWaits for approval
Run npm testExecute safe commands, provided it is marked safeWaits for approvalRuns automatically if marked safe, otherwise waits for approval
Run npm install zodExecute all commands; commonly marked as requiring approvalWaits for approvalWaits for approval; runs automatically if the model marks it safe instead
Run rm -rf distExecute all commands; commonly marked as requiring approvalWaits for approvalWaits for approval; runs automatically if the model marks it safe instead
Look up a documentation page in the browserUse the browserWaits for approvalWaits for approval
Call an MCP toolUse MCP serversWaits for approvalWaits for approval

Under setting B only rows 1 and 3 are certain to run automatically, row 5 depends on how the model marks it that time, and rows 6 and 7 are the two actions that "commonly requires approval" is protecting, so they would be released if the model's flag differs from the official examples. That is why rows 6 and 7 spell out the exception. The pseudocode below condenses the rules above into one decision function so you can answer for your own settings category by category. It is an editorial summary of the page rules, not Cline's implementation, and it leaves out what the page does not cover: mode transitions, MCP server configuration and the definition of the workspace.

Example: a decision sketch of the documented Auto Approve rules; pseudocode, not Cline source code, and not run
Plain text
# Sketch of the documented rules. Not Cline source code.
decide(action, settings):
  if settings.yolo:
    return AUTO                      # YOLO Mode skips every check

  if action.category in (browser, mcp):
    return AUTO if settings.toggle_for(action.category) else ASK

  if action.category in (read, edit):
    base = settings.read_project if action.category == read else settings.edit_project
    wide = settings.read_all     if action.category == read else settings.edit_all
    if action.path_in_workspace:
      return AUTO if base else ASK
    return AUTO if (base and wide) else ASK   # "all files" does nothing when base is off

  if action.category == command:
    base = settings.exec_safe
    wide = settings.exec_all
    if not action.requires_approval:         # flag is set by the model
      return AUTO if base else ASK
    return AUTO if (base and wide) else ASK   # table: "requires base toggle"

Reading setting B with it: for ~/.gitconfig, path_in_workspace is false and read_all is off, so the result is ASK. For npm test, if requires_approval is false and exec_safe is on, the result is AUTO. For npm install zod, if requires_approval is true and exec_all is off, the result is ASK. Only with YOLO on does the function return AUTO without looking at the category.

Notifications and the 30-second reminder

The page describes Enable notifications in two places. The permissions table says only that it notifies you about long-running commands. The body text says that when it is enabled, Cline sends OS-level notifications when approval is required and also when an auto-approved terminal command has been running for 30 seconds. The two differ slightly, and this article follows the body text and counts both kinds.

It is most useful with Execute safe commands: once commands are released you do not have to watch the terminal, and a command that has run for 30 seconds reminds you. The page does not say whether the command keeps running or is paused after 30 seconds, whether you can stop it from the notification, what the notification text is, or whether the toggle still applies under YOLO Mode. So what happens to the command after a notification is not stated on the page. If you want to catch a stuck or runaway command in time, turn notifications on and still check the terminal yourself.

YOLO Mode: which protections you lose and why it stays off by default

The page calls YOLO Mode Auto Approve on steroids: once you check the box, Cline auto-approves everything, including file changes, terminal commands, browser actions, MCP tools and mode transitions. The page's warning is that this is dangerous, that YOLO Mode disables all safety checks, and that Cline executes whatever it decides without asking permission. To enable it, go to Cline Settings, then Features, and check YOLO Mode. There is no confirmation dialog, it takes effect on all actions immediately, and unchecking it turns it off.

How protections differ between ordinary Auto Approve and YOLO Mode, organized from the page
ProtectionOrdinary Auto ApproveWith YOLO Mode on
Per-category togglesEach category decides separately whether to release or waitEverything is auto-approved; categories are no longer asked about
Workspace boundaryOutside the workspace needs the "all files" toggle, which depends on its base toggleThe page says file operations anywhere on the system are auto-approved
The command requires_approval judgmentCommands marked as requiring approval wait for you unless Execute all commands is onAll terminal commands are auto-approved, including potentially destructive ones
Browser and MCPEach has its own toggleAuto-approved
Mode transitionsNo row in the permissions table; the page does not sayPlan to Act is auto-approved
Confirmation on enablingNot applicableNo confirmation dialog; it takes effect as soon as you check the box

The consequences the page lists are: deleting important files without warning, running commands that modify system settings, making network requests to external services, overwriting configuration files, installing or uninstalling packages, and committing and pushing to version control. Deleting files and installing or uninstalling packages match the reasons the page gives for commonly classing rm -rf and npm install as requiring approval. That is a common classification, not a guarantee, since the model sets the flag each time, and turning on Execute all commands also releases commands marked as requiring approval. The page also names the situations it considers suitable: rapid prototyping and throwaway experiments where mistakes do not matter, repetitive tasks whose approach you have already validated, and demos that should run without interruptions. Its advice is to start in an isolated environment, make requests specific, watch the output, and keep version control at hand because Git is the safety net. It also says Cline still shows what it is doing.

Editorial advice: for a project like shop-api, which has real code and credentials, keep YOLO off. There are four reasons. The page defines it as disabling all safety checks. Enabling it has no confirmation, so it is easy to switch on by mistake. It would invalidate the matrix you just filled in. And the Checkpoints page describes snapshots of project files, without saying whether changes to system settings or network requests already sent can be restored, while the YOLO page lists exactly those two kinds of consequence. If you do need it, use a disposable project and start with a clean Git working tree.

Before enabling edit auto-approval: this article recommends confirming Checkpoints first

The Auto Approve page advises that if you enable edits, you should use Checkpoints so you can roll back quickly. The Checkpoints page explains that it is on by default; that Cline keeps a shadow Git repository separate from your project's real Git history and commits the current file state to it after each tool use (file edits, commands and so on); that snapshots include files Git does not track; and that they persist across editor sessions. Your own Git history is left untouched.

  • Open the Cline settings (the gear icon in the Cline sidebar), scroll to Feature Settings, and confirm that Enable Checkpoints is checked. It is on by default.
  • This article recommends turning on Edit project files only after that, not the other way round; that is this article's order of operations, and the page does not state it as a technical dependency.
  • Have Cline make one small change and check that the conversation shows a bookmark icon labeled Checkpoint, with Compare and Restore buttons next to it.
  • Click Compare and confirm in the editor's diff view that the scope of the change matches the task.
  • When you need to undo, click Restore. The menu has three options: Restore Files reverts only the files, Restore Task Only deletes the messages after that point, and Restore Files & Task reverts the files and deletes those messages. The page explains when to use each, and this article does not go into it.

The page warns that for very large repositories Checkpoints may use significant storage and slow Cline down, since a snapshot is committed after each tool use, and suggests considering turning it off if you notice performance problems. Editorial advice: if you turn Checkpoints off for performance, turn Edit project files off again too; otherwise edit auto-approval has no rollback behind it.

The two pages stress different things. The Auto Approve page suggests turning on only Read project files by default and leaving edits, commands, the browser and MCP off. The typical flow on the Checkpoints page enables auto-approve for file edits and commands, lets Cline work through the task quickly, reviews the result, and restores if it is wrong. The first is the starting point and the second explains the safety net once you loosen things, so they do not conflict. However, the Checkpoints page describes snapshots of project files, and it does not say whether side effects that commands have outside the project can be restored. That is why setting B in the example releases only edits and commands marked safe. The two pages also name the settings location differently: the YOLO section says Features under Cline Settings and the Checkpoints section says Feature Settings, and neither page describes where the Auto Approve panel itself sits in the settings interface.

How to verify: the final matrix and a step-by-step check

The completion condition for this section is that, for any of the nine actions, you can say whether it runs automatically under the current settings, including the case where its base toggle is off; you can write down the protections lost once YOLO is on; and behavior you have not verified yourself is labeled as what the documentation says. The deliverable is the matrix below, filled in with the example values of setting B.

Example: the Auto Approve settings matrix, filled in with the example values of setting B
CategoryToggle and dependencyState in setting BBoundary and notes
ReadRead project files; Read all files depends on itBase on, all files offOnly reads inside the workspace run automatically; outside waits for approval
WriteEdit project files; Edit all files depends on itBase on, all files offOnly edits inside the workspace run automatically, this article recommends confirming Checkpoints is enabled first (the page only advises using it if you enable edits); outside waits for approval
CommandsExecute safe commands; Execute all commands depends on itSafe on, all offThe model decides what counts as safe and the official examples are not guarantees; commands marked as requiring approval wait
BrowserUse the browserOffWaits for approval each time
MCPUse MCP serversOffWaits for approval each time; server configuration is outside this article
NotificationsEnable notificationsOnOS notification when approval is required, and also when an auto-approved command has run for 30 seconds; what happens to the command afterwards is not stated
YOLOYOLO ModeOffDisables all safety checks; no confirmation dialog on enabling
  • Write down the current state of the nine toggles, one per line, in your project notes, without any account details or keys.
  • Check dependencies first: for each "all files" toggle, is its base toggle on? If the base is off, treat the "all files" toggle as ineffective.
  • For each of the nine actions, write the result using the decision from the previous section. Split commands into marked-safe and marked-requires-approval columns, because the model sets the flag and your matrix cannot have a single column.
  • In a disposable test project rather than shop-api itself, trigger each once: reading and writing files inside and outside the workspace, npm test, npm install, rm -rf dist, the browser and an MCP tool, and compare whether an approval prompt appears. This batch did not do this step, so until you do, the conclusions in the matrix are only what the documentation says.
  • Turn on Enable notifications, run an already-released command that really lasts more than 30 seconds, and see whether an OS notification appears. The page does not say what happens afterwards, so record only what you observe.
  • After releasing edits, confirm that a Checkpoint appears in the conversation and that Compare opens a diff.
  • Confirm that YOLO Mode is unchecked and write the reason for leaving it off in the matrix notes.

Stop condition, editorial advice: if any action behaves differently from the matrix, for example an action the matrix lists as waiting for approval ran automatically, stop the current task and switch the matching toggle off. For an edit, use Restore Files to return to the previous checkpoint and then confirm against the Git status. Record what you saw and check the official pages for updates, instead of editing the matrix to fit the behavior. The pages do not explain the cause of such a mismatch, and this article does not guess at it.

Scope and what the official pages do not say

  • This article relies only on the Auto Approve & YOLO Mode and Checkpoints official pages, read on 2026-11-24. Cline was not installed, run or called for this batch, no setting was changed, and no approval prompt, notification or command result was observed, so all of it is not tested.
  • Neither page gives an applicable Cline version, marks anything experimental, lists the editors it applies to, or says whether the CLI is covered.
  • The page does not say where the Auto Approve panel is in the settings interface; it only says YOLO Mode is under Features in Cline Settings.
  • The page does not define the workspace precisely, including multi-root workspaces, symbolic links and commands that reach paths outside the workspace.
  • The page does not say how the requires_approval flag is displayed, whether you can inspect or change it, or whether it is consistent across models; it says only that the examples are not guarantees.
  • The page says "does nothing" explicitly only for Read all files and Edit all files; for Execute all commands the permissions table merely notes the base-toggle requirement.
  • The page does not cover mode transitions under ordinary Auto Approve, whether a command is paused after 30 seconds, whether notifications apply under YOLO, or how the MCP toggle works with server configuration.
  • The Checkpoints page describes snapshots of project files; it does not say whether a restore can undo side effects outside the project.

The parts marked as editorial advice or editorial example, including setting B, treating the command safe flag as a convenience rather than a boundary, turning edits off again when Checkpoints is off, the reasons for leaving YOLO off and the stop condition on a mismatch, are this article's judgment and not documented Cline behavior. If the official pages change later, the official pages take precedence.

Sources

All links are official pages; verification dates are listed per source, and links point to the version checked.

  1. Cline · Auto Approve & YOLO Mode
  2. Cline · Checkpoints

Found an error? Tell us →