opencode-gadgets
v0.1.0
Published
Turn repeatable agent work into reusable OpenCode plugin tools.
Maintainers
Readme
OpenCode Gadgets
Kinda like gadgets from Cloudflare's new Cloudflare OS, but they're just Opencode plugins. Take advantage of the sick new hot-reloading capabilities and new tool search feature.
Gadgets
Tired of waiting for agents to figure out how to use the same MCPs together over and over again? Tired of having to re-write the same prompt over and over again but can't be bothered to write a skill file? Like something an agent just did? Want future agents to do the same thing deterministically without re-inventing the process from first principles?
Just invoke the /opencode-gadgets skill. The agent will create a plugin and expose a new tool that reproduces that exact behavior, deterministically, for future agents to discover.
Blueprints
Made a cool looking dashboard for a throwaway HTML document? Want other throwaway documents to look just like it?
The agent will automatically identify parts that can be extracted as a blueprint, and be used in other gadgets.
This plugin includes:
- The OpenCode Gadgets skill
opencode_gadgets.create_opencode_plugin, which creates an OpenCode plugin in the current project or the global OpenCode config
Install
Install from npm:
bun add opencode-gadgetsAdd it to plugins in opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["opencode-gadgets"],
}Verify it with:
opencode2 api get /api/pluginDevelopment
bun install
bun run typecheck
bun test