Tokenfat — AI skill for Claude Code
Diagnose AND cure AI coding token waste in one command.
How to install Tokenfat
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yihongchen772-alt/tokenfat and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tokenfat does
Diagnose AND cure AI coding token waste in one command. Local forensics, Nutrition Facts card, live PreToolUse auto-diet, Elephant Session Guard & MCP for Claude Code, Antigravity, Codex, Gemini CLI & Cursor.
Alternatives in AI
- AI Prompts Writing — 自动判断写作状态、给出写作建议,并辅助AI写作与论文写作(全流程写稿改稿/去AI味/查真文献/画图/导出Word,含43项提示词+Agent Skills) 158 ★
- Zettel Builder — Bottom-up Zettelkasten card-note skill for AI agent harnesses (Claude Code / OpenClaw / Codex / Hermes) 58 ★
- AgentDFIR — Open-source digital forensics and incident response for AI agents (Claude Code, Codex, Cursor, Gemini, Copilot 31 ★
README
⚡ tokenfat
**Zero-friction context compression & token-waste forensics for AI coding agents.**
100% local, zero-network, `$0` LLM cost: **Lossless Auto-Compaction Anchors** (`PreCompact` + `SessionStart`), **Whole-Folder / Large-File Smart Digest** (`--digest` / MCP `tokenfat_digest`), **Startup Tax Audit**, **Verified Before-vs-After Proof** (`--compare`), and Apple Health **Token Nutrition Facts** cards for **Claude Code, Antigravity, Codex, Claude Desktop, Gemini CLI, OpenCode & Cursor**.
**Never blocks your prompts. Never truncates real files or folders you ask to read.**
[English](https://github.com/yihongchen772-alt/tokenfat/blob/main/README.md) · [简体中文](https://github.com/yihongchen772-alt/tokenfat/blob/main/README.zh-CN.md)
[](https://www.npmjs.com/package/tokenfat) [](https://nodejs.org) [](https://github.com/yihongchen772-alt/tokenfat/blob/main/LICENSE) [](#privacy--zero-telemetry) [](#why-tokenfat)
npx tokenfat # 1. Local autopsy across all 7 AI clients (<2s, offline)
npx tokenfat --cure --apply # 2. Install Lossless Compaction Anchors + Digest MCP + Lockfile Shield
npx tokenfat --digest ./src # 3. Line-indexed skeleton of a whole folder or huge file (10x smaller)
npx tokenfat --compare # 4. Real Before-vs-After proof from your own local logs
**`ccusage`** shows your credit card bill. **`rtk`** aggressively rewrites shell output (easy to hit the "compression trap" or break `permissions.allow`).
Related Skills
Extension Facts
Nutrition labels for AI agent extensions: skills, MCP servers, instructions and custom agents. Show lift or dr
Claude Code Efficiency Guide
Free, open-source guide to optimize Claude Code, reduce token waste, lower costs, and improve AI coding effici
Claude Token Optimizer
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%. Detects missing
Tokopt Upload
TokOpt — LLM Cost Intelligence Platform. Analyze LLM API logs to identify token waste and deliver actionable c
Smart Context Delegation
Cut coding-agent token usage by ~90%: a PreToolUse hook blocks large file reads; bulk-read/code-write delegate
Koubo Media Creator Skill
Talking-head Short: turn a topic into a vertical AI-tools talking-head short — sourced facts, gated script, te
Related Agents
Fact Check
Verify load-bearing empirical claims before they are taught. Dispatched by /teach during its plan phase for to
Watchog
Elephant hero-facts agent builder. Use proactively when building or extending the scheduled service that turns
Revisor PDF
Integra o fluxo com o Revisor PDF (ferramenta de revisão de PDFs no Google Antigravity). Prepara a entrada (PD