Stop Worrying About AI Agents Deleting Your Files
Description and use
Restrict AI agents to a dedicated drive to prevent accidental file deletion.
Problem
AI coding agents can delete the wrong folder, causing irreversible data loss.
Outcome
The agent operates safely within a sandboxed drive, eliminating accidental deletions outside the designated workspace.
Workflow
- 1. Create a local folder named subst.scsoi.com.
- 2. Map the folder to a dedicated drive letter using Windows subst command or equivalent.
- 3. Configure the AI agent to use the mapped drive as its workspace.
- 4. Verify the agent can read/write only within the mapped drive.
- 5. Monitor agent activity to ensure no external file access.
Evidence
Map the agents workspace to a dedicated drive letter.
The agent sees a normal drive. It can write all day there. It cannot see anything outside that drive.
- Record date: 2026-10-24T09:11:30.954Z