by ooples
91.5% fewer tokens on tool output on Headroom's own benchmark, where Headroom removes 61.4%. Separately, the same SWE-bench tasks resolved at 0.71x the cost of plain Claude Code. Plus memory across sessions and subscription quota pacing. Claude Code, Codex, Copilot, Gemini and 12 more. Local, MIT.
# Add to your Claude Code skills
git clone https://github.com/ooples/token-optimizer-mcpGuides for using ai agents skills like token-optimizer-mcp.
Last scanned: 11/29/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@actions/http-client: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@jest/core: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@jest/expect: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@jest/globals: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@jest/reporters: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@jest/transform: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/arborist: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/config: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/map-workspaces: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/metavuln-calculator: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/package-json: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@npmcli/run-script: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@semantic-release/github: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@semantic-release/npm: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@sigstore/sign: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@sigstore/tuf: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@stryker-mutator/core: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@stryker-mutator/jest-runner: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@tufjs/models: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@typescript-eslint/eslint-plugin: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@typescript-eslint/parser: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@typescript-eslint/type-utils: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@typescript-eslint/typescript-estree: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@typescript-eslint/utils: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "babel-jest: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "babel-plugin-istanbul: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "body-parser: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "cacache: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "express: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "glob: Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "ignore-walk: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "init-package-json: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-circus: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-cli: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-config: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-resolve-dependencies: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-runner: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-runtime: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "jest-snapshot: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmaccess: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmdiff: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmexec: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmfund: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmorg: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmpack: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmpublish: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmsearch: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmteam: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "libnpmversion: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "make-fetch-happen: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "minimatch: minimatch has potential denial of service via globparts amplification",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "npm: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "npm-packlist: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "npm-profile: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "npm-registry-fetch: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "pacote: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "qs: qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "semantic-release: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "sigstore: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "test-exclude: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "ts-jest: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "tuf-js: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "typed-rest-client: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "undici: undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression",
"severity": "high"
}
],
"status": "WARNING",
"scannedAt": "2026-11-29T13:59:17.253Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}token-optimizer-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ooples. 91.5% fewer tokens on tool output on Headroom's own benchmark, where Headroom removes 61.4%. Separately, the same SWE-bench tasks resolved at 0.71x the cost of plain Claude Code. Plus memory across sessions and subscription quota pacing. Claude Code, Codex, Copilot, Gemini and 12 more. Local, MIT. It has 596 GitHub stars.
token-optimizer-mcp returned warnings in AgentsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/ooples/token-optimizer-mcp" and add it to your Claude Code skills directory (see the Installation section above).
token-optimizer-mcp is primarily written in JavaScript. It is open-source under ooples on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh token-optimizer-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
On SWE-bench Verified, Claude Code with the plugin in its default mode solved the same tasks as Claude Code without it, at 0.71× the cost (7 of 7 resolved in both arms; across nine runs, 84 tasks resolved without the plugin and 83 with it). It gets there by stopping the waste agents make on their own: re-reading files that have not changed, dumping whole files to see three lines, unbounded searches, and re-deriving what an earlier session already worked out. Everything runs locally. No account, no hosted service, and telemetry is off unless you opt in twice.
Claude Code. Install the plugin rather than the bare MCP server: the plugin's hooks do the saving, while the server alone only offers tools the model can ignore.
/plugin marketplace add ooples/token-optimizer-mcp
/plugin install token-optimizer@token-optimizer
/reload-plugins
You need Node.js 22.18+ (or 24.11+) on Claude Code's PATH, and Claude Code 2.1.139 or later. Then check it works:
npx token-optimizer-doctor
The doctor feeds a synthetic payload to the real hook and confirms a large read is handled. Every failure names its own fix.
Codex, Copilot CLI, Gemini CLI, Cursor and the rest. Every client runs the
same server, npx -y @ooples/token-optimizer-mcp@latest. Ready-made configuration
for each one is in src/integrations/, and
docs/INSTALLATION.md walks through all sixteen.
node must be on
the PATH of the client process. If you just installed Node.js or Git, start the
client again from a new terminal so it picks up the new PATH."command": "node", "args": [...]). An older Claude Code ignores args, so the
hooks silently do nothing; the doctor reports it.node cannot start, the hooks let the tool call through
("onFailure": "continue"): you lose the savings, not the session. The MCP server
shows as disconnected in /mcp until Node is reachable.Full details: docs/INSTALLATION.md.
Each mode was run on the same 10 SWE-bench Verified instances, paired against a
control session with no plugin. Resolution is graded by the official evaluator.
off lands at 1.00×, which is what it should do: with the hooks and the proxy
off, the product costs nothing extra and saves nothing.
| Run (SWE-bench Verified, Claude Sonnet) | Instances | Cost vs. control | Resolved, control / plugin |
|---|---|---|---|
Default mode (assist), first session |
10 | 0.705× [0.63–0.80] | 7 / 7 |
| Learned cost control, after the hoist fix | 15 | 0.634× [0.54–0.74] | 14 / 14 (of 15) |
off (MCP server only) |
10 | 0.999× [0.83–1.20] | 7 / 7 |
The samples are small and run-to-run variance is large, so read these as directions with intervals, not guarantees. The full method, every run including the ones where it lost, and the per-instance data are in PR #559.
Short answer: it saves more than every competitor we tested, in like-for-like runs, except one small Claude Code task against Headroom, which is a tie. The fairness notes and every loss are below the table.
| Competitor | How it was tested | Them | Token Optimizer | Result |
|---|---|---|---|---|
| Headroom | Tokens removed on Headroom's own benchmark, 18 workloads | 61.4% | 91.5% | ✅ Win |
| Headroom | Installed proxy vs ours, 120 Codex task pairs | $30.43 est. cost, 120/120 passed | $22.26 est. cost, 119/120 passed | ✅ 26.9% cheaper, 30.1% faster on average |
| Headroom | Installed proxy vs ours, one small Claude Code task, 4/4 tests | 48,626 weighted input | 49,053 weighted input | ➖ Tie (0.9% more) |
| tokenjuice | Product installed, same coding tasks for every arm | 13.6% cheaper | 33.6% cheaper | ✅ Win |
| Tokenade | Its rules text vs our rules text; its full product not yet run | 22.9% cheaper | 32.0% cheaper | ✅ Win |
| claude-token-optimizer | Product installed, its hooks fixed so they fire on Claude Code | 2.7% cheaper, within noise | 33.6% cheaper | ✅ Win |
How each row was kept fair, and what it does not show:
CLAUDE_TOOL_NAME variable that Claude Code does not set, so they
exit before checking anything. Scoring that would not be a fair comparison, so the row
uses their product with that one line changed to read the hook input Claude Code
actually sends. We confirmed the patched hooks fired and blocked oversized reads.
Its CLAUDE.md ships as an unfilled template, which understates it.Beyond the table: