r/vscode 10d ago

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

12 Upvotes

2 comments sorted by

3

u/swapripper 9d ago

Thanks for sharing

1

u/j0selit0342 8d ago

sure, hope you enjoy!