Agents
What Is Agentic Coding? How the Loop Works in Cursor
Agentic coding is building software by directing AI agents instead of writing every line yourself. You give an agent a goal; it plans the work, edits code, runs commands and verifies the result while you guide and review. In Cursor that means Agent mode for the task, Plan mode when you want the approach first.

On this page
What is agentic coding?
Cursor's own definition is short: building software by directing AI agents instead of writing every line yourself. You give an agent a goal, and it plans the work, edits code, runs commands, and verifies the result while you guide and review.
The word that carries the weight there is "verifies". An autocomplete suggests and stops. An agent runs the thing it just wrote, reads what came back, and keeps going. That is the difference the definition points at, and it moves your reviewing onto a finished diff instead of onto each suggestion as it appears.
The definition also sets a precondition that is easy to miss. For the agent to verify anything, something in the repo has to be verifiable: a command that passes or fails, a page that loads or does not. Where nothing runs from a clean checkout the loop degrades into generate-and-hope, and you are back to reading every line by hand. Getting the broken test command working again is unglamorous and probably where the time is best spent.
Your job shifts from producing lines to setting the goal and judging the result. The agent does not remove the review step; it moves it to the end and makes it bigger.
This is covered hands-on in Agent Mode Foundations — 6 short Units, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How does agentic coding work?
The loop starts with a prompt that describes the goal and any constraints. From there the agent uses tools to search code, edit files and run the terminal, and it reads each result before deciding its next step. That read-then-decide step is what makes it a loop rather than a single generation.
Cursor is explicit about the input that most changes the output: grounding the prompt in real files and patterns produces better results than describing the change in the abstract. Point at the code you mean. If you want to review the approach before any code is written, run it through Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition. first.
- Stage
- Prompt
- What the agent does
- Reads the goal and constraints you wrote
- Where you come in
- Name the files and patterns, not just the outcome
- Stage
- Tool use
- What the agent does
- Searches code, edits files, runs the terminal
- Where you come in
- Set run modes and approvals you are comfortable with
- Stage
- Read result
- What the agent does
- Reads each tool result before its next step
- Where you come in
- Watch for a loop that keeps retrying the same thing
- Stage
- Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition.
- What the agent does
- Produces the approach before writing code
- Where you come in
- Review and correct the plan while it is still cheap
| Stage | What the agent does | Where you come in |
|---|---|---|
| Prompt | Reads the goal and constraints you wrote | Name the files and patterns, not just the outcome |
| Tool use | Searches code, edits files, runs the terminal | Set run modes and approvals you are comfortable with |
| Read result | Reads each tool result before its next step | Watch for a loop that keeps retrying the same thing |
| Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition. | Produces the approach before writing code | Review and correct the plan while it is still cheap |
The loop as described at cursor.com/help/ai-features/agentic-coding.
The retry row describes the failure people actually hit. An agent that has tried the same fix four times is reading its own four failures as context, so the fifth attempt tends to be worse than the first. Kill the thread and open a new one carrying only what you learned. Letting it run on costs tokens, and it also leaves you a diff shaped by four dead ends, which is the part that takes longest to unpick.
Approvals get half a cell in that table and carry most of the risk in the loop. The setting behind them is Run Mode, which decides whether a shell command runs on its own, stops to ask you, or drops into the sandbox. You are trading interruptions against blast radiusHow much breaks if a change goes wrong; the scope of potential damage. Press Enter for the full definition. and no setting avoids both. I would start strict on any repo with deploy scripts in it, then loosen once you have watched which commands it reaches for.
How did coding agents get here?
Cursor frames the arrival in three steps. Read them as one scope widening rather than three separate products: each step holds more context and runs longer than the one before it.
- 1Tab autocomplete handled repetitive edits one suggestion at a time.
- 2Synchronous agents could hold more context and run longer, so developers directed them through prompt-and-response loops.
- 3Autonomous agents now take on larger tasks over hours with less direction.
Each step widened the scope of a single instruction, and the scope of a single mistake with it. Step three is the one to read slowly. Less direction going in means fewer moments where you could have said no, not like that.
None of the three replaced the one before it, which the numbering rather hides. Tab is still the quickest way to make an edit you can already picture in full, and a prompt-and-response loop still beats an autonomous run on anything you want to steer every few minutes. All three run in the same working day, and which one fits is a per-task call.
The demand curve is public: Cursor reports agent usage has grown more than 15x in the past year, and tracks the shift across millions of developer sessions in its Developer Habits Report. Cursor's own read of what comes next is agents that run for hours and coordinate with each other, up to codebases that keep improving with little intervention.
That 15x figure measures demand rather than outcome. Usage growing that fast tells you developers keep reaching for agents; on its own it says nothing about whether the code held up or whether review kept pace. Anyone making an internal case with the number should expect the second question, and I would rather walk in with a before-and-after from our own repo.
The three steps above are shipped behaviour. Self-improving codebases are Cursor describing where it thinks this goes. Treat them differently when you plan a rollout.
What is agentic engineering?
Cursor uses a second term for the organisational half of this: agentic engineering, which it describes as the industry working out what software engineering looks like when most code is written by coding agents and systems need to be redesigned to take advantage of AI.
It is framed as an evolution of existing practice rather than a replacement, aimed at cutting drudge work and moving engineer time toward higher-value tasks. The example Cursor gives is on-call: speeding up debugging and incident triage so engineers find the root cause faster.
The size of the org changes what that sentence is asking for. On a small team it is mostly the on-call example: one person triages faster, and the practice spreads because other people watch it work. The redesign half only bites once you have systems built around a human writing rate, and those are what bind first: a review queue sized for what people could read, a staging environment one team books at a time. No tool rollout fixes those. That work needs an owner and a quarter.
How do I start agentic coding in Cursor?
The starting move is smaller than the term suggests. Open 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. and describe a task in plain language; the agent overview is the reference for what it can reach. Two escalations exist from there, and task size is what decides between them.
- A normal task
- 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.. Describe it in plain language and review the diff.
- Larger work
- Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition. first, so you review the approach before the agent builds.
- Long-running work
- 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., so it keeps going while you do other things.
Cursor's recommended entry points for each size of task.
Task size is the rough version of that rule, and it is the one I used a paragraph ago. What you are choosing between is how long you can go without a chance to steer. A small change with a vague spec wants Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition. more than a big mechanical one does.
Each escalation costs something the table leaves out. Plan modeA mode that makes no edits: it researches the codebase and produces an editable plan you review before any code changes. Press Enter for the full definition. on a two-line change means reviewing a plan for a change you could have read faster than the plan itself. 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. on work you have not scoped yet means the run finishes before you learn it went sideways, with no minute-three correction available.
Handing work to a Cloud Agent also has a setup bill, and it comes due before the first run rather than during it. The agent works from a VM, so anything your repo currently borrows from your laptop has to be handed over. That means the secrets it will read, the URLs it may reach if egress controls are on, a checkout that runs without services the VM cannot see, and enough written context in skills or an agents.md for it to test its own changes. Cursor's own framing is blunt about the checkout. If a human cannot test the repo locally, an agent will struggle with it too. The best-practices page lists the checks.
Frequently asked questions
What is agentic coding?
Building software by directing AI agents instead of writing every line yourself. You give an agent a goal, and it plans the work, edits code, runs commands and verifies the result while you guide and review.
How is it different from autocomplete?
Autocomplete suggests the next edit and stops. An agent uses tools to search code, edit files and run the terminal, and reads each result before choosing its next step. Cursor describes autocomplete as the first of three steps, followed by synchronous agents and then autonomous ones.
How do I get better results from an agent?
Ground the prompt in real files and patterns rather than describing the change in the abstract, and use Plan mode on anything larger so you can review the approach before code is written.
How fast is adoption growing?
Cursor reports that agent usage in Cursor has grown more than 15x in the past year, and tracks the shift across millions of developer sessions in its Developer Habits Report.
What does a Cloud Agent need before I hand it a long task?
Cursor's best-practices list is the checklist: the environment configured through Cloud agent setup, access to the secrets it will read, whitelisted URLs if egress controls are on, and a repo that can be tested without external services a VM cannot reach. Skills and an agents.md give it the context to test its own changes.
What do I do when the agent keeps retrying the same fix?
Stop the thread and start a new one carrying only what you learned. An agent that has failed the same fix several times is reading its own failures as context, so continuing tends to produce a worse result than restarting with a tighter scope.
Sources & last verified
Cursor ships frequently. Facts verified against primary sources on July 27, 2026.