Responsible automation: reversible first, failure reported, fix requested
An irreversible action waits for a human checkpoint before executing, but this checkpoint is automatic only in the Manual permission mode, the most cautious of the six documented modes: on paid plans a session nonetheless starts in auto mode by default, and several of these modes approve file commands inside the working folder in advance, deletion included, which shifts responsibility for the checkpoint onto whoever designs the automation.
A permission mode chosen before launching an automation determines whether a file deletion waits for your approval or runs on its own. 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. The mode that entirely bypasses permission prompts goes further by construction: it skips these confirmation requests, including those covering deletion.
Human oversight is not automatic everywhere
The official documentation lists six permission modes: Manual (the default mode outside a paid plan), 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 on a Pro, Max or Team plan, a session starts by default in Auto mode, 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
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. This risk is not specific to any one tool: it is the price of any hardcoded path to a binary. 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. Until someone else has read that note, the decision stays pending without anyone knowing 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.
These three reflexes come together in the same gesture: before letting an automation touch something irreversible, check its checkpoint and its fallback plan should the tool it calls disappear. 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 applies here to the permission mode chosen.
Three steps before an irreversible action, with its alert branch
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 this establishes: What the situation describes establishes that deletion commands will run in this folder without a manual confirmation step, in line with the documented permission mode.
What this does not establish: It does not establish that anyone verified beforehand that the shared folder contains no files worth keeping before the task runs for the first time.
The three most common miscalibrations
- Too broad No scheduled automation can ever delete a file without human confirmation, whatever permission mode is chosen.
- Too narrow This result proves nothing at all as long as the task has not yet run for the first time.
- Off target This configuration shows that the shared folder is now synchronised with an external backup space.
- The active permission mode determines whether a file deletion waits for human approval or runs directly, not the tool itself; on a paid plan the session starts by default in Auto mode, not the more cautious Manual mode, and even in Bypass Permissions mode an rm or rmdir deletion that targets a critical path is still refused 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.
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.
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.
Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.
- Security, official Claude Code documentation, code.claude.com consultée le 2026-09-02
- Permission modes, official Claude Code documentation, code.claude.com consultée le 2026-09-02