Four MIT Undergrads Forked VS Code: How Michael Truell Built the $9B Cursor with 20 People

By 2023, Microsoft had already embedded GitHub Copilot directly into VS Code, reaching tens of millions of developers. That same year, Anysphere—founded by four MIT graduates—launched Cursor. With a team of just 20 to 30 people and virtually zero ad spend, they scaled to $100M in annual recurring revenue (ARR) in under two years and reached a $9 billion valuation by mid-2025. Stripping away the hype and looking at Cursor’s trajectory from an engineering perspective, Michael Truell and his team won on three deliberate bets: UI control, sub-second latency, and model routing.
1. Ditching the Extension Route: Forking VS Code Outright
When Truell and three classmates founded Anysphere in 2022, their original target wasn’t code—it was AI-assisted modeling for mechanical engineering CAD software. A few months in, they hit two hard walls: industrial CAD tools have locked-down underlying APIs, and high-quality public 3D modeling datasets are scarce. Without a viable training loop, the four founders shelved the project and pivoted to the tool they lived in every day: the code editor.
In early 2023, the competitive landscape looked unforgiving. Backed by its status as an official VS Code extension, GitHub Copilot had already signed up over 1 million paying developers. Nearly every new AI coding startup followed the exact same playbook: ship a VS Code extension, wire up the OpenAI API, and bolt a chat sidebar onto the editor.
Truell’s team initially tried building a brand-new editor from scratch, but quickly ran into the brutal reality of switching costs. Developers build deep muscle memory around their editors; every VS Code setup is packed with language servers, extensions, custom keybindings, and color themes. Even if a new tool offers superior autocomplete, asking developers to rebuild their environment from zero is a non-starter for almost everyone.
Weighing the trade-offs, the team chose a third path: directly forking open-source VS Code.
The technical rationale was straightforward. To protect stability, VS Code’s official Extension API sandboxes what plugins are allowed to do. Extensions can render single-line or localized ghost text after the cursor, but they cannot freely modify the core rendering pipeline, inject custom inline diff overlays between lines of code, or orchestrate multi-line cursor jumps. Staying inside the extension sandbox meant letting Microsoft dictate the ceiling of their UX.
By forking the codebase, Cursor preserved 100% VS Code extension compatibility. Existing users could open Cursor, click one button, and migrate their entire setup—plugins, themes, and keybindings—intact. At the same time, Anysphere gained source-level control, allowing them to wire inline edit boxes, multi-line diff highlights, and codebase indexing panels directly into the editor’s native layer.
The engineering tax was just as clear. Microsoft ships massive upstream updates to VS Code every month. Forking meant committing engineering headcount indefinitely to continuously merge upstream changes and resolve gnarly merge conflicts. Most small teams balked at that maintenance burden; Cursor willingly paid it in exchange for total product freedom.

2. From Continuation to Diff Prediction: Engineering Tab Under 300ms
Owning the UI surface was only the prerequisite. The feature that actually drove waves of paying developers to switch from Copilot to Cursor was the prediction engine behind the Tab key.
Traditional AI autocomplete operates on a continuation model: your cursor sits at the end of line 42, the model reads the surrounding context, and it predicts the rest of the line. That works fine for greenfield files, but it falls short in day-to-day software engineering. Developers spend more than half their workday modifying existing code—changing a function’s parameter type, jumping 15 lines down to update the call site, and deleting two lines of deprecated validation logic. Simply appending characters after the cursor can’t handle deletions or cross-line jumps.
Truell’s team re-architected the input and output of the autocomplete engine to build Cursor Tab (internally codenamed Copilot++), shifting the prediction unit to full code diffs. The model continuously tracks the developer’s recent edit history: when you rename a parameter from userId to accountId, the model anticipates that you’ll need to update the return value on line 58 and delete an obsolete variable on line 61. The editor surfaces a translucent inline preview alongside a jump indicator—tap Tab twice, and the edit applies while your cursor snaps straight to the next change.
For this interaction loop to feel natural, it has to clear a strict latency bar.
When a developer is typing at speed, any visual feedback slower than 500 milliseconds breaks flow. Calling a frontier model like GPT-4 directly takes 1 to 3 seconds just for time-to-first-token, making it unusable for high-frequency Tab completions. Anysphere’s answer was to train custom, specialized small models dedicated to low-latency edit prediction, compressing end-to-end response times into the 200 to 350 millisecond window.
Editing long files introduced a second speed bottleneck. Asking a frontier LLM to rewrite a 1,000-line file at a typical 60 tokens per second forces the developer to sit idle for one to two minutes. Cursor adapted speculative decoding to code editing, shipping Speculative Edits and a Fast Apply model: a frontier model first sketches out the concise edit instructions, and a fine-tuned lightweight model exploits the heavy token overlap with the original file to predict tokens in parallel. That pushed full-file rewrite speeds past 1,000 tokens per second, shrinking edits that used to take tens of seconds down to two or three.
| Dimension | Traditional Extension-Based Autocomplete | Cursor Native Fork Architecture | Real-World Developer Experience Gap |
|---|---|---|---|
| UI Control | Restricted to official Extension API sandbox | Direct control over core editor rendering layer | Native inline diffs and cross-line jump hints |
| Core Prediction Unit | Single-line or multi-line continuation after cursor | Full diff patches with insertions, deletions, and cursor jumps | Covers high-frequency editing and refactoring workflows |
| Tab Latency | Typically 600ms–1,500ms | Compressed to 200ms–350ms via custom small models | Rapid Tab-accepting without breaking coding flow |
| Long-File Rewrite Speed | Full LLM rewrite at ~50–80 tokens/sec | Speculative Edits exceeding 1,000 tokens/sec | Localized edits in 1,000-line files finish in seconds |
| Model Coupling | Tightly coupled to a single cloud provider’s models | Model-agnostic, dynamically routed per task | Ships support for new frontier models on day zero |

