The open source coding agent.
TypeScript
fix(batch): update batch tool definition to outline correct value for max tool calls (#9517)
James Meng36f5ba52e9c7
diff --git a/packages/opencode/src/tool/batch.txt b/packages/opencode/src/tool/batch.txtindex 565eb4dd433..968a6c3f07c 100644--- a/packages/opencode/src/tool/batch.txt+++ b/packages/opencode/src/tool/batch.txt@@ -6,7 +6,7 @@ Payload Format (JSON array):[{"tool": "read", "parameters": {"filePath": "src/index.ts", "limit": 350}},{"tool": "grep", "parameters": {"pattern": "Session\\.updatePart", "include": "src/**/*.ts"}},{"tool": "bash", "parameters": {"command": "git status", "description": "Shows working tree status"}}]Notes:-- 1–20 tool calls per batch+- 1–25 tool calls per batch- All calls start in parallel; ordering NOT guaranteed- Partial failures do not stop other tool calls- Do NOT use the batch tool within another batch tool.