Repository navigation
@mark_future_ai/opencode-buddy v1.0.0
@mark_future_ai/opencode-buddy v1.0.0
What's in this release
opencode-buddy now uses the OpenCode 2 plugin API (@opencode/plugin 2.2.6+). The buddy renders in the same sidebar slot and every existing buddy state file keeps working, but the plugin implementation is a full port: V1 plugin functions no longer run in OpenCode 2, so this release drops OpenCode 1 support.
Breaking changes
- Requires OpenCode 2.2.6+, including OpenCode Desktop 2.2.6+.
- The plugin is registered under
pluginsin~/.config/opencode/opencode.json. The oldtui.jsonentry and the V1pluginkey are no longer used. npm install -g @mark_future_ai/opencode-buddystill registers the plugin automatically. Upgrading users should remove the oldpluginentry fromopencode.jsonand the entry fromtui.json.- Node 18+ is unchanged.
Migration details
- Server part:
buddytool registered throughctx.tool.transformwith a JSON Schema input and structured{ content }results. - TUI part:
Plugin.define+setup(context); sidebar claim moved to thesidebar.contentslot; slash commands moved tocontext.keymap.layer; rename/switch dialogs use the promise-basedui.dialogAPI; theme colors use the V2 semantic tokens. - Events: subscriptions moved to the V2 event stream —
session.execution.started/succeeded/failed,session.tool.input.started/success/failed,session.shell.ended,session.compaction.ended,permission.replied,filesystem.changed, andvcs.branch.updated. - Todo xp removed: OpenCode 2 no longer emits the todo event the V1 plugin used (+5 xp per completed todo). All other xp and reward sources are unchanged.
- Cleanup: timers and event subscriptions are released through the cleanup function returned by
setup.
Fix
- A truncated or corrupt session file no longer breaks every buddy action. The bad file is renamed to
<id>.json.corruptand the session starts with a fresh buddy.
Install
npm install -g @mark_future_ai/opencode-buddyThe buddy appears in the sidebar on the next OpenCode start.