Token Optimizer plugin for Grok Build

Community Claude Code plugin, installs in GrokPluginDevelopment

Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.

How to install Token Optimizer in Grok Build

1. Add this repo as a plugin marketplace in Grok Build (once per computer):

grok plugin marketplace add alexgreensh/token-optimizer

2. Install the plugin:

grok plugin install to-hook-probe@alexgreensh/token-optimizer --trust
✓ Install-checked in Grok Buildchecked Oct 18, 2026

Review before you trust it. --trust lets this plugin's hooks, MCP servers and scripts run code on your computer. It's a community repo that neither xAI nor GrokStacks has reviewed, so read its code first.

This repo's marketplace has 3 plugins; we checked to-hook-probe, token-optimizer, token-optimizer-cowork. Install another the same way: grok plugin install <name>@alexgreensh/token-optimizer --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.

Inside Grok Build: type /plugins, open the Marketplace tab, press a and add alexgreensh/token-optimizer, then select to-hook-probe and press i.

Command format: Grok Build's plugin guide

What we checked: on Oct 18, 2026 it installed with grok 1.0.62 and Grok found 14 skills, 6 slash commands. That's an install check only: we haven't run it in a live Grok session.

What it contains

Skills (14)

  • fleet-auditor — Audits token waste and cost across Claude Code, Codex, OpenClaw, Hermes and OpenCode, with dollar savings. Use when running several agent systems or suspecting idle heartbeats burn tokens.
  • resume-checkpoint — Pulls a prior session's checkpoint as fenced, scrubbed recovery context. Use when the user is continuing prior work; skip it on a fresh, unrelated task.
  • token-coach — Coaches a token-efficient Claude Code or Codex setup from the user's own usage data. Use when planning a build, fixing a slow or costly setup, or deciding which workflow steps need a model.
  • token-dashboard — Opens the Token Optimizer dashboard in the browser (context usage, quality, savings). Use when the user asks to see the dashboard.
  • token-optimizer — Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the saving. Use when context feels tight, sessions degrade, or costs climb.
  • health — Checks running Claude Code or Codex sessions, finds zombies, and offers a safe cleanup. Use when sessions feel stuck or many are open.
  • quick — Runs a 10-second context health check with a quality score and the top issues. Use for a fast pulse on the current session.
  • fleet-auditor — Audits token waste and cost across Claude Code, Codex, OpenClaw, Hermes and OpenCode, with dollar savings. Use when running several agent systems or suspecting idle heartbeats burn tokens.
  • resume-checkpoint — Pulls a prior session's checkpoint as fenced, scrubbed recovery context. Use when the user is continuing prior work; skip it on a fresh, unrelated task.
  • token-coach — Coaches a token-efficient Claude Code or Codex setup from the user's own usage data. Use when planning a build, fixing a slow or costly setup, or deciding which workflow steps need a model.
  • token-dashboard — Opens the Token Optimizer dashboard in the browser (context usage, quality, savings). Use when the user asks to see the dashboard.
  • token-optimizer — Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the saving. Use when context feels tight, sessions degrade, or costs climb.
  • health — Checks running Claude Code or Codex sessions, finds zombies, and offers a safe cleanup. Use when sessions feel stuck or many are open.
  • quick — Runs a 10-second context health check with a quality score and the top issues. Use for a fast pulse on the current session.

Hooks (1)

  • hooks — Notification, PostToolUse, PreCompact, PreToolUse, SessionEnd, SessionStart, Stop, SubagentStop, UserPromptSubmit

Plugins in this marketplace (3)

  • token-optimizer — Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
  • to-hook-probe — [BETA] Token Optimizer Cowork hook-firing diagnostic. Install this FIRST in Claude Cowork to see which hooks actually fire on your build. Writes a marker + env dump you can read in-session. Part of the beta Cowork adapter.
  • token-optimizer-cowork — Token Optimizer for Claude Cowork — full skills + Cowork-native hooks (beta). Install THIS in Cowork; the standard token-optimizer entry is for desktop Claude Code.

About this listing

