Token Optimizer
Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
- Type
- Plugin
- Repository
- alexgreensh/token-optimizer
- GitHub stars
- 2.4k
- License
- Not declared
- Repo last updated
- Sep 27, 2026
- Source file
- .claude-plugin/plugin.json
- Version
- 5.13.26
- Author
- Alex Greenshpun
What Token Optimizer is
Token Optimizer is a plugin published in the alexgreensh/token-optimizer repository on GitHub, which has about 2.4k stars. The repository describes itself as: “Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.”
A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.
Installing Token Optimizer adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.
How to install Token Optimizer
Claude Code
- Add the repository as a plugin marketplace: claude plugin marketplace add alexgreensh/token-optimizer
- Install the plugin: claude plugin install token-optimizer@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
- Restart the session if the new skills or commands don't appear straight away.
Claude Cowork
- Open Customize → Plugins and choose Add marketplace.
- Enter alexgreensh/token-optimizer (the owner/repo shorthand works for GitHub).
- Find Token Optimizer in the list, click Install, then connect any connectors it needs from its Connectors tab.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
The repository does not declare an open-source license, so we list only the outline of the file here. Read the full text on GitHub.
- The 30-Second Version
- Install
- What You Get
- How It's Different
- The Dashboard
- What It Saves
- Active Compression
- Delta Mode
- Structure Map
- First-Read Skeleton
- Bash Output Compression
- Custom Command Filters (TOML)
- Search Result Compression
- Lean-Output Nudges
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Token Optimizer?
Token Optimizer is a plugin for Claude Code and Claude Cowork from the alexgreensh/token-optimizer repository on GitHub. Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
How do I install Token Optimizer in Claude Code?
Add the repository as a plugin marketplace: claude plugin marketplace add alexgreensh/token-optimizer Install the plugin: claude plugin install token-optimizer@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.
Can I use Token Optimizer in Claude Cowork?
Open Customize → Plugins and choose Add marketplace. Enter alexgreensh/token-optimizer (the owner/repo shorthand works for GitHub). Find Token Optimizer in the list, click Install, then connect any connectors it needs from its Connectors tab.
Is Token Optimizer safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Fleet Auditor Audit token waste across agent systems (Claude Code, Codex, OpenClaw, Hermes, OpenCode). Detect idle burns, model misrouting, and config… Skill · alexgreensh/token-optimizer
- Terraform Skill Terraform and OpenTofu best-practices skill for writing, reviewing, debugging, testing, CI, scans, and state operations. Plugin · antonbabenko/terraform-skill
- Expo Official Expo skills for building, deploying, upgrading, and debugging Expo and React Native apps. Plugin · expo/skills
- Pg Aiguide PostgreSQL documentation and best practices through semantic search and curated skills, including TimescaleDB and Tiger Cloud ecosystem tools. Plugin · timescale/pg-aiguide
- Ux Strategy Shape product direction through competitive analysis, design principles, experience mapping, and strategic alignment. Plugin · Owl-Listener/designer-skills
- Stripe Stripe plugin for Cursor to help with Stripe integrations including best practices, API/SDK upgrade guidance, and the Stripe MCP server. Plugin · stripe/ai
- Ui Design Craft polished user interfaces with layout grids, color systems, typography scales, responsive patterns, and visual hierarchy. Plugin · Owl-Listener/designer-skills
- Code Review Introduce codebase and PR review commands and skills using multiple specialized agents. Plugin · NeoLabHQ/context-engineering-kit