claudemods

All Claude Code modsZoria-Lind/cc-token-optimizer

cc-token-optimizer

A Claude Code mod in Zoria-Lind/cc-token-optimizer

Claude Code token optimizer: read de-dup, output trimming, cold-start guard, model-tier nudges, plus a live token / cache-hit bar and /token-status. Tokens only, no cost estimate (billing differs per gateway). 中文:会话 token 监视与档位导演,装完即用: : 只报 token、不折算金额(各厂商计费口径不同)。

cc-token-optimizer reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install cc-token-optimizer --marketplace Zoria-Lind/cc-token-optimizer

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsother: $.state.get, other: $.state.set, writes files, reads files, persists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, compaction, Read calls, Edit|Write|NotebookEdit calls
Hooks
classic.SessionStart, session.compact, classic.UserPromptSubmit, classic.PreModelSwitch, classic.PostModelSwitch, tool.call {tool=Read}, tool.call {tool=Edit|Write|NotebookEdit}, classic.PostToolUse, session.start, turn.complete, ui.render {component=AbovePrompt}, command.run {command=token-status}, command.run {command=tier-auto}
API calls
$.command.register, $.fs.list, $.fs.read, $.fs.stat, $.fs.write, $.session.id, $.session.model, $.session.usage, $.state.get, $.state.set, $.store.get, $.store.set, $.ui.resolve, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
37eb1da2b8f5
Marketplace passed
zoria-plugins

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

Badge for your README

Reach badge for cc-token-optimizer Validation badge for cc-token-optimizer

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Zoria-Lind--cc-token-optimizer--cc-token-optimizer-reach.svg)](https://mods.aidojo.si/mods/Zoria-Lind--cc-token-optimizer--cc-token-optimizer/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Zoria-Lind--cc-token-optimizer--cc-token-optimizer-validates.svg)](https://mods.aidojo.si/mods/Zoria-Lind--cc-token-optimizer--cc-token-optimizer/)