Ryan Salva on GitHub Copilot
Guest: Ryan Salva — VP of Product at GitHub; incubated and launched GitHub Copilot. Philosophy and English background; 10 years at Microsoft before GitHub.
Host: Lenny Rachitsky
Source: Lenny’s Podcast. Recorded ~2022, shortly after Copilot reached general availability.
Overview
Ryan Salva tells the origin story of GitHub Copilot — from discovering OpenAI was cloning GitHub’s repositories to productising a multi-line AI autocomplete that writes ~40% of Python code for developers who use it. Covers the R&D-to-product transition model, ethical challenges, latency targets, and an investment allocation framework for balancing bold bets against operational work.
Key ideas
- Origin: Arctic Code Vault → CodeX. GitHub had snapshotted all public repos onto silver film for the Arctic Code Vault. After OpenAI almost took down GitHub by mass-cloning repos, GitHub handed over that same snapshot. OpenAI built CodeX (code-trained derivative of GPT-3) on it. Copilot emerged from experimenting with CodeX on code completion.
- Inline autocomplete UX. GitHub Next tried side panels and right-click menus before landing on inline gray-italic text as the right presentation. 200ms is the latency threshold — beyond that, developers feel interrupted. The key design goal: keep developers in the flow.
- R&D to productisation model. GitHub Next (second/third horizon R&D) incubated Copilot until customer signal was strong (“magical”). Then: move researchers over to seed an EPD squad, run technical preview, hire operational engineers around them, eventually send researchers back to Next. Researcher return is gated on replacement-in-seat, not calendar.
- AI pair programmer framing. The product persona (“your AI pair programmer”) solved the content moderation problem by giving a coherent answer to “what is appropriate behaviour?” Starting from no filters, GitHub iterated to crude block lists, then to Azure Responsible AI sentiment models.
- Investment allocation. 5–10% bold bets (R&D/moonshots), 25–30% operations (keeping in-market products stable), 60% incremental improvements on in-market products.
Copilot origin story
The trigger: GitHub’s infrastructure team noticed their servers being hammered by clone requests. Tracked it to OpenAI cloning GitHub’s public repositories to harvest training data. Response: package the GitHub Arctic Code Vault snapshot (already taken for preservation purposes) and hand it to OpenAI through a formal partnership rather than ad-hoc cloning.
The model: OpenAI trained CodeX on the code snapshot — a GPT-3 derivative specialised for programming languages. Insight from the research: programming languages are nicer training targets than natural language because their grammars are more constrained (fewer valid tokens per position than English).
The UX journey: side panel (out of flow); right-click menu (still disruptive); inline gray-italic text (stays in flow). Visual language for ephemerality. Key UX insight: developers are motivated by staying in the creative flow, so any interruption to check suggestions defeats the purpose.
Latency and product quality
200ms was empirically found to be the autocomplete latency threshold. Beyond that, developers feel interrupted. Below it, suggestions feel like a natural part of typing.
40% of Python code is written by Copilot for developers who have accepted Copilot suggestions. This varies by language — higher-represented languages in public repos get better model quality. Python’s training data volume and diversity is highest.
R&D to productisation transition
The GitHub Next model:
- Ring-fence a small research team (GitHub Next) with no KPIs on revenue or operational SLAs. Give them space to experiment.
- Monitor for signal: “Is this actually solving a problem in a novel way?” The signal for Copilot was mind-blown emoji tweets and Hacker News threads.
- Move researchers temporarily to seed an EPD squad. Run a technical preview.
- Hire operational engineers to build insulation around the researchers.
- When replacement-in-seat is achieved, researchers return to GitHub Next.
- EPD squad takes full ownership of roadmap — they have the closest customer feedback loop and must own the product direction. R&D team cannot own roadmap long-term.
The hardest cultural transition: researchers brought from Next are unaccustomed to engineering fundamentals (reliability, security, privacy, accessibility). That cultural change management must happen before they return to research.
Ethical challenges
Primary issues: training on public code (community trust), content appropriateness, security of suggestions.
Content moderation journey:
- No filter (early days) — produced inappropriate suggestions.
- Crude block list — fraught with peril; removed legitimate words in medical/scientific contexts.
- Azure Responsible AI sentiment models — better context sensitivity than keyword blocking.
The “AI pair programmer” framing: if a human pair programmer were whispering inappropriate things into your ear while you worked, you would not be able to focus. That framing set the behavioural standard for what Copilot should and should not produce.
Security concerns: model poisoning, new attack vectors through AI-generated code. Ryan’s response: Copilot should not replace code review, static analysis, or unit tests — those safety mechanisms must remain in place.