I made this option as a custom mode. I copied the following into the the custom instructions box. There’s probably a better way to do it but it works and seems to be more mindful of the settings and rules, Vibe on
.
”
Cursor IDE Settings for Vibe Coding Style
This document describes the Cursor IDE settings that should be configured at the IDE level (not just project level) to support the “Vibe Coding” workflow.
Settings Location
Cursor settings are stored in:
- Windows:
%APPDATA%\Cursor\User\settings.json - macOS:
~/Library/Application Support/Cursor/User/settings.json - Linux:
~/.config/Cursor/User/settings.json
Recommended Settings
1. Enable Auto-run (Chat Settings)
Path: Settings → Chat → Auto-run
Enable this setting to allow the agent to run commands automatically without approval. This is essential for automatic script verification.
Warning: This allows commands to execute without confirmation. Use with caution and consider guardrails.
2. Create Custom “Vibe Coding” Mode
Path: Settings → Chat → Custom Modes → Create New
Mode Name: Vibe Coding
Instructions:
You are operating in "Vibe Coding" mode:
- Always test scripts immediately after creation
- Run scripts and verify exit code before reporting completion
- Minimize file opening - use codebase search instead
- Only mark scripts as "ready for use" after successful test execution
- Fix errors immediately and re-test
- Prefer chat-based workflow over file editing
- Use git worktree context awareness for file access
Tools to Enable:
File reading
Terminal execution
Codebase search
File writing
Tools to Disable (if available):
Automatic file opening
3. File Opening Behavior
Path: Settings → Editor → Files → Auto Save
Recommended: afterDelay (saves files automatically after a delay)
Note: Cursor removed automatic file opening in later versions. If files are opening unexpectedly, check:
- Custom modes settings
- Agent mode settings
- File associations
4. Terminal Settings
Path: Settings → Terminal
Recommended:
- Auto-run commands: Enable (for script verification)
- Terminal timeout: Set to reasonable value (e.g., 60 seconds)
- Show exit codes: Enable (to verify script success)
5. Chat Panel Settings
Path: Settings → Chat
Recommended:
- Auto-run: Enable (for automatic script testing)
- Context window: Increase if needed for large codebases
- Git worktree awareness: Enable (if available)
Applying Settings
Method 1: Via Cursor UI
- Open Cursor Settings (Ctrl+, or Cmd+,)
- Navigate to each section above
- Apply the recommended settings
Method 2: Via settings.json
Edit the settings.json file directly:
{
"cursor.chat.autoRun": true,
"cursor.chat.customModes": [
{
"name": "Vibe Coding",
"instructions": "You are operating in 'Vibe Coding' mode:\n- Always test scripts immediately after creation\n- Run scripts and verify exit code before reporting completion\n- Minimize file opening - use codebase search instead\n- Only mark scripts as 'ready for use' after successful test execution\n- Fix errors immediately and re-test\n- Prefer chat-based workflow over file editing\n- Use git worktree context awareness for file access",
"tools": {
"fileReading": true,
"terminalExecution": true,
"codebaseSearch": true,
"fileWriting": true,
"autoOpenFiles": false
}
}
],
"terminal.integrated.autoRun": true,
"terminal.integrated.showExitCode": true,
"files.autoSave": "afterDelay"
}
Project-Level Configuration
In addition to IDE-level settings, this project includes:
.cursorrulesfile: IDE-level rules that apply to all projectsPROJECT_RULES.md: Project-specific rules and guidelines
Verification
After applying settings, verify:
Auto-run is enabled in Chat settings
“Vibe Coding” custom mode is created and selected
Terminal shows exit codes
Scripts are tested automatically after creation
Troubleshooting
Files Still Opening Automatically
- Check if you’re in Agent mode (which may open files)
- Verify custom mode settings
- Check file associations
Scripts Not Being Tested
- Verify Auto-run is enabled
- Check custom mode instructions
- Ensure terminal execution is enabled in custom mode
Context Not Working with Git Worktrees
- Ensure git worktree awareness is enabled (if available)
- Use codebase search instead of opening files
- Rely on file reading tools rather than editor context
”
