opencode/AGENTS.md

35 lines
607 B
Markdown
Raw Normal View History

## Debugging
- To test opencode in the `packages/opencode` directory you can run `bun dev`
2025-09-27 00:41:15 +08:00
## Tool Calling
- 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
}