#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

Releases and problems feed (RSS)

Stars
671
License
MIT
Last commit
Nov 2026
Language
JavaScript
Stars, last 30 weeks+378
26 Apr 2026: 293 stars3 May 2026: 344 stars10 May 2026: 367 stars17 May 2026: 391 stars24 May 2026: 423 stars31 May 2026: 439 stars7 Jun 2026: 458 stars14 Jun 2026: 466 stars21 Jun 2026: 471 stars28 Jun 2026: 484 stars5 Jul 2026: 511 stars12 Jul 2026: 520 stars19 Jul 2026: 530 stars26 Jul 2026: 538 stars2 Aug 2026: 544 stars9 Aug 2026: 552 stars16 Aug 2026: 557 stars23 Aug 2026: 566 stars30 Aug 2026: 573 stars6 Sept 2026: 576 stars13 Sept 2026: 582 stars20 Sept 2026: 585 stars27 Sept 2026: 614 stars4 Oct 2026: 620 stars11 Oct 2026: 627 stars18 Oct 2026: 633 stars25 Oct 2026: 642 stars1 Nov 2026: 652 stars8 Nov 2026: 656 stars15 Nov 2026: 665 stars22 Nov 2026: 671 stars

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
Also in Skills, plugins and prompts
RankProjectScore
#566aws-agent-skillsClaude Code and Codex plugin with skills for 18 AWS services1.2k starsMIT47 out of 100
#567old-coderAgent skill that requires a test plan up front and an evidence report after760 starsMIT47 out of 100
#569memory.cppLocal CLI that compiles repo memory into cache-stable context for coding agents661 starsMIT47 out of 100
#570elon-musk-skillAgent Skill that answers using Elon Musk's decision frameworks and speaking style586 starsMIT47 out of 100
#571snarktank/ralphBash loop that reruns Amp or Claude Code until every PRD story passes22.3k stars+321 (+1.5%) in 30 daysMIT46 out of 100