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.

Milestone 15 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Codex, HumanEval problems solved on one attempt, reported by OpenAI
28.8%arxiv.org
GPT-3 on the same benchmark, reported by OpenAI
0%arxiv.org
Codex with 100 samples per problem, reported by OpenAI
70.2%arxiv.org

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?
GitHub announced Copilot as a technical preview on 29 June 2021, built with OpenAI.
What model powers GitHub Copilot?
The original Copilot was powered by OpenAI Codex, a GPT model fine-tuned on public code. Later versions of the product have used other models.
How does Codex differ from GPT-3?
Codex is a GPT language model fine-tuned on public GitHub code. On HumanEval it solved 28.8% of problems on one attempt, while GPT-3 solved 0%.
What is HumanEval?
It is a benchmark introduced in the Codex paper that checks whether a model can write working Python functions from docstrings, using unit tests to decide.

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.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. GitHub, Introducing GitHub Copilot: your AI pair programmer
  2. Chen et al., Evaluating Large Language Models Trained on Code (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.