2025-09-01 17:15:49 -04:00
|
|
|
## Debugging
|
|
|
|
|
|
|
|
|
|
- To test opencode in the `packages/opencode` directory you can run `bun dev`
|
2025-09-26 11:41:15 -05:00
|
|
|
|
|
|
|
|
## Tool Calling
|
|
|
|
|
|
2025-11-02 10:56:40 -05: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-26 11:41:15 -05:00
|
|
|
|
|
|
|
|
json
|
|
|
|
|
{
|
2025-11-06 13:03:02 -05: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-26 11:41:15 -05:00
|
|
|
}
|