#568568th of 706 in Skills, plugins and prompts
claude-token-optimizer
CLI that shrinks the CLAUDE.md and notes Claude Code loads at session start
- Stars
- 671
- License
- MIT
- Last commit
- Nov 2026
- Language
- JavaScript
293 on 26 Apr 2026671 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A Node CLI (`cto`) that measures how many tokens Claude Code loads at startup, then moves old session notes and finished tasks out of CLAUDE.md into on-demand files under `.claude/`. It also scaffolds a small CLAUDE.md structure, runs 19 audit checks for CI, and ships 12 hook templates. The author reports a drop from about 11,000 to about 800 startup tokens on one RedwoodJS project.
Who it is for: Claude Code users with large CLAUDE.md files and long-running projects
Strengths
- `measure` shows startup tokens file by file; `diff` shows the before/after delta
- `audit --json` exits 1 on errors, so it can gate CI
- 12 hook templates: read guards, bash guards, context injection, session snapshots
- COMMON_MISTAKES starters for 13 frameworks, including Next.js, Django and Rails
Weaknesses
- Token counts use the Claude 2 tokenizer, so they are estimates only
- `compress` is lossy: it truncates long lists and strips HTML comments
- `--force` replaces files without a backup; the `.bak` is overwritten on each run
- Only benchmark given is one RedwoodJS project, from the author
What it needs
- no GPU
- Needs Node 20+, Claude Code
- Models: Claude
Also in Skills, plugins and prompts
See all 706| Rank | Project | Score |
|---|---|---|
| #566 | aws-agent-skillsClaude Code and Codex plugin with skills for 18 AWS services | 47 out of 100 |
| #567 | old-coderAgent skill that requires a test plan up front and an evidence report after | 47 out of 100 |
| #569 | memory.cppLocal CLI that compiles repo memory into cache-stable context for coding agents | 47 out of 100 |
| #570 | elon-musk-skillAgent Skill that answers using Elon Musk's decision frameworks and speaking style | 47 out of 100 |
| #571 | snarktank/ralphBash loop that reruns Amp or Claude Code until every PRD story passes | 46 out of 100 |