thakkarparth007 / copilot-explorer

Hacky repo to see what the Copilot extension sends to the server
https://twitter.com/parth007_96/status/1604160949434421248
596 stars 68 forks source link

Integrate with Codex or some other service for code explanation #2

Open thakkarparth007 opened 1 year ago

thakkarparth007 commented 1 year ago

Some methods are rather hard to understand without spending some time (especially because my deobfuscation only handles a few kinds of obfuscation patterns).

Would be great to select a piece of code, and the interface queries codex for its explanation.

thakkarparth007 commented 1 year ago

This exists but probably needs some prompt engineering to make it work better. To use this, select some snippet in the code view, right click, "Describe this snippet". But this requires you to set up the tool locally, because the browser will send a request to localhost:5000 (the python app).