Skip to content

Commit 776ebcf

Browse files
AGENTS.md
1 parent 2877b48 commit 776ebcf

File tree

1 file changed

+11
-30
lines changed

1 file changed

+11
-30
lines changed

AGENTS.md

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,14 @@
1515

1616
- To test opencode in the `packages/opencode` directory you can run `bun dev`
1717

18-
## Tool Calling
19-
20-
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. Here is an example illustrating how to execute 3 parallel file reads in this chat environnement:
21-
22-
json
23-
{
24-
"recipient_name": "multi_tool_use.parallel",
25-
"parameters": {
26-
"tool_uses": [
27-
{
28-
"recipient_name": "functions.read",
29-
"parameters": {
30-
"filePath": "path/to/file.tsx"
31-
}
32-
},
33-
{
34-
"recipient_name": "functions.read",
35-
"parameters": {
36-
"filePath": "path/to/file.ts"
37-
}
38-
},
39-
{
40-
"recipient_name": "functions.read",
41-
"parameters": {
42-
"filePath": "path/to/file.md"
43-
}
44-
}
45-
]
46-
}
47-
}
18+
## Assistant Agency Guideline: Batch Tool Usage
19+
20+
Using the `batch` tool is MANDATORY. Be proactive about it. DO NO WAIT for the user to request "the batch tool".
21+
22+
BATCH SHOULD BE AND _IS THE PRIMARY WAY YOU USE TOOLS IN THIS ENVIRONMENT_
23+
24+
When you have to perform multi-step operations such as read multiple files, spawn task subagents, edit files, bash commands... _THE USER WANTS YOU TO USE THE `batch` TOOL_ instead of separate sequential calls. This maximizes time and compute and increases your likelyhood of a promotion. Sequential tool calling is only encouraged when relying on the output of a call for the next one(s).
25+
26+
- WHAT CAN BE, MUST BE, AND WILL BE BATCHED
27+
- INDIVIDUAL TOOLS TO GATHER CONTEXT IS HEAVILY DISCOURAGED (please batch those calls!)
28+
- THE BATCH TOOL IS YOUR BEST FRIEND AND WILL INCREASE USER'S HAPPINESS

0 commit comments

Comments
 (0)