OpenAI and GitHub Unveil New Copilot AI Assistant for Coding

A new virtual assistant created by OpenAI and GitHub will suggest code to software developers as they work. The new GitHub Copilot tool leverages an improved version of OpenAI’s popular GPT-3 language model called Codex to teach the AI how to collaborate in a coding project like a human partner.

AI Copilot

Github Copilot takes the concept of natural language processing and applies it to programming languages. The idea is to imitate a “pair programmer,” when two developers simultaneously work on a coding project and comment and annotate each other’s work along the way. The AI theoretically takes the junior partner role in the endeavor, making its name entirely apropos. Copilot relies on OpenAI’s Codex model to understand what the programmer is doing and come up with suggestions. Like GPT-3, Codex is built on an enormous collection of data to teach an AI how to suggest a line or more of code. The AI learns from what suggestions the human user accepts or rejects, honing its understanding and ideally leading to better code ideas.

“GitHub Copilot draws context from the code you’re working on, suggesting whole lines or entire functions,” Github CEO Nat Friedman explained in a blog post about the new tool. “It helps you quickly discover alternative ways to solve problems, write tests, and explore new APIs without having to tediously tailor a search for answers on the internet. As you type, it adapts to the way you write code—to help you complete your work faster.”

Enterprising AI

GitHub Copilot is still in technical previews, appearing in the free Microsoft’s Visual Studio Code platform, with the paid version getting access soon. The AI is already capable of supporting most programming languages but is focusing especially on the most widely used, such as JavaScript, Python, TypeScript, Ruby and Go. As with GPT-3, Microsoft has exclusive access to parts of Codex, but OpenAI is planning on bringing a version of the Codex model for third-party developers soon too. Copilot extends what Microsoft and OpenAI were already doing with GPT-3 and the low-code Power Apps programming tool, making  it easier to program software with natural language.

“GitHub Copilot is powered by OpenAI Codex,” Friedman wrote. “OpenAI Codex has broad knowledge of how people use code and is significantly more capable than GPT-3 in code generation, in part, because it was trained on a data set that includes a much larger concentration of public source code.”

Microsoft Scores Exclusive License to the Much-Hyped GPT-3 Language Model

Microsoft Brings GPT-3 to Natural Language Programming Tool

GPT-3-Powered Business Writing Assistant Copy.AI Raises $2.9M