github alexgreensh/token-optimizer v5.3.3
v5.3.3 — Dashboard consent + identity probe

latest releases: v5.8.3, v5.8.2, v5.8.1...
one month ago

Bookmarkable dashboard URL is now the default

Every /token-optimizer user on macOS and Windows gets asked once whether to install the bookmarkable URL. The answer is remembered forever. URL-first ordering means the dashboard output leads with the URL when it's live, and falls back to the local file path only when it isn't.

What is new

  • daemon-consent CLI. measure.py daemon-consent --get prints the stored consent JSON (or {}). --set yes|no|unset writes atomically via tempfile + rename so a mid-write crash can't leave partial JSON. --get validates the stored value as a JSON object and falls back to {} on any corruption.
  • Identity probe. The daemon serves a /__to_ping endpoint that returns a magic string. daemon-status GETs it and requires an exact match. A foreign service on port 24842 now reports as DAEMON_FOREIGN instead of being mistaken for ours, so the skill routes to remediation rather than silently advertising someone else's web server.
  • SKILL.md 2×2 truth table over (daemon state, consent state) so Claude always picks one explicit path. Consent is written before setup-daemon so a mid-install crash can't leave a running daemon the user said no to.
  • macOS upgrade safety. The installer now reclaims port 24842 from orphaned daemon processes running our own script before calling launchctl bootstrap. Upgrading from v5.2.x / v5.3.2 to v5.3.3 is clean.

Migration

  • macOS users with an existing daemon: update the plugin (/plugin update token-optimizer), then run python3 $MEASURE_PY setup-daemon once to install the new daemon script (the old script lacks the identity endpoint). v5.3.3's port-reclaim logic handles the transition.
  • Windows users who ran setup-daemon on v5.3.2: same — re-run setup-daemon once to refresh.
  • Never installed the daemon: first /token-optimizer run asks once. Default is yes.

Linux

Still stubbed. systemd --user daemon ships in v5.3.4.

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.