AI coding workflow
AI Coding Agents
An AI coding agent can inspect a repo, plan a change, call tools, edit files, run commands and return a handoff. In Cursor, agents now span local work, /in-cloud subagents, /loop, Automations, Bugbot review and SDK runs. The useful question is whether the output is scoped, checked and reviewable.
On this page
What is the working pattern for coding agents?
The working pattern for coding agents 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.
Open each stage to see what a reviewer should be able to inspect.
This is covered hands-on in Agent Mode Foundations — 6 short modules, free to read.
How should a team run coding agents?
Running coding agents 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.
Which agent surface should a team start on?
Start local, in the editor, on work someone was going to do that week anyway. The order that holds up after that is cloud runs, then /loop, then /automate, then the SDK. Read it as a supervision ladder rather than a difficulty curve, because each rung has fewer people watching.
So the reason to keep that order is what happens between the rungs. A local run happens in front of you, and you stop it when it goes somewhere strange. /in-cloud hands the next task to a subagent in its own VM and branch, so what you inspect is the result instead of the run. /loop repeats a prompt locally until you stop it. /automate fires on a schedule, a Slack message, a GitHub event or a webhook, which means it can run at three in the morning while nobody is looking at anything.
Automations are, I suspect, the most tempting place to begin, because a scheduled agent reads like free work. Teams that start there usually find out their review habit was thinner than they thought, and they find out against a queue of pull requests that arrived overnight.
A Monday morning with a queue of overnight pull requests on it. Not the moment to be inventing a review process.
Worth being exact about the risk, though, because it is narrower than it sounds. An automation does not merge. It produces a pull request a human reviews, and whoever clicks merge owns the change. What actually changes is who can start one: wire a code-touching automation to a Slack channel and everybody in that channel can trigger an agent, which is why triggers take allow-list filters on people, channels, keywords or a regex. Scope the trigger first and the rest of the automation guide is detail.
The SDK sits last for a reason unrelated to how hard it is to use. SDK runs draw on the same request pools as a developer prompting in the editor, and the spend shows up in the team usage dashboard under the SDK tag. A script that loops over a hundred files spends real money against somebody's budget, and which budget depends on whether you handed it a user key or a service-account key.
How many agents can one team actually run at once?
As many as you can review properly, which is a smaller number than the interface implies. The agent count is a property of the tool. The review count is a property of your team, and only one of the two is displayed anywhere.
Overlapping files are the mechanical half of the problem, and isolation solves that half cleanly. Two agents editing the same file leave you with conflicting edits, so give each one its own git worktree, an isolated checkout of the same repo. The Agents WindowCursor's surface listing your agent runs; open a run to read its diff and search transcripts from the command palette. Press Enter for the full definition. supports worktrees directly, and /worktree sets one up from the CLI.
The awkward part is that isolation tidies the collisions and leaves the constraint that matters untouched. Four isolated agents still produce four diffs, and those land on one person who has to hold four different sets of intentions in their head while reading them.
That argues for capping the number of parallel agents. Actually no, the count is the wrong control. Two agents on a config change you understand cost less attention than one agent loose in a service nobody has read this year. Cap the unfamiliar surface instead, meaning how many files you are willing to read carefully today, and let the agent count fall out of that.
/review runs BugbotCursor's automated PR reviewer that posts inline findings and can push fix commits from isolated VMs. Press Enter for the full definition. or Security Review over your changes before you push, and what comes back is review evidence rather than a verdict. Humans still own merge. That distinction is, I think, the first thing to go as the count climbs, because a passing bot check is exactly what a tired reviewer will accept in place of reading the diff.
On a team of three the ceiling is one person's afternoon.
On a team of thirty it is whether anyone owns the queue. Larger teams usually have the review capacity and no rule about who spends it, so agent diffs pool up against whoever is most conscientious about picking them up. Naming an owner per queue is duller than tuning prompts and it does more.
What should a small team skip that a large one cannot?
Nearly all of the control plane, and it should. Under roughly ten people, one shared rules file, one convention about who launches cloud work and a habit of opening diffs will carry a team further than any admin setting.
Context and review. Those are the two that bite at that size, and neither of them has a dashboard, which is part of why they get skipped.
Past that size the controls exist because informal agreement stops holding. Organizations sit above teams, groups scope model, spend and agent permissions, and the monthly team-wide spending limit is set in the dashboard. Enterprise accounts add pooled usage, where member limits apply to total usage rather than only to on-demand spend.
The line that catches teams out is quieter than any of those, and probably the most expensive small print in the setup. SDK and CLI agents authenticate with an API key, draw on the same pooled usage as everyone else and do not consume a paid seat, so anyone on the account can generate a key and spend against the pool. Set the limit before you point automation at it.
The sequencing honestly matters more here than which controls you pick. A group boundary drawn before anyone has run agents in anger encodes a guess about how the work will flow, and that guess is usually wrong in both directions at once, too tight where people improvise and too loose where the money leaks.
So write the policy after the pilot. Just not long after.
Agent guides
A plain definition of AI coding agents and how they differ from chat assistants.
Open guideA workflow guide for using coding agents across context, tools, tests and review.
Open guideChoose between Cursor's local and cloud agents by review tightness, context needs, cost, risk and how clean the handoff must be, with a decision table.
Open guideBuild a pull request review agent with the diff, repo rules, test status and review criteria so humans move faster.
Open guideA build guide for an agent that reads CI failures and proposes a safe patch.
Open guideHow to design an agent that updates docs when code or product behavior changes.
Open guideHow to build an agent that maps bug reports to scoped engineering tasks.
Open guideCursor Agent docs (Learn hub)
How side chats work in Cursor: three ways to open one, what context the child conversation inherits, current limits and the workflow patterns they enable.
Open guideHow to share a Cursor conversation as a read-only link, team vs public visibility, what the secret redaction does and doesn't catch, and the plan gating.
Open guideAgentic coding means directing an agent toward a goal instead of typing every line. How the loop works in Cursor, and where Plan mode and Cloud Agents fit.
Open guideAI pair programming puts you and an agent on the same task. How the loop runs in Cursor, from Cmd+I to the pull request, and what you still own.
Open guideGenerated commit messages, Resolve in Chat for merge conflicts, the Made with Cursor trailer and Cursor Blame. What Cursor adds on top of Source Control.
Open guideAdd an MCP server to Cursor so the agent can use external tools and context - config, stdio vs remote and how to fix the common 'no tools found' problem.
Open guideThe prompting habits that make Cursor's agent reliable: state the goal and constraints, point at the right files, ask for a plan and define how to verify.
Open guideHow Cursor Agent combines instructions, tools and models: codebase search, terminal, browser, edits and when to open it with Cmd+I.
Open guideWhen to use the Agents Window vs the classic editor: parallel cloud agents, diffs, worktrees, /in-cloud subagents and enterprise rollout controls.
Open guideUse Agent Debug Mode when guesses fail: hypothesize, instrument, reproduce, analyze logs, fix and remove instrumentation.
Open guideSelect elements in a running app, prompt against live UI, multi-select related components and let Agent edit the underlying code.
Open guideRun Agent Review automatically after commits, on demand with /agent-review, or on full local diffs vs main; Quick vs Deep depth and .cursor/BUGBOT.md rules.
Open guidePlan Mode makes Cursor research your codebase and write a reviewable plan before it edits. Press Shift+Tab to switch, edit the plan, then build.
Open guideCursor's Browser tool lets the agent navigate, click, type, screenshot, and read console and network logs to test and debug your app in a real browser.
Open guideHow Cursor's agent runs shell commands: Run Mode decides when commands run or ask, the sandbox restricts file and network access.
Open guideCursor canvases render an agent's dashboards, analyses and reports as interactive artifacts you can reopen, edit, share and rerun with fresh data.
Open guideConfigure a cloud agent environment: repos, dependencies, secrets and network so the agent can run and test code like a developer.
Open guideWhat a Cursor cloud agent can do: an isolated desktop VM, screenshot and video artifacts on the PR, MCP tools, and automatic CI fixes.
Open guideCursor Automations run cloud agents on a schedule or in response to GitHub, GitLab, Slack, webhook, Linear, Sentry and PagerDuty events.
Open guideCursor's recommendations for reliable cloud agent runs: configure the environment, grant access, use skills and AGENTS.md, and give the agent good tools.
Open guidePick where Cloud Agents run: Cursor-managed VMs, My Machines, or a Self-Hosted Pool. The agent loop always runs in Cursor's cloud.
Open guideHow Cursor Cloud Agents protect secrets, sign commits, retain data, and control outbound network access with three egress modes and allowlists.
Open guideEvery Cloud Agent dashboard setting explained: environments, secrets your agents can actually read, network access modes, and the team toggles admins miss.
Open guideEvery field in .cursor/environment.json, verified against Cursor's published schema: install, start, terminals, ports, snapshot, build and more.
Open guideOne cloud agent environment can span several repos. Set up a repo group, wire environment-scoped secrets and run tasks that open PRs in every repo.
Open guideCursor Security Agents scan code for vulnerabilities: a Security Reviewer on pull requests and a Vulnerability Scanner on a schedule, both on Cloud Agents.
Open guideCursor Approval Agents approve pull requests when your criteria are met or assign reviewers when they are not, using policy files, risk scores, and Bugbot.
Open guideCursor's Microsoft Teams integration lets you start and manage Cloud Agents by mentioning @Cursor in a chat or channel, with repo, branch, and model options.
Open guideCursor Agent Skills let you package domain knowledge and workflows into reusable /commands the agent can invoke automatically or on demand.
Open guideHow the Cursor SDK runs the agent from TypeScript or Python, what local and cloud runtimes actually mean, how runs are billed, and what shipped recently.
Open guideFrequently asked questions
Who is this guide for?
Developers, AI engineers and DevEx teams building or adopting coding agents.
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.