claude

token-optimizer

Cuts token consumption in coding sessions by rewriting verbose commands, compressing tool output, reminding about /compact, and routing simple tasks to cheap Haiku subagents.

0 on GitHubby Danny Hoav0.1.0MITupdated 4 months agoproductivity
/

Plugin token-optimizer from marketplace claude-token-optimizer in hoavdc/Claude-Token-Optimizer. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (1)

  • token-discipline

    Token-efficiency rules for working in a codebase. Apply in every coding session when reading files, running commands, or deciding whether to delegate work to subagents.

Slash commands (2)

  • /token-optimizer:budget

    Set token-optimizer filtering aggressiveness (strict | normal | off)

  • /token-optimizer:token-status

    Report token-optimizer session stats - turns since last compact, hook activity, and rough estimated savings

Subagents (3)

  • doc-writer

    Cheap-model writer for documentation artifacts - docstrings, code comments, READMEs, changelogs, and usage examples. Use whenever the task is "write/update documentation for X" and does not require design decisions. Not for API design docs or architecture proposals.

  • quick-reader

    Reads and summarizes files or directories on a cheap model so the main model never loads whole files into context. Use whenever you need to UNDERSTAND what a file/module/directory contains but do not need to edit it line-by-line — e.g. "what does src/auth.ts do", "map this package's structure", "whi

  • quick-reviewer

    Cheap-model reviewer for SMALL, well-scoped work - reviewing diffs under ~150 lines, writing unit tests for simple pure functions, and running lint/format checks. Do NOT use for complex bugs, security-sensitive code, concurrency issues, or architectural decisions - those need the main model. Use to

Hooks (4)

  • SessionStart

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/session-init.sh"

  • PreToolUse

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/rewrite-verbose-cmd.sh"

  • PostToolUse

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/filter-bash-output.sh"

  • Stop

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/context-meter.sh"

View source on GitHub

Similar plugins

nextjs

claude

Official Next.js skills: adopt and optimize Cache Components, adopt Partial Prefetching, and verify runtime behavior against a running dev server.

6 skills

vercel/next.js 143,495

caveman

claude

Talk like caveman. Cut filler. Keep technical details explicit.

22 skills · 1 command · 3 agents · hooks

JuliusBrussee/caveman 119,462

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Taste Skill

claudecodex

tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, with one section per screen, real photographs, real product UI, effects kept for tech and gaming pages, and a real-browser checker and finish gate.

1 skill

Leonxlnx/taste-skill 114,391

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

Maintain token-optimizer?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted