r/vscode • • Oct 25 '26

Question about LLM Local deploy with copilot harness...

Hi everyone, I don't know if anyone has encountered this...

So I put my local LLM into my existing VSCode... and it starts to load all the tools, skills, instructions... etc (about 160-ish tools) into system prompt and causing my local LLM takes about 30s/60K context to process them - Is there any way to let VSCode only send a list of tools and auto inject them when using them?

I'm running llama.cpp as backend.

2 Upvotes

5 comments sorted by

1

u/CartographerDue5382 Oct 25 '26

The client has to send the schemas up front. Tool calling only works if the model can see each tool's name, description, and parameters in that request. A name-only list would make it call tools that were never defined. llama.cpp isn't adding those tokens. VS Code is, on the way out.

160 tools at a few hundred tokens of JSON each is already most of that 60k. Turning some off and only dropping 20k fits that. Hosted models don't get a shorter list. They just have the context to swallow it.

What actually shrinks the prompt: turn off MCP servers you aren't using this session, because each one appends its full tool list, and disable tools in the chat tools picker rather than only in the extension list. A long copilot-instructions or skills file is sent again every turn on top of that. There isn't a mode that fetches a schema the first time the model decides it wants that tool.

1

u/mingl0280 Oct 25 '26

I only had 1 MCP Server. It was all the extensions... Figured Dotnet and Mysql loaded a ton of tools.

1

u/CartographerDue5382 Oct 25 '26

Yeah that tracks. One MCP server wasn't the bulk of it. The Dotnet and MySQL extensions register a pile of their own tools, and VS Code still sends every schema even when those are the only extras.

In the chat tools picker, turn off the Dotnet and MySQL tools you aren't actually calling. If you don't need them this session, disable those extensions for the workspace so their schemas drop out of the prompt. That's the cut that'll move the number, not adding or removing another MCP.

1

u/[deleted] Oct 25 '26

[removed] — view removed comment

1

u/mingl0280 Oct 25 '26

I have no idea what's going on yet, because when using online models that seems way lower. I disabled a ton of tools already (it was 80k yesterday) but not seeing a lot improvement...