Cursor Agent is the coding assistant in Cursor that can inspect project files, make changes and run permitted terminal commands to complete a defined development task. Unlike inline code suggestions, it can follow a multi-step objective and adapt its work after reading test results. It is useful for implementing features, investigating bugs and maintaining existing code. For a broader comparison across coding, customer support and business operations, see our list of AI agents.
This guide uses Cursor’s official Agent, CLI, run-mode and pricing documentation, along with three published tutorials reviewed November 29, 2026. The example below is illustrative rather than a firsthand product test. Features and prices can change by release and account.
What is Cursor Agent?
Cursor Agent combines a selected AI model, project instructions and tools. The model interprets the goal and selects operations, while the available tools determine what it can read or change. Typical operations include finding files, examining code, editing a module and running a test command.
Cursor’s editor documentation also describes checkpoints for reverting agent file changes. Checkpoints are useful during exploration, but they are not a replacement for version control. A checkpoint that restores source files does not undo every possible external action, such as a database update.
Choose the agent when a task needs several coordinated steps rather than a single completion. Our AI agents for coding guide compares this approach with other coding agents.
Cursor Agent, Plan and Ask modes
| Mode | Suitable task | Expected behavior |
|---|---|---|
| Ask | Understand an unfamiliar module | Investigate and explain without edits |
| Plan | Design a multi-file change | Produce a proposed implementation plan |
| Agent | Implement an approved task | Use tools to edit, execute and verify |
Start with Ask when you need to understand existing behavior. For a substantial feature, use Plan to clarify dependencies and acceptance criteria before implementation. Move to Agent when the change scope is understood. These modes describe the task workflow; run modes and permissions separately govern which tool operations are allowed.
The Cursor CLI documentation lists Ask and Plan modes as well as Agent execution. For terminal-first users, the documented /ask and /plan commands can switch modes in an interactive session. Check your installed version for exact shortcuts and options.
How to use Cursor Agent
1. Open a controlled project
Install Cursor from its official distribution, sign in and open a project you are authorized to work on. Use a development checkout rather than an environment connected directly to production. Record the current Git status so existing edits are not mistaken for agent-generated changes.
2. Define the task and acceptance criteria
Describe the problem, expected behavior and scope boundaries. Provide relevant file paths, test output or reproducible steps. Avoid dumping unrelated folders or credentials into the prompt. Ask the agent to identify uncertain requirements rather than guessing.
3. Ask for a plan
For a change affecting several files, request an implementation plan that identifies the files involved, potential side effects and verification steps. Review the proposed scope and remove unrelated improvements. A plan is a proposal, not proof that every assumption is correct.
4. Allow the required implementation
Use the appropriate agent and run-mode settings for the approved work. Review requests to run commands that install dependencies, access external resources or change sensitive configuration. Ask for a small patch and preserve existing project conventions.
5. Inspect the actual result
Review the diff, run the relevant checks and compare behavior with the original requirements. Request correction of failures before merging. For larger workflows, see our agentic engineering vs vibe coding guide.
Example: fix a validation bug
Imagine a fictional application whose quantity field accepts negative values. The goal is to reject invalid input without changing valid orders or introducing a new dependency. A useful first instruction is:
โInspect the order-validation code and relevant tests. Explain why negative quantities are accepted. Propose the smallest fix and regression tests. Do not change database schemas, install dependencies or deploy anything. Wait for my approval before editing.โ
| Step | Expected evidence |
|---|---|
| Investigate | Identify the validation path and affected tests |
| Plan | Describe the minimal change and supported input rules |
| Implement | Modify the authorized validation code and tests |
| Verify | Run the relevant regression suite and report actual output |
| Review | Inspect the final diff for unrelated changes |
Include positive and negative test cases. A negative quantity should fail, a valid quantity should still succeed, and boundary values should behave according to the documented requirements. If a failing test depends on an unavailable service, the agent should report the missing verification instead of claiming that all tests pass.
This pattern is intentionally independent of language and framework. The correct validation rule belongs to the project’s specification, not to the agent’s assumptions.
Project rules, tools and cloud agents
Project instructions and reusable skills
Cursor supports project rules under .cursor/rules and recognizes project instruction files such as AGENTS.md in its documented CLI behavior. Keep persistent instructions concise and specific: approved test commands, coding conventions, directory boundaries and changes that require human approval.
Rules can help keep tasks consistent, but an instruction to avoid sensitive operations does not itself enforce operating-system or application permissions. Use the appropriate execution controls as well.
MCP integrations
Model Context Protocol integrations can give the agent access to external tools beyond the code editor. Start with approved read operations and verify the identity and scope of the connected account. Our guide to using Zapier with Cursor covers a specific integration and its authorization considerations.
Cloud Agents and delegated work
For supported cloud execution, Cursor can run coding work in a separate environment. Define the repository, dependencies, allowed network access and task requirements. Review the resulting changes rather than assuming that a separate environment guarantees correctness or security.
The CLI also supports Git worktree execution with the documented –worktree option. Isolating file edits can reduce interference between simultaneous tasks, but changes still need to be integrated and tested together. Cursor’s current Projects feature provides another way to coordinate larger work across agents.
Cursor Agent pricing and usage limits
Cursor’s official Models & Pricing documentation reviewed on November 29, 2026 lists the following individual monthly prices in US dollars, excluding tax. These are subscription prices rather than fixed charges for every completed coding task.
| Plan | Monthly price | Documented access |
|---|---|---|
| Free | $0 | Limited Agent and Chat usage |
| Plus | $8 | Base included usage; restricted model selection |
| Premium | $30 | 4x Plus included usage; cloud agents and automations |
| Super | $100 | 15x Plus included usage |
| Ultra | $200 | 50x Plus included usage |
The pricing documentation describes a weekly-refreshing usage pool shared across eligible services. On Premium and higher individual plans, third-party models are billed at API list price from prepaid credit. Check the actual subscription, model settings and usage dashboard before starting a large task.
Cost depends on model selection, context length, repeated tool operations and the number of delegated agents. A small bug fix might require much less processing than a multi-repository migration. Track the cost of accepted, verified changes rather than the number of prompts sent.
Review, permissions and limitations
How to use Cursor Agent Review
Cursor’s official Agent Review documentation describes a dedicated local code review, separate from manually inspecting the diff. Start a review using /agent-review in the agent window or the Source Control tab to compare local changes with the main branch. Automatic review can also be configured. Cursor documents a settings relocation in version 3.11 from Agents to Git & PRs, under Pull Requests.
Quick review is intended for smaller changes; deep review is designed for more complex or security-sensitive changes and can use more resources. Inspect each finding, decide whether a correction is justified, and run the appropriate tests before merging. The review is a second check, not proof that the code is correct or secure. This feature description was checked against Cursor’s documentation on November 30, 2026.
Cursor’s run-mode documentation distinguishes automatic review controls from task modes. Configure approvals and sandbox settings based on the risk of shell commands, external tool calls and network access. Do not grant unrestricted access simply to reduce interruptions.
Review generated code for correctness, compatibility, security and maintainability. Confirm important changes with actual tests, and use the project’s normal review process before release. Keep secrets outside prompts and limit the credentials accessible to the agent.
For tasks that span multiple modules, assign clear ownership and avoid overlapping edits. If the agent produces an unexpected change, stop further implementation and inspect the diff. Restore files using an appropriate checkpoint or Git recovery procedure only after checking for pre-existing work.
Cursor Agent is most useful when the developer can express the goal clearly and verify the result. Start with a small task in an isolated development environment, then expand the scope once the workflow produces consistently acceptable changes.
Frequently asked questions
What is Cursor Agent used for?
Cursor Agent can investigate a codebase, edit files, run permitted commands and use test feedback to work toward a defined coding goal.
Is Cursor Agent free?
Cursor’s pricing documentation lists a free tier with limited Agent and Chat usage. Paid plans add different usage allowances and capabilities. Confirm the pricing in your account before subscribing.
What is the difference between Agent and Ask mode?
Agent mode can perform coding tasks using tools that modify files and run commands. Ask mode is intended for code exploration and questions without edits.
Can Cursor Agent work in the background?
Eligible accounts can use Cloud Agents for delegated coding tasks. These require a suitable repository environment and permissions; their output should be reviewed before merging.
Does Cursor Agent automatically write correct code?
No. It can misunderstand requirements, introduce regressions or produce incomplete tests. Review the actual changes and run appropriate independent checks.

