Skip to content

Essential Configuration

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

  • Auto-runs tests: npm test, pytest, cargo test
  • Creates files/directories: mkdir, touch
  • Executes builds: npm run build, tsc
  • Runs linters: eslint, prettier
  • Git read operations: git status, git diff
  1. Open Settings: Cmd/Ctrl + Shift + J

  2. Navigate to Agent

  3. Enable “Auto-run” (Yolo Mode)

  4. 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.
  5. Add Custom Allow Rules:

    • Test runners: jest, mocha, cypress
    • Build tools: webpack, vite, rollup
    • Linters: black, rubocop, golint
    • Package managers: 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"
]
}

Use Max Mode

  • Large refactoring (100+ files)
  • Cross-module analysis
  • Architecture planning
  • Complex debugging

Skip Max Mode

  • Simple file edits
  • Small bug fixes
  • Documentation updates
  • Routine coding
  1. Open Settings: Cmd/Ctrl + Shift + J
  2. Navigate to Models
  3. Toggle “Max Mode” on
  4. Understand the impact:
    • Normal: 128k tokens (~10,000 lines)
    • Max: 1M tokens (~80,000 lines)
    • Cost: ~8x more expensive
    • Speed: 30-50% slower
ModelNormal ContextMax ContextBest For
Claude 4 Sonnet128k200kDaily development
Claude 4 Opus128k200kComplex reasoning
Gemini 2.5 Pro128k1MLarge codebase analysis
GPT 4.1128k1MVersatile tasks
o3128k200kDeep problem solving

The Workhorse (Default)

Speed: Fast
Cost: $3/million tokens
Strengths:
- Excellent code generation
- Fast responses
- Cost-effective
- Great instruction following
Use for:
- Daily coding tasks
- Feature implementation
- Bug fixes
- Code reviews
  1. Open Settings: Cmd/Ctrl + Shift + J
  2. Navigate to Models
  3. Set Chat Model: Claude 4 Sonnet (recommended)
  4. Set Tab Model: Keep default (optimized for completions)
  5. Enable Auto Model Selection: Off (maintain control)
graph TD A[Task Type] --> B{Complexity?} B -->|Simple| C[Claude 4 Sonnet] B -->|Complex| D{What Kind?} D -->|Architecture| E[Claude 4 Opus] D -->|Debugging| F[o3] D -->|Large Context| G[Gemini 2.5 Pro] H[Context Size] --> I{Lines of Code?} I -->|< 10k| C I -->|10k - 50k| J[Enable Max Mode] I -->|> 50k| G
  1. Open Command Palette: Cmd/Ctrl + Shift + P
  2. Type and select: “Generate Cursor Rules”
  3. Cursor analyzes your project and creates initial rules
  4. Review generated .cursor/rules/ directory
  1. Open Command Palette: Cmd/Ctrl + Shift + P
  2. Select: “New Cursor Rule”
  3. Choose rule type:
    • Always: Applied to every AI interaction
    • Auto-attached: Applied based on file patterns
    • Agent Requested: AI decides when to use
    • Manual: Only when explicitly referenced
---
description: Code style and formatting standards
alwaysApply: 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'
.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.

  1. Open Settings: Cmd/Ctrl + Shift + J
  2. Navigate to Privacy
  3. Ensure Privacy Mode shows: ✓ Enabled
  4. Check telemetry settings:
    • Disable usage analytics
    • Disable crash reporting
    • Disable feature tracking
{
"privacy": {
"mode": "enabled",
"telemetry": false,
"crashReports": false,
"usageData": false,
"codeSnippets": false
},
"security": {
"httpsOnly": true,
"certificateValidation": true
}
}

Indexing

Settings → Indexing

  • Enable incremental indexing
  • Set update interval: 5 minutes
  • Exclude: node_modules, dist

Auto-complete

Settings → Tab

  • Trigger delay: 100ms
  • Multi-line completions: On
  • Partial accept: Enabled

Essential shortcuts to configure:

ActionDefaultRecommended
Inline EditCmd/Ctrl + KKeep default
Open ChatCmd/Ctrl + IKeep default
Accept SuggestionTabKeep default
Trigger SuggestionAlt + \Customize if needed
Open ComposerCmd/Ctrl + Shift + IKeep default

Run this checklist to ensure everything is configured:

  1. Test Yolo Mode:

    Terminal window
    # In Chat, type:
    "Create a test file and run npm test"
    # Should execute without prompts
  2. Test Model Selection:

    • Switch to o3 model
    • Ask a complex question
    • Verify slower but deeper response
  3. Test Rules:

    • Create a new file
    • Ask AI to write a function
    • Verify it follows your style rules
  4. Test Privacy:

    • Check Settings → Privacy
    • Ensure “Privacy Mode: Enabled”

Continue to Model Selection

Now let’s dive deeper into when and how to use each AI model effectively.

Model Selection →

Time: 10 minutes