Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By satyamamarpandeyv2.3.7MITIn 1 marketplace
Clarifies vague build prompts, carries forward compaction memory, summarizes source files, and protects Claude Code context by gating oversized noisy reads.
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
token, optimizer, context, compression, clarification, compaction, claude-code, hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
ClaudeTokenSAP is a Claude Code plugin marketplace.
Its first plugin, Token Optimizer, improves how Claude Code handles vague build prompts, oversized file reads, and long sessions.
It is built to reduce context waste without making Claude feel dumber, more generic, or overly interruptive.
The core idea is simple:
| Workflow | What usually happens | Token impact |
|---|---|---|
| Vague build prompt | Claude starts coding too early, then backtracks | High waste |
| Token Optimizer enabled | Claude asks focused clarifying questions first | Lower waste |
| Large noisy log read | Raw bulk floods context | Very high waste |
| Token Optimizer enabled | Full read is blocked and narrowed | 50–80% lower in repetitive cases |
| Large JSON read | Full structure gets dumped into session | High waste |
| Token Optimizer enabled | Shape, keys, counts, and summaries are used first | 40–75% lower in good-fit cases |
| Long coding session | Context drifts after compaction | Hidden waste |
| Token Optimizer enabled | Lightweight continuity is preserved | Better session quality |
| Input type | Typical optimization | Approximate reduction |
|---|---|---|
| Repetitive logs | Collapse noise, surface real failures | 60–85% |
| Large JSON | Shape/key summary instead of full bulk | 40–75% |
| Repeated file reads | Prevent duplicate noisy context | 20–50% |
| Vague build starts | Clarify before scaffolding | Often large downstream savings |
| Search-heavy sessions | Compress broad match output | 60–80% |
In highly repetitive cases, reductions can exceed 70%, but savings vary by workflow, file type, prompt quality, and session behavior.
Claude Code is strongest when context contains signal, not bulk.
In real development workflows, context gets wasted by things like:
create a calculatorThat creates three practical problems:
Token Optimizer is designed to intervene at exactly those points.
Version 2.3.7 makes onboarding questions fully dynamic. The hook now calls Claude Haiku to generate 3–7 custom questions tailored to the exact prompt — skipping what’s already obvious. "Create a React dashboard with PostgreSQL" won’t ask about framework or database. Falls back to the 11 static intent sets (v2.3.6) when the API is unavailable.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub satyamamarpandey/claudetokensap --plugin token-optimizerPlugins from other owners that cover similar ground