upvote
Does Cursor allow you to blacklist certain commands as well? I know OpenCode has this, where you can both whitelist things like grep/ls but then also blacklist things like cat .env, or rm -rf. I usually copy paste my configs nowadays, so I very rarely get prompted for any permissions (except when using Claude, which somehow decided that all users live in ~/Users, even on Linux)
reply
> Does Cursor allow you to blacklist certain commands as well? I know OpenCode has this

No, Cursor only has an allowlist; no blacklist

reply
Claude Code also does this.

It’s a little broken, though. It gets hung up on nested commands and behaves strangely.

reply