Skip to content

Context Goblin 0.2.0 — OpenCode 2 support

Choose a tag to compare

@MelnixDev MelnixDev released this 11 Oct 11:59
· 5 commits to main since this release

Context Goblin 0.2.0 brings repository context caching to OpenCode 2, with continued support for OpenCode 1. Agents can reuse a compact project summary and code map before exploring the files needed for a task.

What's new

  • OpenCode 2 integration: all six Context Goblin tools, cache and usage commands, and local token usage tracking now use the V2 plugin API.
  • Optional terminal UI stats: view cache freshness, size, and coverage in a toast. Stats follow the selected session's project, including when it differs from the UI's startup directory.
  • Safer TUI error handling: an unavailable session or cache error produces a message instead of showing another project's stats or failing the command.
  • Updated setup instructions: the README covers V2 server and TUI configuration, local development, and avoiding duplicate plugin registrations.

Use with OpenCode 2

Add this entry to opencode.json or opencode.jsonc, then restart OpenCode:

{
  "plugins": ["context-goblin@0.2.0"]
}

For the optional TUI stats command, add the same entry to your OpenCode cli.json configuration. See the README for local setup and options.

Verification

Verified with OpenCode 2.0.26: the packaged plugin loads, both server commands register, and all six tools execute. All 90 tests and the release checks passed.

V2 model sessions and interactive TUI behavior still need validation. The existing A/B token savings measurements were collected on OpenCode 1.18.20; V2 performance has not been measured. Tool output compaction remains opt-in, and usage tracking reports OpenCode events rather than provider billing totals.