How does github copilot works?

Parth Thakkar, had created an interesting analysis on how github copilot works:
  • In this project, I delved into the internals of Github Copilot. I wrote 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 to intuitively explore the codebase. I wrote a blog post about it that got a little bit popular.
This was brought to attention by Charles Frye, fantastic instructor athttps://github.com/thakkarparth007/copilot-explorer FSDL