Skip to content

Releases: JackDrogon/opencode-context-cache

v0.2.0

14 Feb 17:46

Choose a tag to compare

Highlights

  • Clarify that plugin activation requires explicit plugin entry in opencode.jsonc for this setup.
  • Document stronger cache/session stability benefits for AI API relay/gateway deployments.
  • Improve verification and troubleshooting guidance for plugin loading paths.

v0.1.0 - OpenCode Context Cache

14 Feb 17:24

Choose a tag to compare

Highlights

  • Introduces opencode-context-cache as an OpenCode plugin for stable context cache identity across providers.
  • Uses deterministic cache key precedence with SHA256 hashing before sending keys upstream.
  • Applies the same hashed key to promptCacheKey and session headers for sticky routing consistency.
  • Renames plugin artifact to plugins/opencode-context-cache.mjs and unifies debug namespace to OPENCODE_CONTEXT_CACHE_DEBUG.

Practical Result

  • In a real usage sample, input cache hit improved from near zero baseline to 97.99% (164736 / 168112).

Quick Start

mkdir -p .opencode/plugins
cp plugins/opencode-context-cache.mjs .opencode/plugins/opencode-context-cache.mjs
export OPENCODE_CONTEXT_CACHE_DEBUG=1

Documentation

  • Setup and usage: README.md
  • License: LICENSE (MIT)