summaryrefslogtreecommitdiffhomepage
path: root/AGENTS.md
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-09-26 11:41:15 -0500
committerAdam <[email protected]>2025-10-02 08:34:01 -0500
commitcc955098cd8714bcf1cc91e6a4a6625e38710b05 (patch)
tree49adeef653a6705c37b2e06cde1b5066765eeed3 /AGENTS.md
parent8699e896e604762d45df7d4e1b3433e69575e9ab (diff)
downloadopencode-cc955098cd8714bcf1cc91e6a4a6625e38710b05.tar.gz
opencode-cc955098cd8714bcf1cc91e6a4a6625e38710b05.zip
wip: desktop work
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 507cfea53..36a37713b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -14,3 +14,34 @@
## Debugging
- To test opencode in the `packages/opencode` directory you can run `bun dev`
+
+## Tool Calling
+
+- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. Here is an example illustrating how to execute 3 parallel file reads in this chat environnement:
+
+json
+{
+ "recipient_name": "multi_tool_use.parallel",
+ "parameters": {
+ "tool_uses": [
+ {
+ "recipient_name": "functions.read",
+ "parameters": {
+ "filePath": "path/to/file.tsx"
+ }
+ },
+ {
+ "recipient_name": "functions.read",
+ "parameters": {
+ "filePath": "path/to/file.ts"
+ }
+ },
+ {
+ "recipient_name": "functions.read",
+ "parameters": {
+ "filePath": "path/to/file.md"
+ }
+ }
+ ]
+ }
+}