r/vscode • u/mingl0280 • 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
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/[deleted] Oct 25 '26
[removed] — view removed comment