github alexgreensh/token-optimizer v5.11.0
v5.11.0 — GitHub Copilot support (beta)

pre-release7 hours ago

GitHub Copilot support (beta)

Token Optimizer now works on GitHub Copilot — both the CLI and VS Code — making it the 6th supported platform.

Copilot bills in AI Credits, and nothing in the product answers "what is this session costing me." This release does, using Copilot's own cost figures — per-request copilotUsageNanoAiu in VS Code, premium-request totals on the CLI — never a re-derived pricing table.

What you get

  • Credits-led cost + token tracking per session (today / month / all-time), per-model totals
  • Context-quality scoring (S–F) with a Copilot-correct context-window table
  • Capability-gated CLI hooks — bash output compression and session-start continuity restore that activate only when your installed Copilot CLI version supports the hook field they need, and auto-activate as upstream support lands
  • Crash recovery for sessions that end without a clean shutdown, flagged honestly as estimated
  • Shared dashboard + savings engine, plus a VS Code runtime switch (tokenOptimizer.runtime)

Install

git clone https://github.com/alexgreensh/token-optimizer.git
token-optimizer/install.sh --copilot

Verify with copilot-doctor. Full docs: copilot/README.md and docs/copilot.md.

Beta notes

Copilot CLI ships weekly and its hook fields change between releases, so every engine feature is gated on a per-version capability map. Two read-interception savers (Delta Mode / Structure Map) wait on an upstream hook field that's currently broken; the docs track the honest feature-by-feature status. The CLI and VS Code surfaces are kept as separate session populations.

Claude Code, Codex, OpenCode, OpenClaw, and Hermes support is unchanged.

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.