ProductScaling up
Codex and GitHub Copilot (2021): AI code suggestions arrive
Event date
On 29 June 2021 GitHub announced Copilot, an AI pair programmer built with OpenAI and powered by OpenAI Codex. Codex is a GPT model fine-tuned on public code, and OpenAI described it in a paper the following week.
Key numbers
What was announced
GitHub's announcement, written by Nat Friedman, introduced Copilot as an AI pair programmer. It suggests whole lines or entire functions based on the file being edited, and the post said it could help with alternative solutions, tests and unfamiliar APIs. It launched as a technical preview with a limited number of places, and readers were invited to sign up. The post also said Codex outperforms GPT-3 at code generation, helped by being trained on a larger share of public source code.
The post said Copilot worked with a broad range of languages and frameworks, and worked best with Python, JavaScript, TypeScript, Ruby and Go. It gave no usage or performance figures.
Sources: github.blog
The model behind it
Copilot ran on OpenAI Codex. The Codex paper, first posted to arXiv on 7 July 2021, describes it as a GPT language model fine-tuned on publicly available code from GitHub. A production version of Codex powers Copilot.
To measure it, the authors released HumanEval, a set of programming problems in which the model writes a function from its docstring and the result is checked by running tests, so the score reflects functional correctness rather than similarity to a reference. It is a test of working code, not of style. The evaluation focused on Python, and the paper describes the Copilot model as a production version of Codex.
Sources: arxiv.org
Results and limits
OpenAI reported that Codex solved 28.8% of HumanEval problems on a single attempt. GPT-3 solved 0% and GPT-J solved 11.4%. Sampling many attempts helped a great deal: with 100 samples per problem, Codex solved 70.2%. The two Codex figures measure different things: the first is a single attempt, the second allows a hundred.
The paper listed limitations, including difficulty with docstrings that describe long chains of operations and with binding operations to variables, and discussed safety, security and economic effects. Both figures are OpenAI's own results. The product and the benchmark both became reference points for later coding models and coding agents.
Sources: arxiv.org
Why it mattered
- Copilot put a large language model into a daily tool for working developers, well before chat assistants were common.
- HumanEval gave the field a simple, executable test for code generation that later models were measured against.
- The sampling result showed that checking many candidates against tests can lift success rates sharply, an idea reused in later evaluations.
Questions
When was GitHub Copilot announced?
What model powers GitHub Copilot?
How does Codex differ from GPT-3?
What is HumanEval?
About this page
Part of our LLM history timeline. The event happened on 29 June 2021; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.