AI coding workflow
Coding With AI That Survives Review
Code written with AI survives review when each run starts from one small task and ends with a diff a person can check. In Cursor, that run can use local Agent, Cloud Agents, Automations, Bugbot, Design Mode, Canvas or SDK agents. The standard is the same on every surface: scope, check, review and hand off.

On this page
- What does a reviewable agent task look like?
- How should a team run each agent task?
- What should you keep after the run?
- What's new in Cursor recently?
- Does this workflow generalize beyond writing code?
- Which Cursor surface should a given task run on?
- Where do these workflows break down?
- What changes when a whole team runs this loop?
- Is the full loop overkill for a small change?
What does a reviewable agent task look like?
Give the agent one named task, only the context it needs and a check you can rerun. A task shaped this way produces a diff small enough to review and a result you can repeat.
- Move
- Start with a bounded task
- Use this when
- You have a named owner, target files and a clear done state
- Proof to save
- Issue, files, checks and owner are named
- Move
- Give the agent context
- Use this when
- The repo has patterns the agent must follow
- Proof to save
- Prompt cites files, errors and constraints
- Move
- Review the diff
- Use this when
- The task changes production code
- Proof to save
- Changed files, test output and risks are visible
| Move | Use this when | Proof to save |
|---|---|---|
| Start with a bounded task | You have a named owner, target files and a clear done state | Issue, files, checks and owner are named |
| Give the agent context | The repo has patterns the agent must follow | Prompt cites files, errors and constraints |
| Review the diff | The task changes production code | Changed files, test output and risks are visible |
Each move leaves proof that a reviewer can check later.
Each move fails in its own way. Without a boundary, the agent edits files you never meant to open, and the diff becomes hard to read. Thin context fails more quietly: the code compiles and the tests pass, but the change ignores patterns the rest of the repo follows. Without a check you can rerun, you are taking the agent's word that the work is done.
Asking for a plan before the agent writes code is the easiest step to skip. It means a short wait while nothing visible happens, and the price of skipping it shows up later, in review.
If the plan names files you didn't expect, you learn that before any code exists. If it names the right files, you have a list to check the diff against. Once four hundred lines of diff are on screen, changing the approach means throwing that work away.
Interactive widget. Tab through its controls; the result updates in the panel below as you change them.
Pick your role, stack and task type before you write a prompt.
This is covered hands-on in Cursor First Hour — 4 short Units, free to read.
How should a team run each agent task?
The habit that matters most for a team is leaving a trail the next reviewer can follow. The steps below keep the prompt and its proof attached to the change.
- 1Pick one real backlog item with a clear owner and expected result.
- 2Add only the context the agent needs: files, failing output, constraints and done state.
- 3Ask for a plan before code when the task touches more than one file.
- 4Run checks that match the risk: unit test, typecheck, visual pass or review checklist.
- 5Capture the prompt, diff, result and reviewer note so the workflow can be repeated.
Match the effort to the change. A one-file fix needs a clear done state and a typecheck, and a plan adds little. A change across several files is where a plan pays for itself, and where the check should include tests and a reviewer who knows that code.
What should you keep after the run?
Keep whatever lets someone rerun the work or pick it up later. A finished task is the merged code plus a short trail that shows how it got there.
- The prompt or plan that shaped the work.
- The files changed and the reason each file changed.
- The command, screenshot or review note that proved the result.
- The rule, checklist or template you would reuse next time.
The last item pays off over time. A rule or template saved from one good run means the next run starts from what already worked, not from a blank prompt.
What's new in Cursor recently?
Cursor ships often, so advice about it can go out of date. The table summarizes Cursor's recent releases, so you can check this page against the current product. For each release's date and sources, see What's new in Cursor 2026.
- Surface
- Compile 2026
- What to know
- Cursor's June conference (June 16, per press coverage) centered on Origin, larger from-scratch model training and Cursor Mobile.
- Surface
- Origin
- What to know
- Early beta since August 17, 2026, on most paid plans: repos, pull requests with Code Tours, GitHub sync and a CLI. Standalone pricing and self-hosting are still unpublished.
- Surface
- Model and mobile
- What to know
- Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. is available now. Cursor says it is training a larger model with SpaceXAI. Cursor Mobile now has its own product page.
- Surface
- Automations
- What to know
/automate, Slack emoji triggers, GitHub triggers for issue comments, reviews and workflow runs, computer use, PR defaults and memory cleanup.
- Surface
- 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.
- What to know
- Guided cloud environment setup, reusable snapshots,
.cursor/environment.json,/in-cloud,/autopilot(formerly/babysit) and local/cloud handoff.
- Surface
- Review
- What to know
- BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. averages about 90 seconds per review and finds 10% more bugs per review.
/reviewruns it locally before you push. Cursor's June changelog says Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. now powers Bugbot, and these figures may change.
- Surface
- Design and Canvas
- What to know
- Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition. supports multi-select and voice queueing. Canvases support Design Mode, context reports, Debug with Agent, full-screen sharing and prompt buttons.
- Surface
- SDK and run modes
- What to know
- SDK agents can use custom tools, auto-review, JSONL or custom stores, nested subagents and request IDs. Auto-review Run Mode runs known-safe calls, sandboxes shell commands where it can and sends the rest to a classifier.
- Surface
- Enterprise and pricing
- What to know
- Organizations sit above teams, and groups scope model access, spend and agent permissions. Teams launched with Standard and Premium seats and two usage pools, Cursor ModelsOn legacy Cursor plans, the monthly usage pool for Cursor's own models (Grok 4.7, Grok 4.6, Grok 4.5 and Composer 2.5), kept separate from the third-party Other Models pool. The X Subscription replaces it with one weekly pool. Press Enter for the full definition. and Other ModelsOn legacy Cursor plans, the monthly pool for supported third-party models from providers such as Anthropic, Google and OpenAI, separate from Cursor Models. On The X Subscription third-party models are billed from prepaid credit instead. Press Enter for the full definition.. Those seats are now legacy, and current Teams seats are Premium, Super and Ultra on The X SubscriptionThe subscription Cursor is sold through: one plan for Grok, Cursor and X, with Free, Plus, Premium, Super and Ultra tiers, per-seat Teams, a weekly included pool for Cursor models shared with Grok, and third-party models billed at API list price from prepaid credit. Press Enter for the full definition..
| Surface | What to know |
|---|---|
| Compile 2026 | Cursor's June conference (June 16, per press coverage) centered on Origin, larger from-scratch model training and Cursor Mobile. |
| Origin | Early beta since August 17, 2026, on most paid plans: repos, pull requests with Code Tours, GitHub sync and a CLI. Standalone pricing and self-hosting are still unpublished. |
| Model and mobile | Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. is available now. Cursor says it is training a larger model with SpaceXAI. Cursor Mobile now has its own product page. |
| Automations | /automate, Slack emoji triggers, GitHub triggers for issue comments, reviews and workflow runs, computer use, PR defaults and memory cleanup. |
| 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. | Guided cloud environment setup, reusable snapshots, .cursor/environment.json, /in-cloud, /autopilot (formerly /babysit) and local/cloud handoff. |
| Review | BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. averages about 90 seconds per review and finds 10% more bugs per review. /review runs it locally before you push. Cursor's June changelog says Composer 2.5The current Composer release, better at long-running tasks and at judging when a job needs a light touch versus deep work. Press Enter for the full definition. now powers Bugbot, and these figures may change. |
| Design and Canvas | Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition. supports multi-select and voice queueing. Canvases support Design Mode, context reports, Debug with Agent, full-screen sharing and prompt buttons. |
| SDK and run modes | SDK agents can use custom tools, auto-review, JSONL or custom stores, nested subagents and request IDs. Auto-review Run Mode runs known-safe calls, sandboxes shell commands where it can and sends the rest to a classifier. |
| Enterprise and pricing | Organizations sit above teams, and groups scope model access, spend and agent permissions. Teams launched with Standard and Premium seats and two usage pools, Cursor ModelsOn legacy Cursor plans, the monthly usage pool for Cursor's own models (Grok 4.7, Grok 4.6, Grok 4.5 and Composer 2.5), kept separate from the third-party Other Models pool. The X Subscription replaces it with one weekly pool. Press Enter for the full definition. and Other ModelsOn legacy Cursor plans, the monthly pool for supported third-party models from providers such as Anthropic, Google and OpenAI, separate from Cursor Models. On The X Subscription third-party models are billed from prepaid credit instead. Press Enter for the full definition.. Those seats are now legacy, and current Teams seats are Premium, Super and Ultra on The X SubscriptionThe subscription Cursor is sold through: one plan for Grok, Cursor and X, with Free, Plus, Premium, Super and Ultra tiers, per-seat Teams, a weekly included pool for Cursor models shared with Grok, and third-party models billed at API list price from prepaid credit. Press Enter for the full definition.. |
A summary only. The release tracker linked above gives each release's date and sources.
Does this workflow generalize beyond writing code?
Yes. The loop that turns an issue into a reviewable diff can also turn a fuzzy knowledge-work problem into a working tool. The steps are the same: name the problem, dump in the context, iterate on the approach, test on a few examples, then refine.
What changes is who does which part. You remain the domain expert, the person who knows what good output looks like and where the edge cases hide. The agent does the repetitive execution. You stay in the loop because you are the one who can tell whether a result is right.
Interactive diagram. Step through it with the Next and Previous controls below, or Tab to a region to read its detail.
The value is in the sequencing. Check each small piece against your judgment first; only stitch them into a durable workflow once they hold up.
you go from I know how this should work to I have a tool that does it potentially in an afternoon.
Which Cursor surface should a given task run on?
Pick the surface by how you will check the result. If you can judge the work from what the agent hands back, send it to a cloud agent. If you expect to redirect the agent partway through, keep it local, where you can watch the run and stop it. Cloud agents need Premium or higher, a Teams or Enterprise plan, or a legacy paid plan, so on Free or Plus every run is local.
Timing makes the split concrete. A presenter in one Cursor webinar put a cloud run at 10 to 15 minutes end to end at minimum, each run on its own branch, and Cursor's docs set no limit on how many run in parallel. That is too slow for a two-minute edit and a good fit for work you can hand off and come back to. So the deciding question is whether the task can run for those 15 minutes without your attention.
Automations sit one step further out. An automation is a cloud agent with a trigger, an instruction and a deliberately narrow set of tools. Don't build one for a workflow nobody has run by hand. Run it manually a few times first, so you know what good output looks like before a schedule starts producing it every morning. A bad automation fails quietly: it keeps producing output that nobody reads.
The SDK sits furthest out. Use it when the caller is your own code rather than a person. The SDK agents guide covers which key a run should carry and whose budget it spends.
Where do these workflows break down?
They break in the context window far more often than in the model choice. Presenters in Cursor's webinars describe output quality dropping steeply as the window fills: noticeably by 70 to 80% full, and definitely before 90%. Their advice settles on a working ceiling of about 60 to 65%, and several of them start a new chat at about 50%.
Compaction is why running to the limit is a bad trade. Near the limit, the agent compresses what came before and then behaves as if it never had the detail. You still pay for all of those tokens.
A bigger window doesn't fix this. Before you get close, ask the agent for a summary of what it has done, and paste that summary into a fresh agent. The new agent doesn't need the old conversation. It needs the codebase, the commits and the code the last agent wrote, and all of that stays in the repo when the chat ends.
Switching models mid-session has a cost of its own. It breaks the cache, so an unplanned swap loses the cached context as well as time. Where you can, choose the model before you start.
What changes when a whole team runs this loop?
Measurement becomes the hard part. A University of Chicago study of tens of thousands of Cursor users found that companies merged 39% more pull requests after Agent became Cursor's default mode. Merged pull requests are easy to count, and on their own they show nothing about whether the changes held up.
Read velocity next to quality. On its own, a velocity number rewards code that gets rewritten the following week. The pair to watch is time to market against the trend in customer-facing defects. If you can watch only one thing, check whether features reach customers faster while defects stay flat.
Two common dashboard metrics predict little on their own. A high count of AI-written lines mostly means more code to review and maintain. An active-user count treats someone who opens the agent once a week the same as someone who rebuilt their week around it.
Start with Cursor's own instrumentation before you build a dashboard by hand. On Enterprise, Conversation InsightsA Cursor analytics view that passively categorises what agents are doing (new features, bug fixes, refactors) so leaders can see where engineering time goes. Press Enter for the full definition. sorts agent sessions into categories such as new features, bug fixing and refactoring, and it scores how specific each prompt was. Cursor BlameAn augmented git blame that records line-level human and agent co-authorship, so you can trace which code was written by AI versus a person. Press Enter for the full definition., also on Enterprise, marks which lines an agent wrote, so you can check whether agent-written code churns faster than the rest.
Is the full loop overkill for a small change?
Often, yes. On a quick change, plan mode and a saved trail are overhead, so skip them.
The steps above already ask for a plan when a change spans more than one file. Add a second trigger: code you don't already know. Together they draw a sharper line than the usual "anything non-trivial". One security engineer started out skeptical of plan mode and now uses it by default for anything net-new, because in plan mode the agent finds the relevant injection points up front instead of discovering them mid-edit. For quick changes, he still skips it.
On small work, keep one habit: start a fresh agent for each new topic. Continuing yesterday's chat carries all of yesterday's context into today's request, while a fresh agent starts with only the context you give it.
Stack guides
Use an AI IDE on a real feature change: one issue, named files, a plan, a narrow patch, checks and a diff review before you open the pull request.
Open guideA TypeScript AI coding workflow: start from the compiler's output, keep the agent inside one package and read widened types before the logic.
Open guideA Python AI coding workflow: name the interpreter first, hand the agent the real traceback and check imports, edge cases and typing in review.
Open guideA React AI coding workflow: name the states you need proof of, point at layout in Design Mode and run the accessibility audit before visual review.
Open guideA Next.js AI coding workflow: attach the docs for your version first, check client boundaries in review and verify each route by loading it.
Open guideFrequently asked questions
Who is this guide for?
Professional developers and technical teams who want help from AI without losing control of code review.
What should I do next?
Pick one real task from your backlog and run it through the steps on this page. Keep the prompt, the diff and the check that proved the result.
When should an AI agent write a plan before it writes code?
Ask for a plan when the task touches more than one file. The plan names the files the agent means to change, so a wrong approach shows up before any code exists. For a one-file fix, a clear done state and a typecheck are enough, and a plan adds little.
What should I keep after an AI coding run?
Keep the prompt or plan that shaped the work, the files that changed and why, and the command, screenshot or review note that proved the result. Save any rule or template worth reusing, so the next run starts from what already worked.
Does the same review loop work for tasks other than code?
Yes. The same steps turn a fuzzy knowledge-work problem into a working tool: name the problem, hand over the context, iterate on the approach, test on a few examples and refine. You stay the domain expert who judges whether the output is right.
Sources & last verified
- Cursor agent best practices
- Cursor Learn: working with agents
- Cursor Learn: context
- Cursor docs: prompting agents
- Cursor docs: Cloud Agents
- Cursor blog: The productivity impact of coding agents
- Cursor docs: Usage analytics
- Cursor docs: Cursor Blame
Cursor ships frequently. Facts verified against primary sources on October 28, 2026.