Can the agent delete the wrong folder? Not in Tesseract

In Tesseract the agent deletes a file only by its full path, and only one that exists. A blind rm -f * is refused in every mode, Full access included.

Tesseract's Home screen in dark mode

The fear is simple: you give an agent Full access, it changes into the wrong folder, runs rm -f *, and your afternoon is gone. In Tesseract that command doesn’t run. Since 0.11.36, on Mac and Linux and on every framework, the agent may delete a file or folder only by its full path, and only one that exists.

What the rule does

  • Only exact paths. A delete has to name the real, full path of something that exists.
  • No blind wildcards. A command that would delete whatever happens to be in the folder it runs in, such as rm -f * after a cd, is refused.
  • Always. No setting switches this off.
  • No interruption for you. The agent is told why the command was refused, rewrites it with the real path and carries on, without asking you anything.

What Full access still asks

With Ask before risky steps turned off in Settings → Agent, it works through Claude Code’s own safety checks without stopping to ask you. One thing still asks:

  • A rule you set yourself.

With Ask before risky steps on, the agent asks you before deleting, rewriting history or going outside this computer.

What the agent never turns on

The agent can do a lot in the window, but it never gives itself more access. Turning on internet access is always your switch. For what it can do in the window, see Ask the agent to arrange your Tesseract window.

Tesseract is free to download.

More from the blog