Basics
Your First Project in Cursor: Open a Folder and Run Agent
Open Cursor, choose File > Open Folder and select your project. Press ⌘I on Mac or CtrlI on Windows and Linux to open the Agent panel, type a request such as "Add a dark mode toggle to the settings page", and send it. Agent explores the codebase, edits files and shows its changes for review.

On this page
How do I open a project in Cursor?
Cursor opens a folder, not a file. That is the habit to break if you are coming from an editor where you open individual files: the folder you choose is what Agent searches.
- 1Open Cursor.
- 2Click File > Open Folder.
- 3Select the folder for your project.
The folder you pick is, I think, a bigger decision than the dialog makes it look. Cursor indexes the whole workspace, which means the folder you opened and everything under it, so pointing it at the directory that holds five checkouts gives the agent five projects to search through. Open the repo root.
Going one level too deep fails more quietly. Open src/ on its own and the agent reads everything under it, so nothing looks broken, while the lockfile and the config one level up sit outside the workspace and never make it into the index it searches.
When a first session goes badly, the folder that is actually open is the thing I check before the prompt or the model.
This exact topic is a hands-on Lesson: Make one small change and review the diff — about 7 minutes, free to read. Or try it live in the simulator →
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How do I start using Agent?
Agent is Cursor's AI assistant, and Cursor is specific about its reach: it can search your codebase, edit files, and run terminal commands. Three steps to the first run.
- 1Open the Agent panel: ⌘I on Mac, CtrlI on Windows and Linux.
- 2Type a request. Cursor's own example: "Add a dark mode toggle to the settings page."
- 3Hit send. Agent explores your codebase, edits files, and shows its changes.
Cursor's own example, a dark mode toggle on the settings page, is a better first request than it looks. You can confirm it by opening the page and clicking the thing, which means the review step gets practised on a change you can actually see. Pick something checkable that way, even if it is smaller than what you came here to build.
Settle the terminal question before you send anything. Whether a command runs on its own or pauses for your approval is decided by your Run Mode setting rather than by the model, and the terminal tool page covers what each option allows.
You can keep typing while Agent works. Pressing Enter queues the message so it runs after the current task. That is what you want for a clarification, and the opposite of what you want when you have just watched the run head somewhere wrong. ⌘↵ (Ctrl↵ on Windows and Linux) skips the queue and sends immediately, joining your text to the most recent user message rather than waiting for a turn that has not started. Cursor's docs point at that shortcut specifically for interrupting or redirecting work in progress.
Can I run agents without opening Cursor?
Yes. The same agents run from the browser at cursor.com/agents as Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition., for work you want to continue without your machine involved. The full behaviour of Agent modeCursor's full-capability mode: the AI can read the codebase, write and edit files, move them and run terminal commands. Contrast with Ask mode, which is read-only. Press Enter for the full definition. is documented in the agent overview.
That equivalence carries a setup cost the local path does not. A cloud agent works against a connected GitHub, GitLab, Azure DevOps or Bitbucket account and the repositories you select, on a machine Cursor provisions, so before it can install dependencies and run your tests somebody has to configure an environment. For a first project, the folder on your disk is less work.
How do I review Agent's changes?
Agent's edits are applied as it works, so you are reviewing a change that already exists rather than approving one before it lands. Review them in the diff view and reject anything you do not want.
Seeing edits land in your files tells you the agent finished its turn. It does not tell you the change is right. The diff view is where that decision happens, and rejecting is a normal outcome.
The usual advice is to read every line of the diff. Which is realistic on a twelve-line change and quietly optimistic on a two-hundred-line one, so I would start somewhere else: check the file list against the task you described, then read. A change to a config file you never mentioned deserves more of your attention than three obviously-correct lines in the component you asked about.
On a first project the diff view is the whole review system, since there is no pull request and nobody else looking at it. Two or three people can work that way for a surprisingly long time. Past that the diff in your editor is invisible to everyone but you, and the gate has to move somewhere shared. Agent Review runs on a commit or on your full local diff against main and loads team standards from .cursor/BUGBOT.md, while BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. reviews the pull request itself.
What if Agent takes a wrong turn?
Restore a checkpoint. Agent snapshots your files during a session, automatically, before it makes significant changes, and each prompt in the chat timeline carries its own restore control. Click one to preview your files at that point, then restore to put every modified file back to that state.
The checkpoint you pick decides how much survives. Restore from the prompt that went wrong and the earlier edits stay where they are. Go back to the first prompt instead and you lose the good work along with the bad one, then get to run the whole session again.
Checkpoints are stored locally and sit outside Git, and Cursor is blunt about the boundary, telling you to use them for undoing agent changes and Git for version control. They cover the wrong turn inside a session and nothing wider than that. A commit before the first agent run is worth the ten seconds it costs. The failure I have watched is not one bad edit but an afternoon of them, and by that point there is no clean checkpoint left to go back to.
You can also reject the change outright and send the request again with the constraint you left out. On a small first change that is usually quicker than picking through the diff deciding what to keep.
Reject scope creep, then re-prompt tighter
0:42 · narratedRead this demo as text
- A vague prompt came back with two changes bundled together — the reword you wanted, and a className rename nobody asked for. Reject it. Rejecting costs nothing; the file on disk never moved.
- Re-prompt tighter — name the exact string and the exact replacement. One hunk this time. Read it line by line: nothing rides along that you didn't ask for.
- Accept the clean hunk. Reject-and-re-prompt cost you seconds; untangling an accepted scope creep costs a whole review cycle.
Practice next: Practice this yourself in the hands-on module.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.
How do I give Agent more context?
By default Agent searches your codebase itself, so on a first project you often do not need to do anything. When you do want to point it somewhere specific, type @ in the chat input and name the file or folder, for example @auth.ts or @src/components/.
Ask mode: attach the file, get the cited lines
0:34 · narratedRead this demo as text
- Ask mode still gets the full @ menu. Type @, filter to EmptyState.tsx, and pick it — the file rides with the question.
- Send it in Ask mode. The agent reads the file — it doesn't touch it. No diff comes back, only an answer.
- Line 10's icon never moves; only line 15's hint text changes with the query. Ask mode named the exact lines instead of guessing.
Practice next: Practice this yourself in the hands-on module.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.
- Finding files
- Agent searches the codebase automatically
- Pointing at a file
@in the chat input, then the file or folder name- Changing how it behaves
- Rules, once you know what you want it to do differently
Cursor's first-project page covers the first two rows itself and links out to Rules for the third.
The context that changes a first run most is probably not a file at all. It is the sentence where you say how the agent should know it worked, naming the command that should pass or the page that should look different afterwards. Agent can run that command and read the output, which turns a success criterion into something it acts on.
Rules get one line in that table and deserve a caveat. A rule is a standing instruction that applies to every request it matches, whether or not you remember writing it, so a day-one rules file tends to age badly. Watch what the agent gets wrong on your codebase, then write the rule about that.
Frequently asked questions
How do I open a project in Cursor?
Open Cursor, click File > Open Folder, and select your project folder. Cursor works on a folder rather than individual files, and that folder is what Agent searches.
What is the shortcut to open Agent?
⌘I on Mac, CtrlI on Windows and Linux. Type your request and send it; Agent explores the codebase, edits files and shows its changes.
Do I have to approve edits before Agent makes them?
No. Agent applies its edits as it works. You review them afterwards in the diff view and reject anything you do not want.
Can I run agents without opening Cursor?
Yes. Cloud Agents run from the browser at cursor.com/agents, so work continues without your local editor open. Unlike the local path, a cloud agent works against a connected GitHub, GitLab, Azure DevOps or Bitbucket account, and it needs an environment configured for the repositories you select before it can install dependencies and run your tests.
How do I undo what Agent changed?
Restore a checkpoint. Agent snapshots your files before significant changes, and each prompt in the chat timeline has its own restore control; restoring reverts every modified file to that point. Restore from the prompt that went wrong rather than the first one, or you lose the good edits too. Checkpoints are local and separate from Git, so anything you want permanently still has to be committed.
Can I send a correction while Agent is still working?
Yes. Pressing Enter queues your message and it runs after the current task. ⌘↵ (Ctrl↵ on Windows and Linux) skips the queue and sends it immediately, which is the one to use when the run is already going the wrong way.
Sources & last verified
Cursor ships frequently. Facts verified against primary sources on July 27, 2026.