2025-09-02 05:15:49 +08:00
|
|
|
## Debugging
|
|
|
|
|
|
|
|
|
|
- To test opencode in the `packages/opencode` directory you can run `bun dev`
|
2025-09-27 00:41:15 +08:00
|
|
|
|
|
|
|
|
## Tool Calling
|
|
|
|
|
|
2025-11-02 23:56:40 +08:00
|
|
|
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. Here is an example illustrating how to execute 3 parallel file reads in this chat environment:
|
2025-09-27 00:41:15 +08:00
|
|
|
|
|
|
|
|
json
|
|
|
|
|
{
|
2025-11-07 02:03:02 +08:00
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2025-09-27 00:41:15 +08:00
|
|
|
}
|