Token Optimizer is a community plugin on GitHub by alexgreensh, written as a Claude Code plugin that Grok Build installs. We install-checked it in Grok; we haven't run it in a live session or reviewed its code. When we installed it, Grok found 14 skills, 1 hook, 3 plugins in this marketplaces. No license stated in the repo, so check with the author before reusing its code. We checked commit 78c0ee33ed0b. It's one of 409 listings in the Development category on GrokStacks.

Stacks Weekly: every new Grok Build and Codex plugin, every Tuesday.

One short email for GrokStacks and CodexStacks readers, with each new plugin's install line and what it ships. Subscribe and get the free starter list: 20 Grok Build plugins worth installing first.

You'll get a confirmation email first. Unsubscribe anytime.

Token Optimizer FAQ

How do I install Token Optimizer in Grok Build?

Add the repo as a marketplace with grok plugin marketplace add alexgreensh/token-optimizer, then run grok plugin install to-hook-probe@alexgreensh/token-optimizer --trust. This repo's marketplace has 3 plugins; we checked to-hook-probe, token-optimizer, token-optimizer-cowork. Install another the same way: grok plugin install <name>@alexgreensh/token-optimizer --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.

Is Token Optimizer an official Grok Build plugin?

No. Token Optimizer is a community plugin on GitHub by alexgreensh, not in xAI's official Grok Build marketplace. We checked that it installs and what Grok loads from it, but haven't run it in a live Grok session or reviewed its code.

What does Token Optimizer include?

According to what Grok loaded in our install check, Token Optimizer includes 14 skills, 1 hook, 3 plugins in this marketplaces: fleet-auditor, resume-checkpoint, token-coach, token-dashboard, token-optimizer, health….

Details

Type
Plugin
Category
Development
Source
Community Claude Code plugin, installs in Grok
License
No license stated
Author
alexgreensh
Version
5.13.49
Keywords
agentskills, claude-code, claude-code-mod, claude-code-skill, claude-plugin, codex, context-engineering, context-window, cost-management, cost-optimization, cost-tracking, ghost-tokens
Source repo
https://github.com/alexgreensh/token-optimizer
Checked commit
78c0ee33ed0b
Homepage
https://token-optimizer.dev
Checked by GrokStacks
Install-checked in Grok Build on Oct 18, 2026; not run in a live session

Something wrong or missing? Submit or improve this listing. Marketplace listings also refresh automatically every night.

For maintainers: badge and embeds

Maintain Token Optimizer? Add the badge; it links to this page.

Listed on GrokStacks

Markdown

[![Listed on GrokStacks](https://grokstacks.com/badge.svg)](https://grokstacks.com/p/token-optimizer/)

HTML

<a href="https://grokstacks.com/p/token-optimizer/"><img src="https://grokstacks.com/badge.svg" alt="Listed on GrokStacks" width="164" height="28"></a>

Embed card (static HTML and inline CSS, no JavaScript). Preview:

<a href="https://grokstacks.com/p/token-optimizer/" style="display:block;max-width:380px;box-sizing:border-box;padding:14px 16px;border:1px solid #2a2e3c;border-radius:12px;background:#0a0b0f;color:#e8eaf0;font:14px/1.45 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;text-decoration:none"><span style="display:block;font-size:16px;font-weight:700;color:#e8eaf0">Token Optimizer</span><span style="display:block;margin:2px 0 8px;font-size:12px;color:#9aa0b1">Community plugin for Grok Build · 14 skills, 1 hook, 3 plugins in this marketplaces</span><span style="display:block;margin:0 0 10px;color:#c9cdd8">Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.</span><span style="font-size:12px;font-weight:600;color:#7c9cff">View on GrokStacks →</span></a>

Markdown summary

**[Token Optimizer on GrokStacks](https://grokstacks.com/p/token-optimizer/)**: Community plugin for Grok Build with 14 skills, 1 hook, 3 plugins in this marketplaces. Install: `grok plugin install to-hook-probe@alexgreensh/token-optimizer --trust` (after `grok plugin marketplace add alexgreensh/token-optimizer`)

More on badges, embeds and keeping your listing up to date: GrokStacks for plugin authors.

Also in Development

All 409 development listings →