opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Implement virtual tools feature to allow GitHub Copilot models to run with more than 128 tools

Open thesobercoder opened this issue 5 months ago • 3 comments

Currently, GitHub Copilot models are restricted to a maximum of 128 tools configured. If you have more than 128 tools configured in OpenCode, then the API calls fail. To overcome this limitation, the VSCode team implemented a virtual tool concept that automatically activates them on demand. This is a proposal to implement something similar in OpenCode so that configuring more than 128 tools in OpenCode with GitHub Copilot does not fail with an API call.

Reference from VSCode Team -

  • https://www.youtube.com/watch?v=qHl_KBUyid0
  • https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_agent-mode-tools

thesobercoder avatar Sep 09 '25 09:09 thesobercoder

Facing this issue as well:

#4909


Is there a fix planned or a work around available?

EDIT: check this: https://github.com/sst/opencode/issues/4909#issuecomment-3591911277

itse4elhaam avatar Nov 29 '25 20:11 itse4elhaam

This isn't a super high priority for us currently but we will prolly have something for that eventually.

I suppose for the time being we can implement some warning or error toast specifically for copilot

rekram1-node avatar Nov 29 '25 20:11 rekram1-node

This feature will really help if you can add a virtual tool for copilot!!

shivsant avatar Jan 01 '26 04:01 shivsant