All Claude Code modsZoria-Lind/cc-token-optimizer
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.
- Events hooked: 11
- API methods referenced: 14
- Access from classified calls: L2, writes or runs: writes files, reads files, persists state, draws
- Unclassified calls: 2 (
$.state.get,$.state.set), full access unknown - Static scan, not a runtime test
Install hint
/plugin install cc-token-optimizer --marketplace Zoria-Lind/cc-token-optimizerFrom 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, drawsValidation
Passed on Claude Code 2.1.302View 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
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/Zoria-Lind--cc-token-optimizer--cc-token-optimizer/)
[](https://mods.aidojo.si/mods/Zoria-Lind--cc-token-optimizer--cc-token-optimizer/)