---
title: Codex and GitHub Copilot (2021): AI code suggestions arrive
url: https://llmsranked.com/history/codex-and-github-copilot/
updated: 2026-11-20
---

Product· [Scaling up](https://llmsranked.com/history/#era-scale)

# Codex and GitHub Copilot (2021): AI code suggestions arrive

Event date 29 June 2021

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.

- [OpenAI and GitHub](https://llmsranked.com/providers/openai/)
- [LLMs Ranked editors](https://llmsranked.com/editorial-policy/)
- Published 20 Nov 2026
- 2 min read
- 2 sources

2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026

2021

On this page

- [Key numbers](#kn-h)
- [What was announced](#what-was-announced)
- [The model behind it](#the-model-behind-it)
- [Results and limits](#results-and-limits)
- [Why it mattered](#wm-h)
- [Questions](#hf-h)
- [On the timeline](#tl-h)
- [Sources](#hsrc-h)

## Key numbers

**Codex, HumanEval problems solved on one attempt, reported by OpenAI**
28.8%[arxiv.org](https://arxiv.org/abs/2107.03374)

**GPT-3 on the same benchmark, reported by OpenAI**
0%[arxiv.org](https://arxiv.org/abs/2107.03374)

**Codex with 100 samples per problem, reported by OpenAI**
70.2%[arxiv.org](https://arxiv.org/abs/2107.03374)

## 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](https://github.blog/news-insights/product-news/introducing-github-copilot-ai-pair-programmer/)

## 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](https://arxiv.org/abs/2107.03374)

## 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](https://arxiv.org/abs/2107.03374)

## 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](https://llmsranked.com/history/). 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](https://llmsranked.com/editorial-policy/). Found an error? [Tell us](https://llmsranked.com/contact/) and we will correct it with a dated note.

## On the timeline

[Earlier17 Jun 2021
LoRA (2021): fine-tuning with small low-rank matrices](https://llmsranked.com/history/lora/)[Later27 Jan 2022
InstructGPT (2022): training GPT-3 with human feedback](https://llmsranked.com/history/instructgpt/)

### Related milestones

- [2020 · 05GPT-3 (2020): a 175 billion parameter few-shot learner](https://llmsranked.com/history/gpt-3/)
- [2022 · 01InstructGPT (2022): training GPT-3 with human feedback](https://llmsranked.com/history/instructgpt/)
- [2022 · 11ChatGPT (2022): the chatbot that reached the mainstream](https://llmsranked.com/history/chatgpt/)
- [2023 · 03GPT-4 (2023): OpenAI's multimodal model and technical report](https://llmsranked.com/history/gpt-4/)

## Terms and labs

- [HumanEval](https://llmsranked.com/glossary/#humaneval)
- [Fine-tuning](https://llmsranked.com/glossary/#fine-tuning)
- [Pass@k](https://llmsranked.com/glossary/#pass-k)
- [Coding agent](https://llmsranked.com/glossary/#coding-agent)
- [OpenAI models](https://llmsranked.com/providers/openai/)

## Sources

Papers and announcements we read for this page.

- [GitHub, Introducing GitHub Copilot: your AI pair programmer](https://github.blog/news-insights/product-news/introducing-github-copilot-ai-pair-programmer/)
- [Chen et al., Evaluating Large Language Models Trained on Code (arXiv)](https://arxiv.org/abs/2107.03374)
