
Why build own models for code

Building Windsurf with Varun Mohan
Topic 5 of 16
Published May 7, 2025 · Clip 16:06–20:42 (4:36)
Varun explains why Windsurf builds its own models: open models like Salesforce CodeGen lacked fill-in-the-middle, which is essential for autocomplete. He discusses why coding differs from chat, including tokenization issues with incomplete code. He also describes code-specific advantages: parsing via ASTs, building knowledge graphs from commit history, and computing probability distributions of related code changes, all of which let them learn company-specific best practices automatically.