Whitelist of terminal commands cursor can run

This is now live in the latest version of Cursor.

Go to SettingsFeatures, and turn on Enable yolo mode.

They have a Command allowlist, which seems to be what you’re looking for.