github alexgreensh/token-optimizer v5.11.93

5 hours ago

Cowork hardening — makes token-optimizer-cowork work properly inside Claude Cowork, grounded in Claude Code docs:

  • Injection: emits the documented hookSpecificOutput.additionalContext envelope in Cowork (was raw text) so TO's continuity/quality text reaches the model.
  • Unified state dir: routes per-session state to the canonical CLAUDE_PLUGIN_DATA dir — ends the duplicate-write and makes the once-per-session guard single-fire.
  • Detection: keys is_cowork() on the documented CLAUDE_CODE_REMOTE signal (with observed fallbacks); shell gate matches.
  • Resolver: finds the synced-plugin path when CLAUDE_PLUGIN_ROOT isn't injected (#24529/#66557).
  • Honest calibration: labels the platform overhead (system prompt, MCP catalog, platform skills) as not measurable from inside Cowork instead of presenting a misleading local-only %. No fabricated numbers.
    All gated on is_cowork(); zero desktop regression. Full suite 1348 passed / 0 failed. Fable-approved.

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.