Toknt — AI skill for Claude Code
Tokens? Tokn't. Local-first token optimization for AI coding agents (Cursor, Claude Code, Codex).
How to install Toknt
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open shubhransh-gupta/toknt and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Toknt does
Tokens? Tokn't. Local-first token optimization for AI coding agents (Cursor, Claude Code, Codex). Cut redundant context. Keep the intelligence.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
TOKEN OPTIMIZATION FOR AI AGENTS
Cut the token waste.
Keep the intelligence.
**Local-first token optimization for Claude Code · Cursor · Codex · Windsurf · VS Code**
[](https://github.com/shubhransh-gupta/toknt/stargazers) [](LICENSE) [](https://github.com/shubhransh-gupta/toknt/actions) [](https://shubhransh-gupta.github.io/toknt/)
[Observatory](https://shubhransh-gupta.github.io/toknt/) · [Setup guide](docs/reduce-token-cost.md) · [Getting started](docs/getting-started.md) · [Contributing](CONTRIBUTING.md)
Measure, compare, and reduce redundant context before it reaches your model. Your code never leaves your machine — no uploads, no cloud.
| Before | After | |
|---|---|---|
| 38.2K tokens | −91.5% | 3.2K tokens |
| balanced mode · tiktoken cl100k_base | measured |
*Default `safe` mode: **~6.5%** on mixed sessions · Duplicate file reads: **~46%** · [Full stats ↓](#measured-accuracy)*
Why Tokn't
| Problem | What Tokn't does |
|---|---|
| Agent rereads the same file repeatedly | Hash-based dedup + local recall URI |
npm test dumps thousands of lines into context |
Summarize failures; store full output in ~/.toknt/ |
| Directory listings send tens of thousands of paths | Tree summary + searchable local index |
| Identical grep/search results repeated | Content-hash caching |
| Dashboards that only report waste | Actually compresses what hits the model |
Related Skills
Tokenomy
Tokenomy — A surgical toolkit for AI coding CLIs. Cut tokens, keep context, build faster.
Code Context Engine
Local-first MCP context engine for AI coding agents — cuts token cost ~90% via a per-project code graph + code
Token Counter
Counts tokens in documentation to ensure compliance with AI context window limits. Reports token counts per pa
Graph Hub
Local-first code intelligence for AI agents. Transform your codebase into a queryable knowledge graph. 85% tok
LLM Diet
Cut AI coding tokens by 99%. Deterministic context injection for Claude Code, Cursor, Windsurf.
Arbitrage
A Claude Code skill for token arbitrage: keep premium model tokens for judgment, dispatch all code-writing to
Related Agents
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
API Cost Scanner
Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching stra
Part 19: Repowise — Codebase Intelligence For Coding Agents
60% fewer tokens. 4x faster. Your coding agents stop guessing and start knowing. ---