github alexgreensh/token-optimizer v3.5.2
v3.5.2: First-run auto-update nudge for marketplace users

latest releases: v5.7.0, v5.6.13, v5.6.12...
one month ago

First-run reminder to enable marketplace auto-update

Claude Code ships third-party marketplaces with autoUpdate=false by default, and plugin authors cannot change that default — there is no field in plugin.json or marketplace.json for it. Only Anthropic's official marketplace gets auto-update flipped on at registration.

Practical consequence: marketplace-installed Token Optimizer users never received bug fixes automatically unless they happened to toggle the flag in /plugin → Marketplaces tab, which almost nobody discovers. v3.5.1 shipped a real fix yesterday and it was about to sit on GitHub while everyone stayed on v3.5.0.

v3.5.2 closes as much of that gap as a plugin can close from inside.

What's new

One-time SessionStart nudge in ensure-health walks marketplace-installed users through enabling auto-update:

[Token Optimizer] First-run tip: enable auto-update for this marketplace
so you get bug fixes automatically. In Claude Code:

    /plugin  ->  Marketplaces  ->  alexgreensh-token-optimizer
             ->  Enable auto-update

Third-party marketplaces ship with auto-update off by default in
Claude Code. This is not our choice. This message will not show again.

Shown exactly once per user, tracked via a new autoupdate_nudge_shown flag in ~/.claude/token-optimizer/config.json. Respects the existing quality_bar_disabled opt-out (users who uninstalled don't get pestered). Skipped entirely for script-install and dev-symlink users who already get updates through the daily git pull --ff-only.

Bold README callout right after the install block explains the default and walks new users through enabling auto-update as part of the install ritual.

What v3.5.2 does NOT do

  • Does not silently force-enable auto-update. That flag lives in Claude Code's internal state, not in any user-visible config file — and even if we wrote to it, silently overriding a user's update-policy setting would damage trust in the plugin fleet. The nudge respects consent.
  • Does not address the platform-level root cause. A proper fix needs a feature request to Anthropic for a plugin-author-settable autoUpdate field in marketplace.json.

Verified locally

Four-scenario test harness against the real ensure-health code path with sandboxed plugin-cache and script-install layouts. All four pass: first-run fires + sets flag, second-run silent, opted-out silent, script install silent.

Upgrade

Marketplace users currently on 3.5.0 or earlier: the reason this exact PR exists is that you probably don't have auto-update enabled. In Claude Code: /plugin → Marketplaces → alexgreensh-token-optimizerUpdate marketplace listings (one-shot pull) or Enable auto-update (persistent). Then /reload-plugins.

Script install users: next daily git pull --ff-only picks it up automatically.

Full changelog: v3.5.1...v3.5.2

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.