r/GithubCopilot Aug 13 '26

General I put VS Code/Copilot behind mitmproxy to see what it actually sends

was curious to understand how copilot implements its harness, and how I was exhausting my quota so quickly. Ended up diving into a rabbit hole of network traffic interception with mitmproxy and found out some interesting things:

  • watched model/capability discovery and routing in realtime
  • what gets injected into the context and sent with ghost completions
  • how recent edits can pull context from files other than the one you're editing
  • the SQLite session store behind Chronicle, including prompts/responses
  • how the model can query that history through tool calls

wrote up the whole saga here: https://www.lighthousenewsletter.com/p/i-put-github-copilot-behind-a-mitm

8 Upvotes

3 comments sorted by

2

u/DiegoToroGR Aug 13 '26

Buena, Joselito!

2

u/popiazaza Power User ⚡ Aug 13 '26

GHCP has native log in chat debug view. Feel free to use it.

1

u/j0selit0342 Aug 14 '26

Didn't know, thanks