Building a Software Factory with AI Agents at Scale

cursor · Tech · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: AI-assisted software development

Cursor needed a practical operating model for scaling from individual pair-programming agents toward software-factory workflows where fleets of agents can build, test, review, and learn across codebases.

Constraints:

Architecture

Cursor's software-factory model combines codebase primitives, dynamically emerging rules, tests, skills, MCP-accessible tools, isolated VM-based cloud agents, automated review, feature flags, code-owner automation, daily review, and continual learning. The factory moves humans from synchronous coding toward asynchronous management of scoped work, agent fleets, artifacts, guardrails, and accumulated context.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  human-manager[Human Manager] --> agent-fleet[Agent Fleet]
  human-manager --> rules-and-guardrails[Rules and Guardrails]
  agent-fleet --> codebase-primitives[Codebase Primitives]
  agent-fleet --> rules-and-guardrails
  agent-fleet --> skills-and-mcp-tools[Skills and MCP Tools]
  agent-fleet --> isolated-cloud-vms[Isolated Cloud VMs]
  isolated-cloud-vms --> verification-harness[Verification Harness]
  agent-fleet --> verification-harness
  agent-fleet --> review-automation[Review Automation]
  review-automation --> artifact-review[Artifact Review]
  verification-harness --> artifact-review
  artifact-review --> human-manager
  review-automation --> learning-memory[Learning Memory]
  learning-memory --> agent-fleet
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Human Manager Provides intent, scopes parallel work, keeps critical decisions in human hands, and reviews outcomes at higher abstraction. Agent Fleet, Artifact Review, Rules and Guardrails
Agent Fleet Multiple agents implementing, testing, reviewing, and learning across scoped units of work. Human Manager, Codebase Primitives, Rules and Guardrails, Skills and MCP Tools, Isolated Cloud VMs, Verification Harness, Review Automation
Codebase Primitives Modular structure, co-located files, startup scripts, test patterns, and existing references that make work discoverable. Agent Fleet
Rules and Guardrails Dynamic SOP-like constraints, hooks, checks, and sensitive-code restrictions. Agent Fleet, Human Manager
Skills and MCP Tools External capabilities for feature flags, Linear/Notion/Datadog/Slack context, image access, and other factory enablers. Agent Fleet
Isolated Cloud VMs Per-agent reproducible workspaces with their own databases, tooling, and app environment. Agent Fleet, Verification Harness
Verification Harness Unit, integration, UI, Playwright, browser, and video-based checks that agents can run against their own changes. Agent Fleet, Isolated Cloud VMs, Artifact Review
Review Automation Automated PR review, Bugbot-style checks, and agentic code-owner risk review. Agent Fleet, Artifact Review, Learning Memory
Artifact Review Outcome-level summaries, videos, comments, and artifacts humans inspect instead of raw code first. Human Manager, Review Automation, Verification Harness
Learning Memory Stored PR comments, transcript-derived rules, and recurring-task automations that improve future agents. Review Automation, Agent Fleet

Data flow

A human provides intent and scope, agents use codebase primitives, rules, skills, and MCP/tool context to implement in isolated environments, tests or UI automation verify work, review automations inspect changes, feature flags make rollout reversible, and feedback from PR comments or transcripts becomes rules/memory for later runs.

4 supporting quotes
“if you do, you can point the agent to like existing references and just asking this to reproduce uh over time.”transcript, stated
“the agent created this uh end to end tests um using a playright so it can just spawn browsers um go to root etc. click around”transcript, stated
“each agent their separate VM and you can have them like create this very reproducible environment in the cloud”transcript, stated
“we can then extract like memories and learnings from what we said previously like if we're correcting the agent to do uh a certain thing”transcript, stated

Why this architecture

Cursor argues that factory-scale agent work needs the same management stack as a human organization: structured work units, guardrails, verifiable outputs, parallel environments, learning loops, and human control over high-risk decisions.

