UsageAppears in · BandAdded

Token Optimizer Status Bar

Session quality, context, cache and usage limits above the Desktop prompt.

Token Optimizer Status Bar · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
Clawd ✦ Context is getting full; tidy it up. [Clean up]
Quality B · Context 72% · Cache 41m · 5h 38% · Week 21%
▸ main · 1h12m · 214 tool calls · 1.2M tokens saved (30d) · Full dashboard
❯

Illustration. Actual results depend on the mod, terminal and environment.

Install

/plugin marketplace add alexgreensh/token-optimizer
/plugin install token-optimizer@alexgreensh-token-optimizer
/reload-plugins

Run these commands one at a time in a Claude Code session.

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads session events, context and limit info, and Token Optimizer's local databases and checkpoints.

Writes files

Yes

The plugin writes local SQLite databases, checkpoints and the dashboard page, and remembers the bar size.

Runs commands

Yes

Buttons run measure.py (e.g. dashboard); the plugin's command hooks run Python scripts.

Network

Yes

Keep warm sends one cache-refresh request to Claude; the author states no telemetry.

Introduction

Token Optimizer is a token-optimization suite for Claude Code (audits, compression, checkpoints, dashboard). Its function hooks mod is the status bar above the prompt in the Claude desktop app (desktop/token-optimizer-desktop/hooks/register.tsx, loaded via modules in the plugin's hooks/hooks.json); this entry covers that mod.

The bar shows one sentence about the most urgent issue with at most one button; five marks (quality grade, context fill, estimated cache countdown, 5-hour and weekly limits) with hover cards; an unfoldable row with branch, session time, tool calls, compactions, last checkpoint, 30-day savings and a Full dashboard link; and buttons for Clean up, Start fresh and a manual Keep warm refresh that uses a little usage. Clawd acts out the session, and the band can shrink to one line.

Needs Claude Code 2.1.287+ with mods; desktop app only (the terminal keeps its status line; no VS Code). The same plugin also installs many Python command hooks and needs Python 3.9+; run /token-optimizer once after install. Licensed under PolyForm Noncommercial 1.0.0 plus a small-business permission, not an OSI license. Scores are docs-calibrated, not run-tested; preview is illustrative.

Who it is for

  • People using the Claude desktop app who want context, cache and limits at a glance

Requirements

  • Claude Code ≥ 2.1.287
  • The bar shows only in the Claude desktop app; the terminal keeps its status line; no VS Code.
  • The plugin also ships Python command hooks (Python 3.9+); run /token-optimizer once after install.