← ClaudeAtlas

token-dashboardlisted

Open the Token Optimizer dashboard in your browser (context usage, quality, savings). Use to view the dashboard.
alexgreensh/token-optimizer · ★ 2,973 · AI & Automation · score 86
Install: claude install-skill alexgreensh/token-optimizer
# 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**: ```bash RUNTIME="${TOKEN_OPTIMIZER_RUNTIME:-}" if [ -z "$RUNTIME" ]; then if [ -n "$CLAUDE_PLUGIN_ROOT" ] || [ -n "$CLAUDE_PLUGIN_DATA" ]; then RUNTIME="claude" elif [ -n "$OPENCODE" ] || [ -n "$OPENCODE_BIN" ] || [ -n "$OPENCODE_CONFIG_DIR" ] || [ -n "$OPENCODE_CONFIG" ]; then RUNTIME="opencode" elif [ -n "$CODEX_HOME" ]; then RUNTIME="codex" elif [ -n "$CLAUDECODE" ] || [ -n "$CLAUDE_CODE_ENTRYPOINT" ] || [ -n "$CLAUDE_CODE_SESSION_ID" ]; then RUNTIME="claude" elif [ -d "$HOME/.config/opencode" ] && [ ! -d "$HOME/.codex" ]; then RUNTIME="opencode" elif [ -d "$HOME/.codex" ]; then RUNTIME="codex" else RUNTIME="claude" fi fi # Resolve measure.py to the NEWEST installed copy across channels so a stale # plugin-cache copy never shadows a fresh install (issue #57). find -L follows the # install.sh symlink under ~/.claude/skills; cd -P resolves it before reading each # copy's plugin.json for its version. find (not bare globs) never errors under zsh. MEASURE_PY=""; _best_ver="" while IFS= read -r _cand; do [ -f "$_cand" ] || continue _root="$(cd -P -- "$(dirname -- "$_cand")/../../.." 2>/dev/null && pwd)" _ver="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$_root/.claude-plugin/plugin.json" 2>/dev/nul