Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor Agent, running in autonomous (Agent) mode, executed a Windows cmd command intended to delete a single deprecated project directory. Because cmd.exe mis-parsed the escaped-quote sequence, the rd /s /q command was applied to the D:\ drive ROOT instead of the target subdirectory, recursively deleting the entire D: drive.
This permanently destroyed (no Recycle Bin):
- WeChat chat history database
- multiple source-code projects
- installed applications
Steps to Reproduce
- Run Cursor Agent on a Windows project located on a non-system drive (e.g. D:).
- Ask the Agent to delete a directory whose path contains non-ASCII (Chinese) characters and nested backslashes.
- The Agent wraps the path like: cmd /c “rd /s /q "d:<project>\src\views...\vehicleTrack_GL"”
- Windows cmd truncates the path at the escaped quote, so
rd /s /qruns against D:\ and recursively deletes the drive.
Expected Behavior
- Only the intended subdirectory should be deleted.
- Irreversible, non-Recycle-Bin commands such as
rd /s /q(recursive delete) should trigger an explicit confirmation gate, or be blocked entirely, before the Agent executes them.
Operating System
Windows 10/11
Version Information
Cursor IDE, Windows desktop, Agent mode
For AI issues: which model did you use?
Agent mode — mixed (gemini-3.8-flash-high, composer-2.5-fast, etc.)
For AI issues: add Request ID with privacy disabled
Session a7cf2b75-380b-4262-9485-547cc415dbda / terminal 672262
Additional Information
The Agent later self-admitted in the session transcript: “Windows cmd does not parse the escaped quote as expected, causing the command to actually recursively scan and delete the D:\ root directory instead of the target subdirectory. Logs show it ran for ~105 seconds.”
Local evidence available (can provide privately on request):
- Session transcript ID: a7cf2b75-380b-4262-9485-547cc415dbda
- Terminal task log: 672262
- Exact command: cmd /c “rd /s /q "d:...\vehicleTrack_GL"”
Happy to share the full logs and transcript privately (via email) — I intentionally did not attach them here because they contain personal account paths.
Does this stop you from using Cursor
No - Cursor works, but with this issue