3. Staying Model-Agnostic: The Claude 3.5 Sonnet Inflection Point
In 2023, Anysphere raised an $8 million seed round led by the OpenAI Startup Fund. Even with early capital coming from a model lab, Truell’s team designed Cursor to be strictly model-agnostic from day one. Under the hood, Cursor operates a unified routing layer that treats foundation models as swappable compute: proprietary small models handle low-latency autocomplete, external frontier models handle complex reasoning, and developers can switch freely between GPT, Claude, and Gemini in settings.
That architectural bet paid off immediately in June 2024. Anthropic released Claude 3.5 Sonnet, which significantly outperformed competing models on real-world code generation and long-context instruction following. Incumbents with massive user bases were slowed down by partnership agreements and internal approval cycles; Cursor integrated Claude 3.5 Sonnet on launch day and made it the default workhorse model.
Around the same time, the team expanded inline editing into Composer (which later evolved into Agent mode). Previously, building a feature that spanned frontend and backend meant copying and pasting back and forth between a chat box and individual files. With multi-file agent mode, the editor queries a local vector index of the entire repository, edits five or six interconnected files in one pass, invokes the terminal to run builds and test suites, and iterates on compiler or test errors until the suite goes green.
Product velocity drove organic distribution. Anysphere had no sprawling sales org and spent virtually nothing on early marketing—growth came almost entirely from developer word-of-mouth and community demos. In August 2024, the company raised its Series A at a $400 million valuation. By the end of 2024, ARR crossed $100 million with only 20 to 30 employees—more than $3 million in revenue per employee. By mid-2025, surging enterprise adoption and paid conversion pushed Anysphere’s valuation to $9 billion.
4. Keeping Code Center-Screen: Engineering Restraint and Two Emerging Pressures
Over two years of rapid AI coding evolution, plenty of startups pitched fully autonomous “AI software engineers” that hid the code behind a chat window. Cursor deliberately kept the code editor front and center, tucked the chat panel to the right, and anchored high-frequency workflows on Tab and Cmd+K.
That layout reflects a pragmatic engineering reality: as long as LLM hallucination rates are non-zero, human code review speed is the true bottleneck in software delivery. If an AI dumps 2,000 lines of unchunked code in one shot and an engineer spends two hours hunting down a subtle logic bug, the team is slower than writing it by hand. Scoping each change into a visual diff of a few lines to a few dozen lines—verifiable in seconds—fits far better into million-line production codebases.
Even so, Cursor’s moat is not unassailable. Two external pressures are already converging.
The first comes from upstream model labs moving directly into the application layer. Tools like Anthropic’s Claude Code and OpenAI’s Codex agent bypass the graphical IDE altogether, operating directly in the CLI to read and write files, run tests, and open pull requests autonomously. As base models improve, the share of work requiring a developer to stay inside an editor making line-by-line tweaks may steadily shrink.
The second pressure is unit economics. Cursor’s Pro plan has long been anchored at $20 per month, yet power users hammering frontier reasoning models rack up steep API inference bills. Upstream labs hold the pricing power; to protect healthy gross margins, the application layer has to relentlessly compress per-request inference costs through custom small models, speculative decoding, and smart caching.
By forking VS Code to seize UI control and using specialized small models plus speculative edits to hold the 300ms latency line, Truell’s team captured the prime entry point for human-AI pair programming. The defining question for Cursor’s next chapter is whether the graphical code editor itself remains the center of gravity as foundation models grow capable of shipping complex systems end to end.
Discussion