Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When you add a command to the allowlist, Cursor apparently extends that authorization to file redirects.
Case in point, the following horror story:
Step 1: I added “grep” and “echo” to the Allowlist, just so that Cursor could search through files more quickly
Step 2: Cursor started damaging my .zshrc with echo >> .zshrc to workaround a problem it had encountered.
Steps to Reproduce
- Add echo to the Allowlist
- Ask about something that could be fixed by adding something to a configuration file
- Watch Cursor add that using echo >> config-file without asking to edit the file
In my case, Cursor seems to have done this multiple times, starting with adding GDK_BACKEND=x11 to address a warning that Emacs shows when running the GDK build over ssh / X11. It’s a good thing I keep these configuration files under version control.
Expected Behavior
When adding a command to the Allowlist, that should not extend to a command that has a file redirection. More precisely, doing so should be seen as an edit of the file and ask for confirmation that you want to edit the file.
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.54 (Universal)
VSCode Version: 1.99.3
Commit: 5c17eb2968a37f66bc6662f48d6356a100b67be0
Date: 2025-10-21T19:07:38.476Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0
For AI issues: which model did you use?
Auto with claude-4.5-sonnet, gpt-5 and claude-4.5-haiku enabled
Additional Information
It does not look like an AI issue to me, more like the AI is smart enough to find alternative ways to edit files.
Does this stop you from using Cursor
No - Cursor works, but with this issue
