AI coding workflow
Coding With AI That Survives Review
A useful run with an AI coding tool starts with a small task and ends with a reviewable diff. In current Cursor, that workflow can include local Agent, Cloud Agents, Automations, Bugbot, Design Mode, Canvas and SDK agents, but the standard stays the same: scope, check, review and hand off.
On this page
- What is the working pattern for coding with AI?
- How should a team run coding with AI?
- 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 actually break?
- What changes when a whole team runs this loop?
- Is the full loop overkill for a small change?
What is the working pattern for coding with AI?
The working pattern for coding with AI is small enough to review and specific enough to repeat. Give the agent a named task and only the context it needs, then tie the result to a check you can rerun. The table below breaks that into moves.
- 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 |
A good AI coding workflow is specific enough to review and small enough to recover.
Each of those moves fails in its own particular way, and the order they come in is doing more work than it looks like it is. Skip the boundary and you get a diff nobody wants to read, because the agent has quietly rewritten files you never meant to open. Thin context fails more quietly: the code compiles, the tests pass, and it ignores every pattern the rest of the repo follows. Then there's the check, which to me is the real one, because it's the whole difference between a result you verified and a result you're taking someone's word for.
The step people skip is the plan. I think it's because it feels like overhead, thirty seconds of nothing visibly happening while you're trying to get work done. Actually, that's not quite the reason. It's that the cost of skipping it lands much later, so it never registers as the mistake it was. If the plan names files you didn't expect, you've learned something for free. If it names the right ones, you've got a reference to check the diff against when it arrives. And once there are four hundred lines on the screen, changing the approach means throwing that work away, which nobody is good at.
Interactive widget. Tab through its controls; the result updates in the panel below as you change them.
Pick the role, stack and task type before writing a prompt.
This is covered hands-on in Cursor First Hour — 4 short modules, free to read.
How should a team run coding with AI?
Running coding with AI as a team comes down to one habit: leave a trail the next reviewer can follow. The steps below keep the prompt and its proof attached to the change, so nobody has to reverse-engineer what the agent did.
- 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.
Task, context, constraints, done state and checks.
Open the diff, read changed files and rerun the check yourself.
Prompt, diff, test output and the review note that proved the result.
What should you keep after the run?
Keep whatever lets you rerun the work or hand it to someone else. A finished task is the merged code plus the short trail that explains 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.
What's new in Cursor recently?
Cursor ships often, so here is the current state of the surfaces this page touches. Each row links to the source where you can confirm the detail.
- Surface
- Compile 2026
- What to know
- Cursor's June 16 event highlighted Origin, larger from-scratch model training and Cursor Mobile alongside the broader June release wave.
- Surface
- Origin
- What to know
- Cursor's Origin page says code is moving faster than existing infrastructure was built to handle. The public page is waitlist-first, so migration and security details still need confirmation.
- 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 a larger model is training with SpaceX. Mobile-native details remain beta until Cursor publishes a product page.
- Surface
- Automations
- What to know
/automate, Slack emoji triggers, GitHub issue/comment/review/workflow triggers, 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,/babysitand 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 and finds 10% more bugs per review, and can run locally before push with
/review. Cursor hasn't published Bugbot's underlying model. Don't assert one; treat the figures as perishable.
- 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/custom stores, nested subagents and request IDs; Auto-review Run Mode routes tool calls through safer execution paths.
- Surface
- Enterprise and pricing
- What to know
- Organizations sit above teams, groups scope model/spend/agent permissions and Teams now has Standard/Premium seats with Auto + ComposerCursor's own fast coding model, tuned for the editor and priced well below frontier models; the recommended day-to-day model for executing a plan. Press Enter for the full definition. and third-party API pools.
| Surface | What to know |
|---|---|
| Compile 2026 | Cursor's June 16 event highlighted Origin, larger from-scratch model training and Cursor Mobile alongside the broader June release wave. |
| Origin | Cursor's Origin page says code is moving faster than existing infrastructure was built to handle. The public page is waitlist-first, so migration and security details still need confirmation. |
| 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 a larger model is training with SpaceX. Mobile-native details remain beta until Cursor publishes a product page. |
| Automations | /automate, Slack emoji triggers, GitHub issue/comment/review/workflow triggers, 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, /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 and finds 10% more bugs per review, and can run locally before push with /review. Cursor hasn't published Bugbot's underlying model. Don't assert one; treat the figures as perishable. |
| 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/custom stores, nested subagents and request IDs; Auto-review Run Mode routes tool calls through safer execution paths. |
| Enterprise and pricing | Organizations sit above teams, groups scope model/spend/agent permissions and Teams now has Standard/Premium seats with Auto + ComposerCursor's own fast coding model, tuned for the editor and priced well below frontier models; the recommended day-to-day model for executing a plan. Press Enter for the full definition. and third-party API pools. |
As of July 9, 2026. See Sources below for links.
Does this workflow generalize beyond writing code?
Yes, and the shape stays the same. The same loop that turns an issue into a reviewable diff turns a fuzzy knowledge-work problem into a working tool: Problem, then context-dump, iterate on the approach, test on a few examples, refine.
What changes is the division of labor, not the steps. You stay the domain expert 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're the one who can tell whether a result is actually 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?
Route by how you will verify the result, not by how big the task looks. If the output is something you can watch or read afterwards, send it to a cloud agent and judge the artifact it hands back. If you expect to redirect it halfway through, keep it local and in front of you.
The costs make that split concrete. A cloud run takes roughly 10-15 minutes minimum end to end and you can have about 3-5 going at once, each on its own branch. That shape is wrong for a two-minute edit and right for work you can hand off and come back to, which is also why the delegation question is really a question about your own attention rather than the agent's capability.
Automations sit one step further out. An automation is a cloud agent with a trigger, an instruction and a deliberately narrow set of tools, and probably the most common misstep is building one for a workflow nobody has run by hand yet. Run it manually a few times first. You want to know what the output looks like before a schedule starts producing it every morning, because a bad automation does not fail, it just quietly ships something nobody reads.
The SDK is for when the caller is your own code rather than a person.
Where do these workflows actually break?
In the context window far more often than in the model choice. Quality drops steeply as the window fills, noticeably by 70-80% and definitely before 90%, so the working ceiling is somewhere around 60-65% and plenty of practitioners move on nearer 50%.
What makes running to the limit worse than it sounds is compaction. Near the limit the agent compresses what came before, then behaves as though it never had the detail, while you keep paying for all those tokens. Both halves of that trade go against you.
The fix is not a bigger window. Before you get close, ask the agent to summarise what it has done and paste that summary into a fresh agent. The context the next one needs was never the conversation anyway. It is the codebase, the commits and the code the last agent left behind, and all of that is still sitting there whether the chat survives or not.
One more mechanical cost is worth knowing about. Switching models mid-session breaks the cache, so an unplanned swap costs you the cached context on top of the time. Decide up front where you reasonably can.
What changes when a whole team runs this loop?
The measurement problem arrives. A University of Chicago study of 1,000 organisations adopting Cursor reported a 39% increase in org-level output, with teams merging 39% more pull requests once Agent became the default mode. Merged PRs are the easiest thing on that list to count and the furthest from the thing anyone wanted.
Hold velocity and quality side by side or the number will lie to you. Velocity on its own rewards shipping code that gets rewritten next week; quality on its own rewards shipping nothing at all. The pair that reads honest is time-to-marketHow fast a feature actually reaches customers; the outcome metric the velocity and quality pillars ultimately serve. Press Enter for the full definition. against the customer-facing defect trend, and if you can only watch one, watch whether features reach customers faster while defects stay flat.
And the two metrics most dashboards lead with predict close to nothing. Lines of AI-written code is just more code to review and maintain. Active users counts the person who opens the agent weekly the same as the person who rebuilt their week around it.
Cursor's own instrumentation probably beats whatever you would assemble by hand. 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. categorises work as new feature, bug fix or refactor and can flag under-specified agent turns that would have gone better 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. 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. adds line-level agent co-authorship, which is what turns "does agent-written code churn faster" from a debate into a query you can run.
Is the full loop overkill for a small change?
Often, yes. 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. and a saved trail are priced for work that spans more than one file, and on a genuinely quick change that ceremony is overhead. People who use this daily skip it, and the guides that pretend otherwise are the reason the advice reads as bureaucracy.
Where is the line? The usual advice is anything non-trivial, which is vague, and I am not sure it sharpens much past "more than one file, or code you do not already know." One security engineer who started out skeptical of plan mode now defaults to it for anything net-new, because in plan the agent finds the relevant injection points up front rather than discovering them mid-edit. For quick changes he still skips it.
If you keep one habit from all of this on small work, make it a fresh agent per new topic. Continuing yesterday's chat drags every bit of yesterday into today's request, and starting over costs nothing.
Stack guides
A step-by-step workflow for using an AI IDE on a real production-style change.
Open guideHow to use AI coding tools in TypeScript repos with typecheck and review control.
Open guideHow to use AI coding tools in Python services, scripts and data projects.
Open guideReact AI coding workflow with component boundaries, state checks, visual review and accessibility before you merge UI changes.
Open guideNext.js AI coding workflow that respects server components, routes, metadata, caching and build checks before merge.
Open guideFrequently asked questions
Who is this guide for?
Professional developers and technical teams that want AI help without losing review control.
What should I do next?
Start with one real repo task, capture the prompt and review the result before scaling the workflow.
Sources & last verified
- Cursor agent best practices
- Cursor Learn: working with agents
- Cursor Learn: context
- Cursor docs: prompting agents
Cursor ships frequently. Facts verified against primary sources on July 9, 2026.