Skip to content
Mastering Claude

Home / Security and data

Security and data8 minApplication

Responsible automation: reversible first, failure reported, fix requested

An automation in Auto, Accept Edits or Bypass Permissions mode runs most deletions the moment the command is reached, without confirmation: build the human checkpoint before the destructive command. A silent failure never announces itself, and a blocked fix is requested, not merely noted.

The official Claude Code documentation describes two distinct behaviours for Accept Edits mode: it approves file edits in advance, along with a fixed set of system commands such as mkdir, touch, rm, mv, cp and sed, as long as they stay inside the working folder.

Human oversight is not automatic everywhere

The official documentation lists six permission modes: Manual (the starting mode of claude -p), Accept Edits, Plan, Auto, Don't Ask and Bypass Permissions. Only Manual mode systematically asks for confirmation before a destructive command runs inside the working folder; Plan and Don't Ask remain at least as restrictive. But since late September, an interactive terminal or VS Code session starts by default in Auto mode on every plan, not Manual mode, a mode that runs most actions with simple background safety checks rather than a confirmation on every command. An automation launched in Auto, Accept Edits or Bypass Permissions mode therefore no longer asks the confirmation question for most file commands: it runs the deletion the moment the command is reached, not the moment someone reviews it. A documented exception still stands regardless, across every mode including Bypass Permissions: an rm or rmdir deletion that targets a critical path is never approved in advance. The human checkpoint must therefore be built into the automation's own scenario, before the destructive command, rather than assumed to exist by default in the tool, or in the permission mode setting alone.

Checkpoint before execution:
1. Describe the planned action (which files, which folder)
2. Mark an explicit pause that waits for approval
3. Execute only after this approval

What October changed

In the desktop app and in VS Code, in Bypass mode, a dangerous rm or rmdir is now denied at once with a suggestion to rewrite it, instead of opening a prompt: an unattended session carries on instead of staying blocked. An rm -r aimed at a mounted drive or a top-level folder (/Volumes, /media, /mnt/c under WSL) gets the safety prompt, like rm -rf /Applications. A script launched with claude -p starts in Manual mode, according to the permission modes page: provide --permission-mode or an allow rule. The OpenTelemetry event claude_code.safety_event traces each tool call that a rule, auto mode, a check, a hook or the sandbox stopped.

A silent failure never announces itself

A scheduled automation that has succeeded for weeks can stop without reporting anything the moment the tool it calls changes location on disk, for example after an update that moves an executable. Nothing else in the system notices this stop if another side effect, a log line written for an unrelated reason, keeps giving the impression that everything is working. A list of candidates tested on every run, with a loud alert if none responds, costs a few lines and avoids this silence.

A blocked fix is requested, not merely noted

Writing a blocker into a personal note or a tracking file is not the same as escalating it. What turns a blocked fix into a same-day decision is a direct request, addressed to the person who can decide, with the exact command to run and the concrete cost of waiting, not a general remark along the lines of this should be checked someday.

The lesson on restriction rules that are not always what they seem shows why a safety rule that appears to apply can block nothing at all; the same caution holds for the permission mode you chose.

Figure 1

Three steps before an irreversible action, with its alert branch

01
Describe the planned action
Name the files and folder targeted before writing the slightest destructive command.
02
Mark the human checkpoint
Insert an explicit pause that waits for approval, in modes where confirmation is no longer automatic.
03
Execute after approval
The deletion or edit only proceeds once this approval has been obtained.
04
Binary not found
If no candidate on the list responds, the automation raises a loud alert rather than failing silently.
The sequence places the human checkpoint before execution, the branch marked covers the case where the binary expected by the automation cannot be found, with an alert rather than silence.
Calibrate it yourself

A nonprofit manager sets up a scheduled task that deletes temporary files from a shared folder every night, in the permission mode that approves file commands inside the working folder in advance.

Write, in one sentence, what this situation establishes, and in one sentence what it does not establish.

What to remember
  • The active permission mode determines whether a file deletion waits for human approval or runs directly; since late September the interactive session starts in Auto mode on every plan, and even in Bypass Permissions mode an rm or rmdir aimed at a critical path does not run without confirmation.
  • A hardcoded path to an external binary turns a harmless change of location into a silent failure that nothing reports.
  • A loud alert when no candidate binary responds costs less than a month of automation stopped without anyone knowing.
  • A personal note that mentions a blocker has not escalated that blocker to anyone until it has been read.
  • A fix request that carries the exact command and the cost of waiting gets decided faster than a general remark.
Do this now

Open your Claude Code permission settings and note which mode is active. If it approves file commands in advance, add an explicit checkpoint, a pause that asks you to confirm, before the next automation that touches a file you don't want to lose.

What still needs checking

These points depend on an interface or a rule that may have changed since this was written. Check them on your own screen before relying on them.

  • Check on your own machine, in Claude Code's permission settings, which mode is active before launching an automation that touches files: the cautious Manual mode differs from Auto mode, which starts by default on a paid plan and approves most file commands inside the working folder in advance, and this setting may have changed since this lesson's date.
Check the source

Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.