[FEATURE] Add "Recently Deleted" safe delete for files in Claude Code Sandbox Mode

Resolved 💬 3 comments Opened Nov 9, 2025 by rvisuvasam Closed Jan 12, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Since Sandbox Mode is designed to enhance the safety of allow Claude Code more agentic freedom, I think we should implement a "Recently Deleted" feature in Sandbox Mode.

Claude recently deleted a directory in my project since it didn't realize macOS' filesystem is not case-sensitive. It wasn't a big deal in my case, but I think it would be a useful feature addition for others in that situation.

Claude realized the mistake after it had done it, so it would've been able to recover it from a "Recently Deleted" hidden directory if it would've been able to.

Proposed Solution

Add a directory under .claude called trash or recently_deleted and instead of deleting files, Claude Code should move them in there.

We can set an X day expiration on it with a smart default (let's say 3 days).

Alternative Solutions

_No response_

Priority

Low - Nice to have

Feature Category

File operations

Use Case Example

  1. Claude Code decides to delete a file and instructs the user it's not needed
  2. Claude Code deletes the file
  3. Claude Code realizes it actually needs that file
  4. Claude Code pulls it from the "Recently Deleted" directory

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