Skip to content

Cursor quick start: from install to a verified first feature

The Cursor quick start is ten short guides, about two hours in total, that take a developer from a fresh install to a first feature proved by evidence. It sets up a verify command, a run mode, project rules, and MCP, then builds a feature in Plan Mode where tests, not a line-by-line read, decide when it is done.

It is for the developer setting up Cursor on a real repository and the tech lead who commits the result for the team. In a first session the agent often edits several files, says it is done, and only your checks can tell you whether it is.

  • A verify script (type check, lint, tests) that the agent, a hook, and CI all call.
  • A run mode that runs that script unprompted and keeps git push behind approval, plus .cursorignore so the agent cannot read secrets.
  • Project rules in git that every teammate’s agent follows.
  • One feature merged with evidence: criteria, a test per criterion, a green gate, a scoped diff.

Do steps 1–8 in order; take 9 and 10 when you need them.

#GuideTimeDone when
1Install Cursor10 minCursor opens your repository and the agent answers in chat
2Configure the agent’s gate15 minThe agent runs npm run verify without an approval prompt and cannot read .env
3Choose a model10 minYou know which model runs, and change it only on evidence
4Write project rules10 minAsked which rules apply, the agent names yours
5Plan from a PRD15 minYou approved a plan’s acceptance criteria in Plan Mode
6Connect MCP servers10 minThe agent calls one tool from one MCP server
7Manage context10 minThe agent reuses your canonical example
8Build your first feature20 minEach criterion maps to a test that fails when the code is broken
9Recover from agent mistakes10 minYou have rolled back one agent change on purpose
10Work with git and your team15 minYour pull request carries an evidence summary

Step 2 comes this early on purpose: every later layer points at the verify command. For the model, start on the one Cursor selects and switch only when your own tests show the work falls short; current names and prices are in the models hub.

How do you check that the Cursor setup works?

Section titled “How do you check that the Cursor setup works?”

Commit a clean baseline first, so any uncommitted agent change is one git restore . away, plus git clean -nd to review new files and git clean -fd to delete them (or git stash -u to keep it all). Then run the gate yourself in a terminal at the repository root:

Terminal window
git status --short # empty: nothing uncommitted before the agent starts
npm run verify # your type check, lint and tests; must exit 0 on main

Fix or record a red verify first, or the agent “fixes” failures it did not cause. Then paste this into Cursor’s agent chat:

The setup passes when verify ran unprompted, .env was refused, the quoted rules are yours, and git status --short is empty.

How do you trust the first feature without reading every line?

Section titled “How do you trust the first feature without reading every line?”

The agent proves its work, and you check the proof. Write acceptance criteria before any code, paste them into Plan Mode, and approve the plan. Build one step per prompt with a commit after each, while a Cursor hook that re-runs verify when the agent finishes sends failures back to it.

You sign off on the criteria, a criterion-to-test table, and the scope from git diff --stat; CI re-runs verify on the pull request. Build your first feature walks through it, and evidence, not diffs explains why it scales.

SymptomLikely causeRecovery
The agent asks before every test runThe run mode still asks for that commandSet a run mode that lets npm run verify run without approval (essential configuration)
The agent ignores your conventionsNo rule, or it never loadsFix it with project rules
The agent writes a new helper instead of yoursIt never saw yours@-mention one canonical example (context management)
Tests pass, but the feature is brokenThe tests mock the broken partTest through the real entry point (first feature)
The agent turns a test green by editing itNothing forbade itCheck git diff --stat main...HEAD -- '*.test.*' '*.spec.*' for committed steps (drop main...HEAD for uncommitted edits), revert, and forbid it in a rule
One prompt broke many filesThe step was too largegit restore ., then git clean -nd to review new files and git clean -fd to delete them (or git reset --hard <last good commit> for committed steps), then ask for a smaller step (error recovery)
A tutorial says “YOLO mode”, “Auto-Run”, .cursorrules, or Background AgentsIt predates Cursor’s renamesUse Run modes, Rules, and Cloud Agents instead

Where to go next after the Cursor quick start

Section titled “Where to go next after the Cursor quick start”

For the wider path, follow the developer track and the Cursor overview; for other agents, see the Claude Code and Codex quick starts.