Complete toolkit for configuring and extending OpenCode: agent creation, custom slash commands, configuration management, plugin development, and SDK usage.
75
94%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
A developer wants to create a tool that runs a long-running Python analysis script on a file. The tool should:
file argumentpython3 analyze.py <file>Implement the tool with proper abort signal handling.
abort from the context parameter in the execute functionabort.aborted early to short-circuit, or pass { signal: abort } to the shell command to propagate cancellationexecute function (using .text() or equivalent), not an object.describe() call to the file argument schematool from @opencode-ai/plugin and structure the tool with a description and argsabort from the context parameter in executeabort.aborted early or passes { signal: abort } to the shell command.text() or equivalent), not an objectfile argument has a .describe() calltool from @opencode-ai/plugin with proper description and argsexecute.describe() from the file argument@opencode-ai/sdk)