token-dashboard
Open the Token Optimizer dashboard in your browser (context usage, quality, savings). Use to view the dashboard.
By alexgreensh · 369 installs
npx skills add alexgreensh/token-optimizer --skill token-dashboard
Source repository · Upstream listing
Token Optimizer Dashboard
Opens an up to date dashboard showing your context usage trends, quality scores, session history, and skill management.
Instructions
1. Resolve runtime and measure.py path :
2. Collect and open :
This collects the latest session data into the trends database, regenerates the dashboard HTML, and opens it in your default browser.
3. Tell the user the dashboard is open. Probe the daemon BEFORE mentioning any URL (v5.3.3+):
Probe daemon: python3 "$MEASURE PY" daemon status 2 /dev/null
If DAEMON RUNNING: lead with URL: http://localhost:24842/token optimizer (bookmarkable, auto updates), then mention the file fallback.
If DAEMON NOT RUNNING: do NOT print the localhost:24842 URL. Tell the user the dashboard opened as a file, and suggest python3 $MEASURE PY setup daemon (macOS and Windows) if they want a bookmarkable URL.
File path: never hardcode it. It is install dependent. Cite the Dashboard: line from the step 2 output.
For Codex when DAEMON NOT RUNNING: do not imply the Claude daemon is required; the generated file works, and Stop hooks refresh it when balanced hooks are installed.