How Windsurf Writes 90% of Your Code with an Agentic IDE

Kevin Hou, Windsurf20:50 · Mar 2025 · 83K views
Thumbnail for How Windsurf Writes 90% of Your Code with an Agentic IDE Watch on YouTube
TL;DR
  1. 1

    Windsurf combines an AI agent with the editor, terminal, codebase, and web search so developers can give it less explicit input.

  2. 2

    Its shared trajectory lets the agent follow what a developer is doing across file edits, navigation, searches, commits, and terminal commands.

  3. 3

    Windsurf uses memories and inferred context to adapt to a developer's codebase, preferences, tools, and organizational guidelines over time.

Summary

Kevin Hou presents Windsurf as an editor built around an agent called Cascade. The agent follows the developer's work through a shared timeline that includes file navigation, edits, searches, commits, and terminal commands. This lets it continue a task, install packages in the same environment, suggest related changes, and run commands while still asking for approval when a command looks dangerous. Hou describes a second layer called meta learning, where Windsurf remembers preferences, project structure, package versions, and rules instead of requiring the developer to repeat them. The product also uses web search to read documentation for the versions in a project. Hou argues that agent products should improve as language models improve, so Windsurf has removed chat as a separate mode and relies on Cascade to infer context. He says Windsurf users generate 90% of their code with Cascade, compared with 20% to 30% for autocomplete.

Key ideas
00:57

Windsurf puts the agent inside the editor rather than beside it

Hou introduces Windsurf as an agentic editor built around the idea that agents will change software development. Its agent can install dependencies, set up a virtual environment, suggest edits, search the web, inspect the codebase, generate commit messages, and accept dropped-in images. The product goal is to keep developers in the flow by handling work such as reading stack traces, modifying source files, and finding documentation that matches the project. Developers should spend more time shipping features and less time supplying context or copying information between tools.

06:56

A shared timeline lets Cascade continue work from developer actions

Windsurf builds a unified timeline from what the developer does and what the agent does. The timeline includes viewing files, navigating the codebase, searching, grepping, editing, making commits, and running commands. If a developer adds a function and asks Cascade to continue the work, the agent can infer that another handler should use it, edit the related files, and run the development command. Hou says this prevents the agent from undoing a recent change or relying on an outdated file state. The goal is to make a task that took minutes take seconds.

07:59

Terminal commands are part of the agent's working environment

The terminal is integrated into the same agentic timeline. After a developer installs a package with npm or pip, Cascade can recognize that action and use the package in the project. Commands run in an environment that is as close as possible to the developer's normal terminal, rather than in a separate shell with different behavior. The agent can decide which commands are safe to run automatically. A normal git command may run without interruption, while an rm -rf command should prompt for confirmation. Developers can also whitelist or blacklist commands.

17:58

Windsurf infers project context through memories and usage

Hou calls the product's ability to learn preferences and project conventions meta learning. Autogenerated memories can retain facts such as using Tailwind version 4 or React 19. Windsurf can also remember a project's purpose, routes, and available endpoints after inspecting files and using tools. It can use package metadata to identify dependencies and find documentation for the matching versions. Custom MCP servers let users connect tools from their own workflow. Hou expects more of this context to be inferred from the codebase and product usage, reducing the need to repeat instructions or maintain a large rules file.

15:09

The product should improve as language models improve

Hou describes a design principle called scale with intelligence. Earlier developer tools compensated for weaker models with embedding indexes, retrieval systems, and output validators. Windsurf instead aims to let better models improve the product without requiring every new capability to be encoded as fixed infrastructure. One example is removing chat as a separate mode and using Cascade as the only agent. Another is reducing the need for explicit file and web mentions. When a developer asks to add Supabase to a Next.js app, Cascade can infer that it should search the web, read relevant documentation, and use the result without a chain of manual context commands.

10:15

Cascade is intended to reduce copy and paste between tools

Windsurf's trajectory model connects the editor, terminal, documents, and websites so information can move into the agent through the product's context rather than manual copying. Hou says the future should not require pasting terminal output or documentation into a chat box. Web search is handled by the model, which decides which search results to open and which parts of each page to read before producing an answer. He expects the agent to take on more unsupervised work, including generating pull requests, reading complex documentation, and making broader code changes.

19:00

Hou reports that Cascade generates most code written by Windsurf users

Hou says Windsurf launched on November 13 and had generated 4.5 billion lines of code within three months. He also reports that all users were generating 90% of their written code with Cascade, compared with 20% to 30% for autocomplete. He mentions that the rapid adoption created operational problems, including 16 nights in the previous 90 days when the team was woken by pager duty after exceeding capacity. These figures are presented as evidence that developers were already using agents for substantial implementation work.

"We want to allow users to give the least amount of explicit input possible to produce the most correct and production ready code."05:07
Who should watch
  • You are building an AI coding tool and want to understand how Windsurf connects an agent to editor state, terminal activity, and codebase context.
  • Your team is deciding whether an agent should rely on chat prompts, explicit retrieval instructions, or a shared view of developer actions.
  • You want a concrete account of autogenerated memories, command approval, web search, and model-dependent product design from a developer-tools product leader.