# How does github copilot works?

Parth Thakkar, had created an interesting analysis on how github copilot works:

{% embed url="<https://thakkarparth007.github.io/copilot-explorer/posts/copilot-internals.html>" %}

* [Copilot Explorer](https://thakkarparth007.github.io/copilot-explorer) (2022)

  &#x20;In this project, I delved into the internals of Github Copilot. I [wrote](https://github.com/thakkarparth007/copilot-inspector) a tool to decompile Copilot's VSCode extension, and identified key insights regarding prompt construction logic, post processing of model's output and telemetry collection (*after sifting through over 400 obfuscated modules!*). I also built a [code browser](https://thakkarparth007.github.io/copilot-explorer/codeviz/templates/code-viz.html) to intuitively explore the codebase. I wrote a [blog post](https://thakkarparth007.github.io/copilot-explorer/posts/copilot-internals) about it that got a [little](https://twitter.com/karpathy/status/1608895189078380544) [bit](https://twitter.com/parth007_96/status/1604160949434421248) [popular](https://news.ycombinator.com/item?id=34032872).

{% embed url="<https://github.com/thakkarparth007/copilot-explorer>" %}

This was brought to attention by Charles Frye, fantastic instructor at<https://github.com/thakkarparth007/copilot-explorer> FSDL

{% embed url="<https://twitter.com/charles_irl/status/1633873928967032832>" %}

{% embed url="<https://twitter.com/simonw/status/1633830742966030351>" %}

{% embed url="<https://twitter.com/kurianbenoy2/status/1634061279064383489>" %}
