github alexgreensh/token-optimizer v5.2.0
v5.2.0 — Windows support

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

Windows support shipped

Token Optimizer now runs end-to-end on Windows alongside macOS and Linux.

What is new

  • Session Health on Windows. The Health tab, kill-stale, and the session-health CLI all read real process data via tasklist + wmic, with a PowerShell Get-CimInstance fallback for Windows 11 24H2+ where wmic is deprecated. Strict image-name matching (claude.exe / claude-*.exe) keeps kill-stale from ever touching third-party apps that happen to have "claude" in a window title.
  • Cross-platform plugin hooks. Hooks dispatch through a shebang-invoked Python wrapper (hooks/run.py) instead of POSIX shell syntax, so SessionStart, SessionEnd, and every other hook fire correctly in PowerShell, bash, and zsh alike. The SessionEnd chain runs in one sequential process so the trends database is never contended.
  • health-selfcheck CLI. One command, any platform: probes the process-listing tools, the parsers, and the _collect_health_data contract. Paste the output into an issue if anything fails.
  • daemon-status CLI. IPv4 with IPv6 fallback. Replaces the nc-based port probe in the dashboard skills.
  • UNKNOWN_AGE flag. When Windows can't resolve a process start time (locked-down PowerShell, wmic removed), sessions are flagged explicitly rather than silently appearing fresh.

Upgrading from v5.1.0

Claude Code auto-updates the plugin when the version changes. The first SessionStart on Windows after the update prints a one-line migration notice pointing at health-selfcheck.

Compatibility

No changes to the public CLI surface. No changes to the dashboard shape. macOS and Linux behavior is unchanged on the core Session Health path; the only observable difference is Windows now works.

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.