When Copilot uses an MCP tool, every result gets pasted into context. Ask something that touches 30 PRs and that's 30 turns of the model reading JSON it mostly ignores.
Code mode changes that. The model writes one short script, the script calls the tools in a sandbox and filters the data there, and only the answer comes back. Cloudflare and Claude Code both ship it now. Copilot doesn't, so I made a plugin.
copilot plugin marketplace add zekariasasaminew/copilot-codemode
copilot plugin install copilot-codemode@copilot-codemode
What it did:
- One real MCP-only question on Opus 5.5: 321 → 77 credits, 817s → 196s
- Benchmarked on 14 model configs: 66 to 91% cheaper on the heaviest task, more correct answers (115/116 vs 107/116)
- My own usage across two laptops: 92% less tool output reaching the model (~2.25M tokens down to ~184K). On plain day-to-day work, without benchmark-style prompts, it's closer to 74%
Does it bypass permissions? No. Every tool call inside the script still goes through Copilot's deny rules, hooks and approval prompts.
When it won't help: if gh or another CLI can answer in one command, the model uses that and nothing changes. It helps with fan-outs over MCP-only data: Jira, databases, internal servers.
Repo, benchmarks and how it works: https://github.com/zekariasasaminew/copilot-codemode
Tested on Windows only so far. If you try it on Mac or Linux, or with a non-GitHub MCP server, I'd love your numbers.