ArticleslgStudy

computer science

GitHub Copilot

GitHub Copilot is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GitHub Copilot rather than just read about it. In short: GitHub Copilot is a code completion and programming AI-assistant developed by GitHub and OpenAI that assists users of Visual Studio Code, Visual Studio, Neovim, Eclipse and JetBrains integrated development environments (IDEs) by autocompleting code. Currently available by subscription to individual developers and to businesses, the generative AI software was first announced by GitHub on 29 June 2021.

GitHub Copilot — main illustration
GitHub Copilot — illustration

Key takeaways

  • GitHub Copilot belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GitHub Copilot to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GitHub Copilot from memory before moving on to harder problems.

Reference excerpt

GitHub Copilot is a code completion and programming AI-assistant developed by GitHub and OpenAI that assists users of Visual Studio Code, Visual Studio, Neovim, Eclipse and JetBrains integrated development environments (IDEs) by autocompleting code. Currently available by subscription to individual developers and to businesses, the generative AI software was first announced by GitHub on 29 June 2021. Users can choose the large language model used for generation.

History On June 29, 2021, GitHub announced GitHub Copilot for technical preview in the Visual Studio Code development environment. GitHub Copilot was released as a plugin on the JetBrains marketplace on October 29, 2021. October 27, 2021, GitHub released the GitHub Copilot Neovim plugin as a public repository. GitHub announced Copilot's availability for the Visual Studio 2022 IDE on March 29, 2022. On June 21, 2022, GitHub announced that Copilot was out of "technical preview", and is available as a subscription-based service for individual developers. GitHub Copilot is the evolution of the "Bing Code Search" plugin for Visual Studio 2013, which was a Microsoft Research project released in February 2014. This plugin integrated with various sources, including MSDN and Stack Overflow, to provide high-quality contextually relevant code snippets in response to natural language queries.

Features

When provided with a programming problem in natural language, Copilot is capable of generating solution code. It is also able to describe input code in English and translate code between programming languages. Copilot enables developers to choose between multiple large language models (LLMs), including OpenAI's GPT models, Anthropic's Claude, xAI's Grok, and Google's Gemini. According to its website, GitHub Copilot includes assistive features for programmers, such as the conversion of code comments to runnable code, and autocomplete for chunks of code, repetitive sections of code, and entire methods and/or functions. GitHub reports that Copilot's autocomplete feature is accurate roughly half of the time; with some Python function header code, for example, Copilot correctly autocompleted the rest of the function body code 43% of the time on the first try and 57% of the time after ten attempts. GitHub states that Copilot's features allow programmers to navigate unfamiliar coding frameworks and languages by reducing the amount of time users spend reading documentation.

Implementation GitHub Copilot was initially powered by the OpenAI Codex, which is a modified, production version of GPT-3. The Codex model is additionally trained on gigabytes of source code in a dozen programming languages. Copilot's OpenAI Codex was trained on a selection of the English language, public GitHub repositories, and other publicly available source code. This includes a filtered dataset of 159 gigabytes of Python code sourced from 54 million public GitHub repositories. OpenAI's GPT-3 is licensed exclusively to Microsoft, GitHub's parent company. In November 2023, Copilot Chat was updated to use OpenAI's GPT-4 model. In 2024, Copilot began allowing users to choose between different large language models, including Gemini and Claude. On 6 February 2025, GitHub announced "agent mode", which is a more autonomous mode of operation for the Copilot. Given a programming task, it attempts to accomplish it by executing commands on a Visual Studio instance on the user's computer. The agent mode can connect to different LLMs, including GPT-4o, o1, o3-mini, Claude 3.5 Sonnet, and Gemini 2.0 Flash. On 17 May 2025, GitHub announced "coding agent", which is a more autonomous mode of operation for the Copilot. The user would assign a task or issue to Copilot, which would then initialize a development environment in the cloud (powered by GitHub Actions) and perform the request. It would compose a draft pull request and pushes commits to the draft as it works. After accomplishing the request, it tags the user for code review. It is essentially an asynchronous version of agent mode.

Reception Since Copilot's release, there have been concerns with its security and educational impact, as well as licensing controversy surrounding the code it produces.

Licensing controversy While GitHub CEO Nat Friedman stated in June 2021 that "training ML systems on public data is fair use", a class-action lawsuit filed in November 2022 called this "pure speculation", asserting that "no Court has considered the question of whether 'training ML systems on public data is fair use.'" The lawsuit from Joseph Saveri Law Firm, LLP challenges the legality of Copilot on several claims, ranging from breach of contract with GitHub's users, to breach of privacy under the CCPA for sharing PII. GitHub admits that a small proportion of the tool's output may be copied verbatim, which has led to fears that the output code is insufficiently transformative to be classified as fair use and may infringe on the copyright of the original owner. In June 2022, the Software Freedom Conservancy announced it would end all uses of GitHub in its own projects, accusing Copilot of ignoring code licenses used in training data. In a customer-support message, GitHub stated that "training machine learning models on publicly available data is considered fair use across the machine learning community", but the class action lawsuit called this "false" and additionally noted that "regardless of this concept's level of acceptance in 'the machine learning community,' under Federal law, it is illegal".

Privacy concerns The Copilot service is cloud-based and requires continuous communication with the GitHub Copilot servers. This opaque architecture has fueled concerns over telemetry and data mining of individual keystrokes. In late 2022 GitHub Copilot has been accused of emitting Quake game source code, with no author attribution or license.

See also ChatGPT Tabnine Devstral Cursor (code editor) Devin AI Generative AI List of AI-assisted software development tools List of chatbots Microsoft Copilot Code completion Vibe coding

References

External links Official website

Worked examples

Example 1 — a first encounter with GitHub Copilot

Start with the simplest possible case. Write down what GitHub Copilot claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GitHub Copilot before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GitHub Copilot ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GitHub Copilot

In research
GitHub Copilot appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GitHub Copilot in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GitHub Copilot is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2021 in artificial intelligence, 2021 software, Applications of artificial intelligence, so understanding it makes those chapters shorter.
In everyday life
Look for GitHub Copilot outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study GitHub Copilot in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GitHub Copilot means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GitHub Copilot out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GitHub Copilot in simple terms?

GitHub Copilot is a code completion and programming AI-assistant developed by GitHub and OpenAI that assists users of Visual Studio Code, Visual Studio, Neovim, Eclipse and JetBrains integrated development environments (IDEs) by autocompleting code. Currently available by subscription to individual…

Why does GitHub Copilot matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GitHub Copilot?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GitHub Copilot.

Tags

  • 2021 in artificial intelligence
  • 2021 software
  • Applications of artificial intelligence
  • GitHub
  • OpenAI

Keep exploring