Skip to content

Cursor IDE: The AI Code Editor

Cursor is an AI code editor built on VS Code. Its agent plans, edits across files, runs terminal commands, and prepares pull requests, on your machine or as Cloud Agents in cloud VMs. This Cursor overview routes developers and tech leads to the right guide and shows how one change reaches a merged pull request with evidence.

You asked the agent for a fix, it touched 11 files, and the pull request now waits for you to read every line. Cursor made writing the change fast; this guide is about making trusting it fast too.

Pick the smallest surface that can finish the job: every step up in autonomy needs a stronger check at the end.

SurfaceUse it whenProve the output withGuide
Tab completion and inline editYou know the change and want it typed fasterA quick read of a few lines, then the type checkerTab completion, inline edit
Agent, localThe change spans several files and you can state the acceptance testTests and lint the agent runs, then CIAgent workflows
Plan ModeThe change is risky or unclearYou review the plan, not the codeAgent modes
WorktreesYou want parallel attempts, each in its own Git checkoutEach attempt’s own test run; you compare resultsCheckpoints and branching; see also the Agents Window guide
Cloud Agents and AutomationsWork starts without you: from an issue, a schedule, or an eventRequired CI and review on the pull requestCloud Agents and Automations
Bugbot and PR Routing & ApprovalReview should start before a human opens the diffBugbot’s comments plus your approval rules; a human owns the mergeBugbot, PR Routing & Approval

Plan Mode “creates detailed implementation plans before writing any code”, and worktrees “let Agent work in isolated Git checkouts” (Cursor docs, checked 28 August 2026). Keep project conventions in Cursor’s Rules, reusable procedures in Agent Skills, and external systems behind MCP servers, so prompts stay short.

This is the Cursor version of the tool-independent AI-native lifecycle. Each stage’s artifact is stored as docs/<kind>/FEATURE.md.

Prerequisites: a Git repository with a clean working tree, Cursor signed in, the real test, lint, and type-check commands in a project rule, and an intent and a spec for the change in docs/intents/FEATURE.md and docs/specs/FEATURE.md (see Capture intent and Write the spec).

  1. Switch the agent to Plan Mode and paste the planning prompt below. The prompt tells the agent not to edit any file.

  2. Save the plan to docs/plans/FEATURE.md (paste it in, or tell the agent “write the accepted plan to docs/plans/FEATURE.md and nothing else”), cut anything you did not ask for, and commit it.

  3. Start the implementation in a worktree so a failed attempt never touches your main checkout. Create one on a new branch in your terminal, open that folder in Cursor, and install dependencies there:

    Terminal window
    git worktree add -b FEATURE ../FEATURE_CHECKOUT

    FEATURE_CHECKOUT is a new folder beside your repository. Cursor can also create worktrees for its agents; see checkpoints and branching. Confirm the checkout exists:

    Terminal window
    git worktree list
  4. Paste the implementation prompt below into the agent in that worktree.

  5. Open the pull request. Let CI and Bugbot run before a human looks, then merge on the evidence below.

In both prompts, replace FEATURE with the feature’s slug.

How do you trust a Cursor change without reading every line?

Section titled “How do you trust a Cursor change without reading every line?”

Move the checking from your eyes to gates that run on every change. The evidence bundle defines what a pull request must carry; in Cursor it comes from four sources:

  • Tests written first. The agent shows a failing test before the fix, so green means the behaviour changed.
  • Machine gates in CI. Type check, lint, and tests are required status checks. The agent’s run is a preview; CI is the record.
  • Review before a human. Bugbot “reviews pull requests and identifies bugs, security issues, and code quality problems” (Cursor docs, checked 28 August 2026). PR Routing & Approval assigns reviewers by code ownership and can approve low-risk pull requests that meet your criteria.
  • A named human sign-off. Merges to protected branches need a named approver, who reads the plan, test names, and CI result and opens the diff only where evidence is thin.

The full argument is in reading evidence instead of code.

The agent turns a red test green by changing the test. Recovery: reject the change, restore the test from Git, and rerun with the implementation prompt, which forbids it. Put the same ban in a project rule.

Unattended terminal commands reach something destructive. Recovery: review the agent’s Run modes settings (Cursor’s Agent security docs) before commands run without asking, and keep deploy, migration, and data-deleting scripts out of anything auto-approved.

The agent’s edits cannot be cleanly undone. Do not rely on the editor’s undo history or checkpoints alone: commit before a large agent task so Git holds a restore point you control.

New to Cursor? Start with the quick start, then the developer track. Leading a team? Read Cursor for teams.

The same lifecycle runs in Claude Code and Codex; the power-user tips cover all three.