Frontier Foundry

Building your own software factory — Eric Zakariasson, Cursor

Talk notes · AI Engineer ·

A close reading of the source at ai.engineer (also youtube.com): what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.

Software FactoryModel Context ProtocolContinual LearningCoding AgentsCursor (Anysphere)GitHub

Problem

Eric Zakariasson (engineer at Cursor, working on developer experience and product) gives a talk of about 33 minutes, then takes questions for roughly 50 more (the page lists about 83 minutes in total, so it runs like a workshop). His subject is what it takes to build your own software factory, drawn from using Cursor on Cursor. He is upfront: "I don't think we're really there yet." Parts of the product and company run fairly autonomously, but a real factory takes assembly lines, management and observability, as physical ones do (0:00).

He frames it with Dan Shapiro's six levels of autonomy (0:00, 1:50). They run from "spicy autocomplete" (Cursor in 2022-23), through the pair programmer (where he says most adopters sit, level two to three), AI writing most code with humans reviewing, and delegating to agents and reviewing outputs before code (his own level four for most projects), to the "dark factory": a black box where you give intent and goals and agents ship (1:50).

Why build one: throughput (agents run 24/7), consistent output from assembly lines, and more room to apply your taste (3:32). He warns that without the right setup agents feel more probabilistic, which "is probably a sign that you need to build more guardrails" (3:32).

Approach

Primitives and patterns (5:12 to 8:52). A factory needs:

  • Code structure. Modular, co-located code, so an agent listing one folder finds what it needs, plus reusable patterns and boilerplate (auth, startup scripts, how to write tests) it can copy. Code that is easy for a new human to learn is easy for an agent (5:12). In a demo the agent finds the start script in package.json at once because that pattern is "in distribution" for models (10:42).
  • Guardrails. Rules, checks and hooks, such as blocking agent edits to encryption or authentication code (5:12). Rules are, he says, the most misunderstood idea: do not install every rule for your stack; let them "emerge dynamically" when you see agents going off the rails, like a standard operating procedure. Models follow instructions well enough now that fewer are needed (7:09). Plus tests the agent can run to verify its own work.
  • Enablers. Skills and MCPs for outside context and for abilities such as adding a feature flag, so an autonomous run can merge behind a flag and report back "turn on this flag to try it; if you don't like it we revert" (7:09, 8:52). And an environment the agent can start itself.

His checklist (8:52): is it runnable, is it accessible (Linear, Notion, Datadog, Slack context), and is it verifiable, where he says people should spend "a lot more time": unit, integration and real UI tests. It is easier for back ends with clear contracts than for UIs, which need clicking around.

Demos (10:42 to 16:52). On a music-production side project he forced himself to write and read no code, which quickly showed the need for a way to start the project and for agent-written Playwright end-to-end tests (12:49). He lists verification layers: tests, agent review, and Bugbot reviewing PRs in GitHub, so the whole SDLC is planned, built and reviewed in an automated way (12:49, 14:55). Cloud agents each get their own VM and can control the computer; one returned a video of itself testing its own change (14:55).

Running it as a manager (16:52 to 23:47). Move from worker to manager and from sync to async. Aggregate what many agents do, as human organizations add managers (16:52). Scope and parallelize work to avoid merge conflicts, keep tribal knowledge of the codebase so you do not outsource too much, and front-load context in a plan or spec before sending agents off (16:52, 18:29). There is no shortcut: spawn many agents and see, as long as you have safety guardrails and do not push to production straight away (20:13). For parallel environments he prefers isolated VMs to git worktrees on one machine, because databases and caches would still need branching; it costs more and takes more setup but, he says, scales to hundreds or thousands of agents (20:13, 21:57). Look for where a human still copy-pastes (logs, user feedback, Notion specs) and automate it; watch where agents go wrong, because that is the flywheel for new rules (21:57, 23:47).

Scaling with automations (23:47 to 31:31). Examples from Cursor, all as he describes them:

  • a scheduled daily review of his own Slack and GitHub activity (25:51);
  • reading comments on merged PRs, since a human's review comment is high signal (25:51);
  • an agentic code owner: code owners were right about 80% of the time but blocked work the other 20%; the agent rates PR risk, approves low-risk changes and pulls in earlier authors for high-risk ones (27:38);
  • a continual-learning plugin that mines transcripts for corrections and saves them as rules (29:40);
  • a scan of his chat history to find repeated tasks (23:47).

