Claude Code workflow kit
Claude Token Optimizer
Sets up a small CLAUDE.md with on-demand docs to cut session-start tokens.
Install
npx -y claude-token-optimizer measuregit clone https://github.com/nadimtuhin/claude-token-optimizer.gitFrom the README
Claude Token Optimizer Claude rereads everything. Every session. You pay each time. ★ 600+ npm MIT Node 20+ Mine was 11,000 tokens per session. Open 20 sessions a day and that is 220,000 tokens gone before you type a word. That is money, usage limits, and room Claude could have used for your code. Open a terminal in your project folder and paste each line as is. Inside Claude Code, type ! first, then paste. 0. Keep a copy of your notes, just in case: 1. See what Claude rereads every session: 2. Shrink it: Old session notes and finished task lists move into side files Claude opens only when needed. You get a line like ✓ Saved ~3414 tokens. Run step 1 again to see your new total. Says "Nothing to prune"? Use the Claude Code prompt below instead. Rather not type commands? Paste this into Claude Code: Claude reads in tokens. Small pieces of text. Before, every session reread all your project notes, piece by piece. Now it gets a cheat sheet. A short file at the start. Everything else waits in files Claude opens only when it needs them. Nothing about how you use Claude changes. Each session just starts lighter. My project, before and after. Claude still finds the old notes when it needs them. It just stops rereading them every session. "command not found" or an error about Node You need Node 20 or newer. Run node -v to check, and install it from nodejs.org if the number is lower. If it says cto: command not found, put npx -y claude-token-optimizer in front instead of cto. Will it overwrite my files? It rewrites CLAUDE.md and saves the old one as CLAUDE.md.bak. A second run replaces that .bak, so keep your own copy from step 0. cto init (for developers, below) can replace .claudeignore and .claude/*.md in a project with no CLAUDE.md. The exact list of files…
Details
- Repository
- nadimtuhin/claude-token-optimizer
- Type
- Workflow kits
- Language
- JavaScript
- License
- MIT
- Last updated
- 2 November 2026
- Topics
- agents-mdai-assistantautomationclaudeclaude-codeclaude-mdclicontext-engineeringdeveloper-toolsdocumentationllmnpm-package
FAQ
What is Claude Token Optimizer?
Sets up a small CLAUDE.md with on-demand docs to cut session-start tokens. It is a workflow kit for Claude Code, from nadimtuhin/claude-token-optimizer on GitHub.
How do I install Claude Token Optimizer?
Run npx -y claude-token-optimizer measure, then follow the setup in the README.
Is Claude Token Optimizer popular?
nadimtuhin/claude-token-optimizer has 644 GitHub stars and 85 forks. It was last updated on 2 November 2026.
More workflow kits
Claude On Rails
816obie/claude-on-rails
A development framework for Ruby on Rails developers using Claude Code, inspired by SuperClaude
Looper
712ksimback/looper
Design visual, review-gated agent loops for Claude Code before you run them.
MiniCode
1.2kLiuMengxuan04/MiniCode
A lightweight terminal coding assistant with Claude Code-like workflow, tool loop, and TUI architecture, built for learning and experimentation. Multi-language support: TypeScript , Python and Rust implementations available now.
AI In The Terminal
862theNetworkChuck/ai-in-the-terminal
Complete companion guide for NetworkChuck's 'AI in the Terminal' video - Gemini CLI, Claude Code, Codex, and opencode workflows
Claude Code Tresor
781alirezarezvani/claude-code-tresor
Utility collection of skills, agents, slash commands and prompts.
vibecosystem
541vibeeval/vibecosystem
Self-learning AI team setup with agents, skills and hooks for Claude Code.
Browse the most popular Claude Code mods, all workflow kits, or the skills and MCP server directories.