[PR #2983] experimental batch tool #10503

Closed
opened 2026-02-16 18:15:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2983

State: closed
Merged: Yes


Summary

This PR adds a new tool to opencode: batch

Explainer

Lately I've been trying to make parallel tool calling work reliably with different models using prompt engineering, but it has shown to be the wrong approach. By simply exposing a batch tool every model I use (gh/gpt-5, gh/sonnet-4.5, zai/glm-4.6) have seen dramatic increase in likely hood of executing parallel tool calling.
I still find myself having to say "use batch" from time to time but overall, it's been great.

Numbers

I haven't actually made legit benchmarks to test the real efficiency gain from this PR, but after using it for a minute, I can see a substantial decrease in average completion time of user requests. This PR is also likely beneficial for provider rate limiting (1 request instead of 3++ over the course of a working day do pile up...)

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2983 **State:** closed **Merged:** Yes --- ## Summary This PR adds a new tool to opencode: `batch` ### Explainer Lately I've been trying to make parallel tool calling work reliably with different models using prompt engineering, but it has shown to be the wrong approach. By simply exposing a `batch` tool every model I use (gh/gpt-5, gh/sonnet-4.5, zai/glm-4.6) have seen dramatic increase in likely hood of executing parallel tool calling. I still find myself having to say "use batch" from time to time but overall, it's been great. ### Numbers I haven't actually made legit benchmarks to test the real efficiency gain from this PR, but after using it for a minute, I can see a substantial decrease in average completion time of user requests. This PR is also likely beneficial for provider rate limiting (1 request instead of 3++ over the course of a working day do pile up...)
yindo added the pull-request label 2026-02-16 18:15:10 -05:00
yindo closed this issue 2026-02-16 18:15:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10503