Skip to content

Releases: omarwaly-ai/OpenCode-tokens-source

Release list

V 1.2.0

Choose a tag to compare

@omarwaly-ai omarwaly-ai released this 25 Jun 07:51
9a4c792

Fixed

  • Per-tool token estimates no longer inflated by 6x due to Effect Schema AST bloat
  • No more crash on /tokens command in attach mode
  • Cache-read tokens now included in the API actual input count
  • Plugin export format corrected to match opencode 1.17.10 requirements
  • Dead fetch wrapper removed — was never triggering in standalone mode

Improved

  • Tools section shows "(from API body)" when captured live, "(registered)" as fallback
  • Real JSON schemas captured from the actual API request body
  • System prompt parsed into named sections: base, environment, skills, instructions, structured output
  • Messages grouped by role and part type for clearer breakdown
  • Estimated total compared against API actual with diff shown
  • Session-level totals shown: input, output, reasoning, turns

New

  • Captures the real tools array sent to the LLM, reflecting any modifications by other plugins
  • Effect Schema converted to real JSON Schema for accurate size estimation

Minimum Version

  • Requires opencode 1.17.10 or later

V 1.0.0

Choose a tag to compare

@omarwaly-ai omarwaly-ai released this 19 Jun 08:49
04d22d0