Hi everyone! I’m a student researching how developers keep AI coding agents safe and under control. I’m not selling anything; I’m trying to understand real developer experiences and existing workflows.
If you use Cursor Agent, I’d really appreciate hearing your experience. Short answers are welcome!
How do you configure Cursor’s permission and Auto-Run settings?
Has Cursor ever done something you didn’t intend it to do? What happened?
What do you do now to prevent unwanted actions or changes?
How do you know your safeguards actually work? Have you ever tested them?
Have you tried any separate tools to help with agent safety? What did you like or dislike about them?
I’m interested in both cases where the built-in controls work well and cases where they fall short. Please don’t share confidential code or sensitive information.
Thanks, this is really useful, especially making the agent try a blocked action to confirm it fails. Do you do that by hand each time, or is it scripted? And how often do you repeat it (e.g., after Cursor updates)?
scripted is better, by hand it quietly stops happening. one way is a small canary task saved as a prompt, asking the agent to do a few things your hooks should block, like editing a file outside the repo or running a command that isn’t on the allowlist. then check the hook log shows each one denied. re-run it after every Cursor update and any change to hooks or allowlist, those are the moments a safeguard silently stops working. a weekly run on top of that catches the rest.
Hey, @TomosuAI already explained the practical side really well. I’ll add what’s available out of the box, in case it helps with the research:
Run Modes Settings > Agents > Approvals & Execution. The default is Auto-review: allowlisted commands run right away, shell commands go into a sandbox when possible, and everything else is checked by the classifier. There are also Allowlist and Run Everything. More here: Run Modes | Cursor Docs
Allowlist is a best-effort guardrail, not a strict security boundary. For stricter limits, we recommend Hooks: beforeShellExecution and preToolUse let you block a command or tool call with a script before it runs. There are also prompt-based hooks, where the condition is described in plain text. Docs: Hooks | Cursor Docs
The agent runs with your user permissions. If your account can do it, the agent can do it too, usually after approval. That’s why the practices mentioned above matter: make a commit before running it, review destructive commands before approving them, and use Plan mode for unfamiliar tasks.
For full isolation, Cloud Agents are the right fit. They run on a separate machine, not on your local one.
I think using limited permissions, clear rules and a review steps helps. Instructions help too but they don’t guarantee cursor will stay within scope. needs fine tuning of all that