3 supporting quotes
“you as a manager just provides like the intent and the instructions um and like the goal uh from what you want out of the factory.”transcript, stated
“agents free but not too free. Uh so you want to have some rules and and checks and and hooks in place. Um for example um a hook you might want to have is uh touching a specific part of the codebase. uh maybe the agent should not be able to change to like the most”transcript, stated
“make sure you're staying in the loop for important decisions. Um whether this is like uh safety or security or databases or payments and authentication”transcript, stated

Scale

Alternatives considered (roads not taken)

Let agents operate freely without rules, checks, or hooks

Rejected because: The speaker says probabilistic, off-the-rails behavior signals that the factory needs stronger guardrails.

“you're losing a lot of determinism. Um, because they just go off and do random things. Um, which is probably a sign that you need to like build more guardrails for the factory.”transcript, stated

Install every available Cursor rule for the stack

Rejected because: Rules should emerge from observed agent failure modes rather than being blindly copied into every project.

“the assumption was usually that you should just install every rule that you can depending on like what um uh software stack you're using.”transcript, stated
“rules should just like emerge dynamically. Like if you're finding agents going off the rails, you should probably create a rule for that.”transcript, stated

Shared local workspace for many parallel agents

Rejected because: Separate VMs avoid side effects across branches, databases, caches, and user-management state.

“if you're sharing the workspace you can have like git work trees where you like have diff shallow copies essentially of the codebase on the same machine”transcript, stated
“that's why I found like just using cloud agents uh where I spawn a VM and this VM can run a database uh uh internal tooling databases other stuff”transcript, stated

Humans personally remembering to turn every correction into a rule

Rejected because: Continual-learning automation extracts memories and learnings from transcripts and stores them as rules.

“I'm kind of lazy so I don't really um remember to create a rule. So instead, we can have this continual learning plug-in”transcript, stated

Patterns

multi-agent-orchestration (agent architecture)

Cursor frames factory work as scoping and parallelizing many agents, then aggregating and managing their outputs at higher abstraction.

“the more agents you spawn over time, the harder time you're going to have to like understand what's going on in each of them. So then you need a way to aggregate these changes like upwards.”transcript, stated

tool-use-orchestration (agent architecture)

Agents are given skills and MCP/tool access so they can use feature flags, external context, Slack, Datadog, Notion, Linear, and other systems.

“skills and MCPS. Um accessing like external context. Um getting like understanding of how to implement a certain thing.”transcript, stated
“can they interface with linear or notion or data dog or slack etc. just to understand and like see what's what is like the broader context”transcript, stated

guardrails-io-filtering (governance)

Rules, hooks, checks, sensitive-code restrictions, tests, and feature flags constrain what agents can safely change.

“you want to let the agents free but not too free. Uh so you want to have some rules and and checks and and hooks in place.”transcript, stated

eval-driven-development (quality)

The factory depends on verifiable systems where agents run unit, integration, UI, browser, and review checks against their own work.

“building verifiable systems how can um the agents themselves like verify their own work whether that's through um unit test or integration tests or uh UI tests”transcript, stated

agent-memory (learning)

Transcript- and PR-comment-derived memories/rules preserve human feedback for future agent behavior.

“we can look at the comments and we can look at what did humans actually review here uh and what do they say about the changes I made.”transcript, stated
“continue learning is another type of automation um that I created um a couple weeks ago as well”transcript, stated

Tradeoffs

Autonomy controls

Chose Rules, checks, hooks, tests, and sensitive-area restrictions over Unbounded agent freedom.

Rationale: The factory still wants agent freedom, but high-risk areas and off-the-rails behavior need explicit control points.

“you want to let the agents free but not too free. Uh so you want to have some rules and and checks and and hooks in place.”transcript, stated

Parallel execution environment

Chose Separate cloud VMs per agent over Shared local workspace with git worktrees and shared services.

