Chisle
The coding-agent plugin that bills 52% of a bare model across 20 live tasks. Terse persona + tool-output compressor + context diet.
翻訳待ち
A fully local context optimizer for Claude Code and five other agents. It cuts the three kinds of token waste, keeps your work alive across compaction, and shows every token, dollar, and turn on a liv
翻訳待ち
開発ツールPython · TypeScriptGitHub @alexgreensh接続状況の再確認が必要です所有者未確認
Have you tried it? One tap is enough. No sign-in needed.
Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.
翻訳待ち
Loading the full README. The saved excerpt is shown below.
Cut the tokens you waste. Keep the work you'd lose.
It runs automatically in the background. You keep working as usual. Run the audit when you want the full picture.
Token Optimizer cuts the tokens your AI coding assistant wastes, keeps your work alive across sessions and compactions, and shows you where every dollar went on a live dashboard. Most of it runs automatically. You install it, run the audit once, and the hooks do the rest.Read the full README ↗Token Optimizer cuts the tokens your AI coding assistant wastes, keeps your work alive across sessions and compactions, and shows you where every dollar went on a live dashboard. Most of it runs automatically. You install it, run the audit once, and the hooks do the rest.
Why not just use Headroom or RTK? They compress command output, which covers 15-25% of your context. Token Optimizer covers that plus the other 75%: bloated configs, unused skills, stale memory, compaction loss, model misrouting, behavioral waste. Every saving is cache-safe and measured. The dashboard updates after every session, automatically.
Works on the AI coding tools below, with a Devin output-filter beta (manual skill, or install.sh --devin --auto for automatic compression):
Runs automatically, every session, you do nothing:
When you ask for it:
/token-optimizer: full audit with guided fixes/token-coach: 30-day trend analysis with specific fixesquick: 10-second health checkroute: the model and effort this task actually needs, before you spenddoctor: installation checksavings: dollar savings reportreport: per-component token breakdowndashboard: open the full dashboardmemory-review: MEMORY.md structural auditexpand: retrieve archived tool resultresume-lean: reopen a cold sessionInstall, run /token-optimizer once, everything else runs automatically.
Claude Code now lets a plugin add its own piece of interface, called a mod. Token Optimizer uses one to put your session's health right above the prompt: a quality grade, how full the context is, how long the cache stays warm, and both usage limits. One plain sentence tells you what needs attention, and one button fixes it. Clawd, the small orange mascot, acts out what the session is doing, so you can tell at a glance whether Claude is reading, editing, waiting for your OK, or done.
It comes with the plugin, nothing extra to install. Everything the bar does.
Claude Code (recommended):
/plugin marketplace add alexgreensh/token-optimizer
/plugin install token-optimizer@alexgreensh-token-optimizer
Then in Claude Code: /token-optimizer
Enable auto-update after installing. Claude Code ships third-party marketplaces with auto-update off by default.
/plugin→ Marketplaces tab → selectalexgreensh-token-optimizer→ Enable auto-update. One-time, 10 seconds.After install, run
/token-optimizeronce to set up hooks. From there, everything runs automatically: compression, checkpoints, quality scoring, dashboard updates. You don't need to run any command again unless you want an audit.
Claude Code cloud sessions (claude.ai/code). Cloud sessions load no plugins, not yours and not ones a repo enables, so the commands above don't reach them. Paste one setup script into your cloud environment instead and every session in it, any repo, runs the real Token Optimizer:
- Run
python3 measure.py cloud-setup-script(or ask Claude for "the Token Optimizer cloud setup script").- Paste the output into claude.ai/code → your environment → Setup script.
The script fetches the
@alexgreensh/token-optimizernpm package (the plugin itself, same version), checks its sha512 before running anything, and wires the same hooks ashooks/hooks.jsoninto the VM. Nothing is committed to your repos, and it never fails your setup. State lives in the VM, so each cloud session starts fresh. Details
Codex:
codex plugin marketplace add alexgreensh/token-optimizer
Then in the Codex TUI: /plugins and install Token Optimizer. See docs/codex.md.
OpenCode V2: add token-optimizer-opencode to the plugins array in your opencode.json (V1 1.18.29+ uses plugin):
{ "$schema": "https://opencode.ai/config.json", "plugins": ["token-optimizer-opencode"] }
See opencode/README.md.
OpenClaw:
openclaw plugins install github:alexgreensh/token-optimizer
See openclaw/README.md.
Hermes:
git clone https://github.com/alexgreensh/token-optimizer.git
token-optimizer/install.sh --hermes
Terminal output compression, cheaper re-reads, loop warnings, checkpoints that survive compaction, prior-session hints, and the dashboard, through Hermes's own plugin hooks. See hermes/README.md.
Pi Coding Agent:
pi install git:github.com/alexgreensh/token-optimizer
Then run /token-optimizer enable to opt in. Native model costs are reported on the active branch; local tool archives and continuity markers require separate opt-in. See pi/README.md for commands, privacy, update, uninstall, and limits.
GitHub Copilot:
git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git
cd token-optimizer
bash install.sh --copilot
See docs/copilot.md.
This is the beginning of the README. Read the rest at the original. Read the full README ↗