When I open a new repo and run cursor-agent interactively, I get a workspace trust prompt. I work across a lot of folders and don’t want to click through this every time.
cursor-agent --help lists --trust, but it only works with -p / headless mode.
In interactive TUI mode the flag does not work.
Please either extend --trust to interactive cursor-agent, or add a setting/CLI flag to auto-trust workspaces (e.g. a parent path like ~/dev or all folders under $HOME).
Hey, thanks for the feature request. You’re right: --trust currently only works with -p or --print mode headless, and in interactive TUI mode cursor-agent doesn’t accept it. So what you’re asking for, a flag or setting to skip the workspace trust prompt specifically in interactive mode, isn’t supported as a separate flag yet. The request makes sense, I’ll keep the thread open for votes.
But there’s a working workaround for both modes:
Interactive mode: trust inheritance by folder tree.
Trust a parent folder once, for example ~/dev, and all repos inside it, including ones you create later, won’t ask for workspace trust again. So just keep your projects under one trusted parent:
cd ~/dev
cursor-agent # confirm trust once
After that, cd ~/dev/any-repo && cursor-agent won’t show the prompt.
Headless or one-shot tasks.
If it fits into a single run, use print mode. There, --trust skips the prompt directly:
cursor-agent -p --trust "your prompt"
Add --force if you need it to apply changes to files, not just propose them.
So a separate interactive flag is what’s tracked here for votes, but trusting the parent folder should remove most of the pain right now. Let me know if that doesn’t cover your workflow.