Rationale: VM isolation costs more setup work but avoids shared-state side effects and scales to many concurrent agents.

“it is more expensive It's going to take a lot more work to set up your like factory or your environment to support this.”transcript, stated
“once you have it set up properly, you can scale this to like 100 or a thousand agents.”transcript, stated

Human role at factory scale

Chose Manager/architect reviewing outcomes and scoping work over Worker reviewing every code diff synchronously.

Rationale: The factory's throughput comes from moving human judgment to intent, scope, guardrails, and outcome artifacts rather than raw implementation.

“you are going to go from like worker to manager. Um where instead of just doing the work yourself, you're overseeing a lot of agents doing the work”transcript, stated

Code-owner bottleneck handling

Chose Agentic code owner risk assessment over Blocking every code-owner-owned PR on a human in another timezone.

Rationale: Low-risk PRs can be unblocked automatically while high-risk PRs can still pull in people with relevant prior context.

“if it is a low risk it can just approve the PR because we don't really we don't want to block uh our own engineers”transcript, stated

Gotchas (what bit them)

Agents become probabilistic and go off the rails when the factory lacks guardrails.

Root cause: Free-form agent autonomy without rules, hooks, checks, and known codebase patterns loses determinism.

Resolution: Build dynamic rules from observed failures and pair them with tests, hooks, and verifiable outputs.

“they just go off and do random things. Um, which is probably a sign that you need to like build more guardrails for the factory.”transcript, stated
“if you're finding agents going off the rails, you should probably create a rule for that.”transcript, stated

Parallel agents can interfere with each other's state when they share workspaces or services.

Root cause: Branches, databases, caches, and user-management state need separation to keep concurrent work reproducible.

Resolution: Spawn agents in separate cloud VMs with their own app, database, internal tooling, and codebase copy.

“you're still going to have to branch every like database or cache or user management to have like reproducible and separate environment ments”transcript, stated
“using cloud agents uh where I spawn a VM and this VM can run a database uh uh internal tooling databases other stuff”transcript, stated

Agents have completion bias and can finish local tasks without preserving long-term architecture quality.

Root cause: Models continue existing references and optimize for completing the immediate task rather than reasoning about future evolution.

Resolution: Keep humans in architectural planning/review, point agents to good references, and use later refactoring/abstraction passes.

“agents they have this completion bias. They want to finish task as soon as possible and uh they don't think ahead.”transcript, stated
“I think there's a case where you let the agents do um one-off implementations here and there and then eventually you have another agent like refactoring”transcript, stated

Humans become unable to understand every agent's work as agent count rises.

Root cause: Asynchronous background work and many parallel agents outstrip direct code-following.

Resolution: Aggregate changes upward, review artifacts and outcomes, and manage scope like a growing organization.

“the more agents you spawn over time, the harder time you're going to have to like understand what's going on in each of them.”transcript, stated

Evaluation

Cursor's factory guidance emphasizes verifiable systems: tests, browser/UI interaction, automated PR review, Bugbot, videos of agents testing work, daily review summaries, code-owner risk checks, and feedback-derived learning.

Metrics: Unit/integration/UI test pass/fail · Browser interaction/video verification · PR review comments · Risk level of code-owner changes · Human review comments · Number of parallel agents

3 supporting quotes
“can it run tests to know like oh I messed something up or um I made a change depending in like in this specific area of the code but it still passes”transcript, stated
“it actually clicking around and using the keyboard to to navigate.”transcript, stated
“what's the risk of this? What's the risk level? Can we is it just like changing a variable name?”transcript, stated

Outcomes

The talk is practical guidance rather than a single completed deployment report; its strongest scale evidence is Cursor's own cloud-agent use and the speaker's estimate of multiple thousands of agents per day.

“I don't think we're really there yet. Like sub parts of the product and sub parts of the company are running like fairly autonomously.”transcript, stated
“I'm not sure how many we are running today, but I bet it's like multiple thousands a day.”transcript, stated