Skip to content

Essential Configuration

You have Cursor installed and your project open. You type a prompt, the AI suggests running npm test to verify its changes, and then… it stops and waits for your approval. You click “Allow.” It suggests mkdir -p src/utils. It stops again. You click “Allow.” It wants to run tsc. You click “Allow.” Twenty clicks later, you wonder why anyone calls this productive. The fix takes sixty seconds: enable auto-run mode. Combined with Max mode for complex tasks and proper privacy configuration, these three settings transform Cursor from a chatbot-with-an-editor into a genuine development partner.

  • Auto-run mode configured with sensible allow/deny lists so the AI executes safe commands without asking
  • Max mode understood and ready to toggle for complex tasks requiring deep codebase analysis
  • Privacy settings locked down for your environment — whether personal projects or enterprise compliance
  • A clear mental model for which setting to change when the AI feels too slow, too limited, or too risky

Auto-run is the single most impactful setting in Cursor. It lets the agent execute terminal commands — running tests, creating directories, building your project — without stopping to ask permission for each one.

  1. Open Cursor Settings: Cmd+Shift+J (macOS) or Ctrl+Shift+J (Windows/Linux)

  2. Navigate to the Agent section

  3. Toggle Auto-run to enabled

  4. Configure your auto-run prompt with allowed commands

When you enable auto-run, Cursor gives you a text field to describe what commands are safe to run automatically. This is not a JSON config — it is natural language that the agent interprets.

Equally important is telling the agent what it should never run without asking:

Here is the workflow difference:

Without auto-run: You prompt the agent to “fix the TypeScript errors.” It finds the errors, proposes fixes, suggests running tsc to verify… and waits. You click Allow. It finds another error, fixes it, wants to run tsc again… and waits. Ten interruptions for one task.

With auto-run: You prompt “fix all TypeScript errors and verify the build passes.” The agent runs tsc, reads the errors, fixes them across files, runs tsc again, sees zero errors, and reports back. You review the diff once.

Max mode extends the context window beyond the default 200k tokens. For models like Gemini 3 Pro, it unlocks the full 1M token context. For Claude models, it extends to their maximum available window.

Use Max ModeSkip Max Mode
Refactoring that touches 50+ filesSingle-file bug fixes
Architecture analysis of a large codebaseWriting a new utility function
Planning a feature that spans multiple modulesDocumentation updates
Debugging an issue that involves multiple servicesRoutine coding tasks

Click the Max toggle next to the model picker in the agent panel. You can also toggle it per-conversation — it does not have to be a global setting.

ModelDefault ContextMax Mode Context
Claude Opus 4.6200k1M
Claude Sonnet 4.5200k1M
Gemini 3 Pro200k1M
GPT-5.2272k
Grok Code256k

Max mode is most impactful with Claude and Gemini models where it significantly extends the available context.

Whether you are working on a personal side project or enterprise code under NDA, understanding Cursor’s privacy settings is non-negotiable.

  1. Open Settings: Cmd+Shift+J / Ctrl+Shift+J

  2. Navigate to General then Privacy

  3. Enable Privacy Mode

  4. Verify the status reads “Privacy Mode enabled”

When Privacy Mode is on:

  • Your code is not stored on Cursor’s servers beyond the duration of a request
  • Your code is not used for training any AI models
  • Conversations are not persisted server-side

For maximum privacy, also review these in Settings:

  • Usage analytics — disable if you prefer no telemetry
  • Crash reporting — can be disabled, though it helps the Cursor team fix bugs

For teams on Cursor’s Business or Enterprise plans:

  • Privacy Mode is enforced organization-wide by default
  • Team admins can set mandatory rules via the Cursor dashboard
  • SOC 2 compliance documentation is available on request
  • No code leaves your machine in plaintext — all API communication is encrypted

Before moving on, verify these settings are configured:

SettingLocationRecommended Value
Auto-runAgent settingsEnabled with allow list
Privacy ModeGeneral > PrivacyEnabled
Max ModeAgent panel toggleOff by default, toggle per-task
Auto-saveFile settingsOn (essential for smooth AI workflows)
Format on SaveEditor settingsOn (keeps generated code clean)

Auto-run executes something unexpected: Cursor creates a checkpoint before every set of changes. Use the restore button in the chat panel to roll back. Then tighten your auto-run allow list.

Max mode is too slow: Switch back to normal mode for the current task. Max mode adds latency because the model processes more context. Only use it when you actually need the larger window.

Privacy Mode blocks a feature: Privacy Mode should not block any features. If you experience issues, check that your Cursor subscription is active and your network allows connections to Cursor’s API endpoints.

AI responses seem worse after changing settings: Clear the current chat and start fresh. Settings changes do not retroactively affect an ongoing conversation, so old context may conflict with new behavior.