No Priors
No Priors

Coding in Collaboration with AI with Sourcegraph CTO Beyang Liu

Coding in collaboration with AI can reduce human toil in the software development process and lead to more accurate and less tedious work for coding teams. This week on No Priors, Sarah talked with Beyang Liu, the cofounder and CTO of Sourcegraph, which builds tools that help developers innovate fas

Featured Speakers

Bae Yang Liu Guest

Topics Discussed

Episode Summary

Executive Summary: SourceGraph CTO Bae Yang Liu explains how the company evolved from code search into Cody, an AI coding assistant built around retrieval-augmented generation for code. He argues the biggest unlock is high-quality context from large codebases, not just bigger models, and predicts AI will compress repetitive software work while elevating CS fundamentals, domain expertise, and engineering leadership visibility.

Main Topics: SourceGraph’s origin and core thesis (Priority: 5/5): The company was founded to reduce developer toil by helping engineers find and understand code faster, since much of software work is reading legacy code and acquiring context rather than building new features. AI’s arrival in code products (Priority: 5/5): Bae traces SourceGraph’s AI interest back to his Stanford ML background and early experiments with embeddings, but says the real inflection point came with ChatGPT, which validated the opportunity. Cody as an AI coding assistant (Priority: 5/5): Cody integrates into IDEs and the web app to provide completions, Q&A, test generation, error fixing, and explanations, with SourceGraph’s code intelligence used to enrich LLM outputs. Retrieval-augmented generation and context quality (Priority: 5/5): The central technical argument is that code AI succeeds when the system fetches the right repository context through search, graph traversal, embeddings, and reranking before generation. Building reliable agentic workflows (Priority: 4/5): He frames autonomous coding as an issue-to-pull-request problem and discusses two paths: decomposing tasks into smaller steps or expanding context and sampling/validating multiple outputs. Small models, speed, and cost (Priority: 4/5): SourceGraph is bullish on smaller models like Starcoder 7B and Mixtral when paired with strong context, though larger models still matter for chat and richer in-context reasoning. Future of software development and engineer skills (Priority: 5/5): AI will likely compress the middle layer of software work, increasing leverage for individual developers while making CS fundamentals and domain expertise more important, not less.

Key Arguments: The hardest problem in software development is context acquisition: engineers spend huge amounts of time understanding existing code before they can build effectively. Code search and graph-based navigation are foundational capabilities for human developers and are also the best way to supply useful context to LLMs. RAG is the right first strategy because it establishes a baseline and improves both human workflows and model outputs without requiring immediate fine-tuning. Keyword search remains surprisingly effective; for code, parsing into functions/classes and adding regex/string-literal matching is critical. Retrieval systems should maximize recall first, then use reranking for precision within the LLM’s context window. The strongest gains in code AI come from improving the data pipeline, chunking, indexing, and context selection—not only from training larger models. Reliable agentic coding will likely come from combining better context, task decomposition, and validation, rather than expecting a single model call to solve everything. AI will not eliminate software teams, but it will let each engineer handle more scope and make leadership more aware of what is changing in the codebase. CS fundamentals will matter more because AI will automate boilerplate and middleware, leaving higher-value work at the product and systems-design boundaries.

Data Points: SourceGraph founding year: 2013 - Bae says SourceGraph was founded in 2013. Initial AI re-investigation: circa 2017–2018 - He says SourceGraph began revisiting AI around 2017 or 2018 with embeddings for code search. ChatGPT launch timing: end of November - He cites ChatGPT’s arrival at the end of November as the major catalyst for accelerating Cody work. Context window size: at least 2,000 tokens - He describes modern language models as having context windows of at least 2,000 tokens, often much longer. Primary inline completion model: Starcoder 7 billion - He says Cody’s inline completions currently use Starcoder 7B. Chat model example: Mixtral - He notes SourceGraph recently integrated Mixtral into Cody chat. Search coverage target: 100% recall - He explains the retrieval layer aims to preserve full recall before reranking. Keyword search effectiveness: more than 90% of the way there - He says keyword search alone can get RAG practitioners most of the way to a good retrieval system.

Pivotal Quotes: "The core problem of software development is one of coordination and visibility." — Bae Yang Liu: He explains why AI matters most for reducing developer toil and improving team-wide understanding of large codebases. "If your goal is to build software as it exists today, then yes, I think in the future, a single human will be able to build applications that today require large numbers of people to coordinate." — Bae Yang Liu: He describes how AI could dramatically increase individual developer leverage. "I still think CS fundamentals are very important and also domain expertise." — Bae Yang Liu: He argues that AI will compress boilerplate work, making foundational knowledge and domain understanding more valuable.

Implications: For developers and companies, the key advantage will come from combining strong retrieval/context systems with models. Expect faster inner-loop coding, more automation of repetitive tasks, and greater value for fundamentals, domain expertise, and software coordination.

🔓 Sign Up for Unlimited Episode Search

About No Priors

View all episodes from No Priors