So I would suggest some sort of UI enhancement to make it clear in which directory file creation, modification, or deletion are being proposed by the agent.
Claude-4-sonnet in Agent mode decided that /
was the most appropriate directory in which to place new files (because of course?), and this was really not clear at all. I have “External-File Protection” in the Cursor Settings panel turned on, but this isn’t sufficient for verifying where the file is being created, IMO. This actual modifications here are definitely my fault, but it does seem sort of bad that something so potentially disastrous is so simple to miss.
Fortunately for me, the files/folders created weren’t named bin
or Windows
, but I hope you can see where I’m going with this. The agent could reasonably want to remove the ./bin
directory while working inside my project directory, which I may correctly approve. But apparently, Claude has a tendency to use /
rather than ./
, and it’s very easy to miss the difference.