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

Open
opened 2026-02-16 17:32:03 -05:00 by yindo · 3 comments
Owner

Originally created by @thesobercoder on GitHub (Sep 9, 2025).

Originally assigned to: @thdxr on GitHub.

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 -

Originally created by @thesobercoder on GitHub (Sep 9, 2025). Originally assigned to: @thdxr on GitHub. 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
Author
Owner

@itse4elhaam commented on GitHub (Nov 29, 2025):

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 commented on GitHub (Nov 29, 2025): 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
Author
Owner

@rekram1-node commented on GitHub (Nov 29, 2025):

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 commented on GitHub (Nov 29, 2025): 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
Author
Owner

@shivsant commented on GitHub (Dec 31, 2025):

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

@shivsant commented on GitHub (Dec 31, 2025): This feature will really help if you can add a virtual tool for copilot!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1663