Lessons learned

  • Zakariasson: "storing the context and building the tools and keeping them up to date is more important than actually doing the work", because it gives agents the framework and guardrails (31:31).
  • Do not outsource important decisions (safety, security, databases, payments, authentication) (29:40, 31:31).
  • Q&A on code quality: agents continue from existing references, so give good ones; let agents do one-offs, then have another refactor into abstractions. Expect more human architecture review and design (33:07, 35:26). He admits "it's a tough problem".
  • Q&A on high-stakes systems: spend compute and tokens up front, write critical tests by hand and let agents run them a lot, and use security automations such as Cursor's "Security Sentinel", which checks specific invariants on certain PRs (38:48). An attendee argues that if you trust the tests you can trust output without reading the code, and Zakariasson agrees (38:48, 40:45).
  • Q&A on rules: they bridge model behavior and your intent. His example is Bugbot flagging foreign keys in migrations that the model adds by default but Cursor avoids for performance (44:38). Team-wide rules are a human and cultural problem: people keep personal rules and silo their own factories, so make a forum for what the factory should be (35:26, 37:12).
  • Q&A on GUI testing: computer-use cloud agents click through the app and record video; one demo turn cost about $1 by his guess, and the VM for Cursor's own repo is "quite beefy" (46:16, 48:04, 51:25). Cloud agents suit visual checks; Playwright suits deterministic, shareable ones (48:04, 49:42).
  • Q&A on PM prototypes: rewrite them rather than migrate them, and hand engineers an interactive prototype or a link to the cloud agent session as intent, not "vibe-coded SaaS" (53:35, 55:28, 57:27).
  • Humans remain accountable. Mission-critical areas need observability and perhaps human rewrite or review by one or two people ("easy to vibe code close to the sun") (57:27, 59:20).
  • His own pace: about five to ten cloud agents at once, planning synchronously and executing asynchronously (61:12). In Cursor, Linear tickets and a stable feature flag each spawn a cloud agent, which he says is good for dogfooding but costly, so he would not recommend it to everyone (68:36, 70:32). Roles are PMs, designers who also push code, engineers and data analysts, with extreme ownership per person (76:35, 78:25).
  • Caveats: this is a Cursor product talk (Cursor 3, cloud agents, Workers and Bugbot are shown), and the evidence is his demos and anecdotes. No throughput or quality numbers were given. The Lovable "vent tool" story is secondhand (31:31).

Theme

Group: AI Coding & Software Factories. Zakariasson is the practitioner's "how to start" voice, from a coding-agent vendor, and the most modest: "not there yet". His rules-emerge-from-failures idea is the same flywheel as Dru Knox's meta loop (card) and Suraj Gupta's skill-edit PRs (card); his continual-learning plugin is a small version of both. His agentic code owner (auto-approve low risk, pull in humans for high risk) matches Gautam Korlam's approval policies (card); his Security Sentinel and "trust the tests" echo Jarred Sumner's approach (card). He differs mildly from Dex Horthy (card), who says reading code stays: Zakariasson expects to look at much less code as long as outcomes and tests are observable, though he keeps humans for critical areas. His isolated VMs echo Walden Yan (card) and Uber's pre-provisioned environments (card).

Where this leads

the concepts it is about

Related briefs

every brief

Cite this page

the version of 2026-05-29
APA
Han, R. (2026, May 29). Building your own software factory — Eric Zakariasson, Cursor. Frontier Foundry. https://www.ryanhan.ai/briefs/2026-05-29-aie-mcp-building-your-own-software-factory
BibTeX
@misc{han2026-briefs-2026-05-29-aie-mcp-building-your-own-software-factory,
  author       = {Han, Ryan},
  title        = {{Building your own software factory — Eric Zakariasson, Cursor}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = may,
  url          = {https://www.ryanhan.ai/briefs/2026-05-29-aie-mcp-building-your-own-software-factory}
}