Yolo Mode
Auto-execution of safe operations
Lets AI run tests, create files, and execute build commands without constant approval
Master Cursor’s essential configurations in 15 minutes. We’ll enable power features, select optimal AI models, generate project rules, and ensure your setup is ready for serious development.
Yolo Mode
Auto-execution of safe operations
Lets AI run tests, create files, and execute build commands without constant approval
Max Mode
Extended context windows
Increases context from 128k to 1M tokens for complex operations (slower but more capable)
Privacy Mode
Enterprise-grade security
Ensures zero code retention and no training on your data
Model Selection
Strategic AI model usage
Choose the right model for each task - balance speed, cost, and capability
npm test
, pytest
, cargo test
mkdir
, touch
npm run build
, tsc
eslint
, prettier
git status
, git diff
Open Settings: Cmd/Ctrl + Shift + J
Navigate to Agent
Enable “Auto-run” (Yolo Mode)
Configure Allow List:
# Recommended Yolo Mode Prompt:Any kind of tests are always allowed like vitest, npm test,nr test, etc. Also basic build commands like build, tsc, etc.Creating files and making directories (like touch, mkdir, etc)is always ok too. Git read operations are safe.
Add Custom Allow Rules:
jest
, mocha
, cypress
webpack
, vite
, rollup
black
, rubocop
, golint
npm install
, yarn add
More permissive for rapid development:
{ "allow": [ "npm test", "npm run build", "npm install", "git status", "git diff", "mkdir -p", "touch", "ls -la" ]}
Restricted for safety:
{ "allow": [ "npm test", "git status" ], "deny": [ "rm -rf", "git push", "npm publish" ]}
Use Max Mode
Skip Max Mode
Cmd/Ctrl + Shift + J
Model | Normal Context | Max Context | Best For |
---|---|---|---|
Claude 4 Sonnet | 128k | 200k | Daily development |
Claude 4 Opus | 128k | 200k | Complex reasoning |
Gemini 2.5 Pro | 128k | 1M | Large codebase analysis |
GPT 4.1 | 128k | 1M | Versatile tasks |
o3 | 128k | 200k | Deep problem solving |
The Workhorse (Default)
Speed: FastCost: $3/million tokensStrengths: - Excellent code generation - Fast responses - Cost-effective - Great instruction followingUse for: - Daily coding tasks - Feature implementation - Bug fixes - Code reviews
The Architect
Speed: ModerateCost: $15/million tokens (5x Sonnet)Strengths: - Superior reasoning - Complex problem solving - Architecture design - Deep code understandingUse for: - System design - Complex refactoring - Algorithm optimization - Technical planning
The Problem Solver
Speed: SlowCost: Variable (usage-based)Strengths: - Exceptional debugging - Complex logic puzzles - Mathematical reasoning - Edge case handlingUse for: - Difficult bugs - Algorithm design - Performance optimization - Complex business logic
The Context Master
Speed: FastCost: $7/million tokensStrengths: - 1M token context - Excellent for large codebases - Strong multimodal support - Good cross-file understandingUse for: - Large codebase navigation - Multi-file refactoring - Documentation generation - Cross-module analysis
Cmd/Ctrl + Shift + J
Cmd/Ctrl + Shift + P
.cursor/rules/
directoryCmd/Ctrl + Shift + P
---description: Code style and formatting standardsalwaysApply: true---
## Code Style Guidelines
- Use TypeScript with strict mode enabled- Prefer const over let, never use var- Use async/await over callbacks- Destructure imports and parameters- Include JSDoc comments for public APIs- Follow ESLint configuration- Use 2 spaces for indentation
## Naming Conventions
- Components: PascalCase- Functions/variables: camelCase- Constants: UPPER_SNAKE_CASE- Files: kebab-case- Interfaces: prefix with 'I'
---description: Architecture patterns and principlesglobs: ["src/**/*.ts", "src/**/*.tsx"]---
## Architecture Principles
- Follow Domain-Driven Design- Use Repository pattern for data access- Implement dependency injection- Keep business logic in services- Controllers should be thin- Use custom errors for domain exceptions
## File Structure
src/ domain/ # Business entities application/ # Use cases infrastructure/ # External services presentation/ # UI components
---description: Testing standards and practicesglobs: ["**/*.test.ts", "**/*.spec.ts"]---
## Testing Requirements
- Write tests for all new features- Maintain 80% code coverage- Use descriptive test names- Follow AAA pattern (Arrange, Act, Assert)- Mock external dependencies- Test edge cases and error scenarios
## Test Structure
describe('ComponentName', () => { describe('methodName', () => { it('should handle specific scenario', () => { // Test implementation }); });});
.cursor/rules/├── always/│ ├── code-style.mdc│ └── security.mdc├── backend/│ ├── api-patterns.mdc│ └── database.mdc├── frontend/│ ├── components.mdc│ └── state-management.mdc└── testing/ └── test-patterns.mdc
Enterprise Requirements
These settings are critical for corporate environments with strict data policies.
Cmd/Ctrl + Shift + J
{ "privacy": { "mode": "enabled", "telemetry": false, "crashReports": false, "usageData": false, "codeSnippets": false }, "security": { "httpsOnly": true, "certificateValidation": true }}
{ "privacy": { "mode": "enabled", "shareWithTeam": true, "shareContext": ["rules", "memory"], "excludePatterns": [ "**/*.env", "**/*secret*", "**/credentials/**" ] }}
Indexing
Settings → Indexing
node_modules
, dist
Auto-complete
Settings → Tab
Essential shortcuts to configure:
Action | Default | Recommended |
---|---|---|
Inline Edit | Cmd/Ctrl + K | Keep default |
Open Chat | Cmd/Ctrl + I | Keep default |
Accept Suggestion | Tab | Keep default |
Trigger Suggestion | Alt + \ | Customize if needed |
Open Composer | Cmd/Ctrl + Shift + I | Keep default |
Run this checklist to ensure everything is configured:
Test Yolo Mode:
# In Chat, type:"Create a test file and run npm test"# Should execute without prompts
Test Model Selection:
Test Rules:
Test Privacy:
Continue to Model Selection
Now let’s dive deeper into when and how to use each AI model effectively.
Time: 10 minutes