Skip to main content
plugin CX Codex

token-optimizer — Claude Code plugin: what it does, how to install

token-optimizer cuts token usage 60-90% in Claude Code and Codex using caching, compression, and selective file reading.

MIT ★ 1,596 updated 2026-10-29

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install token-optimizer@awesome-codex-plugins
Open on GitHub

What token-optimizer does

The plugin manages context window consumption across Claude Code and Codex sessions. It lowers token usage by 60-90% through data caching, compression, and specialised file tools.

File handling avoids loading full contents repeatedly. It relies on diff-only re-reads, paths-only search routines, and temporary out-of-context stashing.

You also get a per-tool savings breakdown, tracking where tokens were saved during interactions.

What it helps with

  • lower token consumption by 60-90% during coding sessions
  • inspect file modifications via diff-only re-reads
  • run paths-only searches without dumping file contents into context
  • generate a per-tool token savings report

Example prompts for the agent

  • Search for project files returning paths only to save tokens
  • Re-read modified files using diffs only
  • Show the per-tool savings report for this session

How to install token-optimizer

Plugin marketplace

/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install token-optimizer@awesome-codex-plugins

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about token-optimizer

How to install token-optimizer in Claude Code?

Run /plugin marketplace add hashgraph-online/awesome-codex-plugins, then run /plugin install token-optimizer@awesome-codex-plugins.

What does token-optimizer do?

It minimizes context window usage in Claude Code and Codex by 60-90% using caching, compression, diff re-reads, and out-of-context stashing.

Does token-optimizer show token metrics?

Yes, it provides a per-tool savings report detailing the exact token reductions achieved by each tool.

Source text

token-optimizer-mcp · MIT
Cut token usage 60-90% with caching, compression, and smart file tools — diff-only re-reads, paths-only search, out-of-context stashing, and a per-tool savings report for Codex and Claude Code.

© ooples · MIT · hashgraph-online/awesome-codex-plugins

Similar plugins

All plugins for Agent setup: memory, context, orchestration →

From the same set391

The whole set →
unity-agent-workflows The unity-agent-workflows plugin guides AI agents through Unity 2D changes: trace what controls the in-game result before editing, then validate the patch. CX Codex ★ 1,596repo stars unforgit unforgit gives a coding agent a memory store that lives in the repo, so past decisions, conventions, gotchas and playbooks survive between sessions. CX Codex ★ 1,596repo stars tree-ring-memory The tree-ring-memory plugin guides Codex agents through local project memory: recall, evidence-backed notes, audits, consolidation, and explicit forgetting. CX Codex ★ 1,596repo stars tool-advisor tool-advisor reads your MCP servers, skills, plugins and CLI tools, then offers up to three ranked ways to finish the task, each with commands you can copy. CX Codex ★ 1,596repo stars tnt-house-risk-data-api The tnt-house-risk-data-api plugin for Claude Code and Codex retrieves Solana token risk data through MCP for an agent's assessment before further analysis. CX Codex ★ 1,596repo stars tmcra-memory tmcra-memory adds long-term memory to Codex: it pulls earlier requirements and project progress before answering, then stores the finished turn. CX Codex ★ 1,596repo stars team-skills-platform team-skills-platform replaces single-agent execution with an orchestrated 8-role delivery team featuring 27 specialist agents, 195+ skills, and 37 runtime hooks. CX Codex ★ 1,596repo stars design design — a skill set for UX and UI work, GitHub automation, security audits, refactoring, and project tooling across web, SaaS, and mobile apps. CX Codex ★ 1,596repo stars

Project sponsors

Companies that keep this analytics open