Synax Token Shield — AI skill for Claude Code
🛡️ Zero-Dependency AI Token Compressor, AST Skeletonizer, SHA-256 Semantic Cache & Frugal Model Router for Claude Code, OpenAI Codex, Google Antigravity, Cursor & Windsurf (75%-92% Token Savings).
How to install Synax Token Shield
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ofaemd-creator/synax-token-shield and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Synax Token Shield does
🛡️ Zero-Dependency AI Token Compressor, AST Skeletonizer, SHA-256 Semantic Cache & Frugal Model Router for Claude Code, OpenAI Codex, Google Antigravity, Cursor & Windsurf (75%-92% Token Savings).
Alternatives in AI
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Engrim — The Universal Cross-Model Episodic Memory Standard 219 ★
- Semble Rs — Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp 210 ★
README
🛡️ SYNAX Token Shield (`synax-token-shield`)
[](https://github.com/ofaemd-creator/synax-token-shield/actions) [](LICENSE) [](pyproject.toml) [](SKILL.md)
**Zero-Dependency AI Token Compressor, AST Code Skeletonizer, Terminal Log Deduplicator, SHA-256 Semantic Cache, and Frugal Multi-Model Router for Claude Code, OpenAI Codex, Google Antigravity, Cursor, and Windsurf.**
**Why `synax-token-shield`?** AI coding agents routinely burn **80%+ of your token quota** reading entire 1,500-line files when they only need 1 function, re-reading unchanged files across turns, ingesting 5,000-line stack traces, and invoking expensive frontier models (`Claude Opus 4`, `OpenAI o3/Codex`) for deterministic syntax checks. **`synax-token-shield` cuts agent token consumption by 75%–92%** with zero external dependencies.
⚡ 5 Core Token-Saving Engines
| Engine | Mechanism | Measured Token Savings |
|---|---|---|
| 1. AST Code Skeletonizer | Parses Python AST & C/TS/Rust/Go/.sx blocks; keeps imports, signatures, types & docstrings while eliding non-target bodies (--focus keeps target function intact). |
75% – 92% fewer file tokens |
| 2. Surgical Log Deduplicator | Strips ANSI sequences, collapses repeated test/compiler lines ([×N identical lines collapsed]), and isolates error frames. |
80% – 95% fewer log tokens |
| 3. SHA-256 Semantic Cache | Content-addressed session ledger (SemanticTokenCache) that replaces redund |
Related Skills
Sinapsai
Zero-dependency Universal AI Gateway & Smart Router for Node.js/Edge - Circuit Breakers, Semantic Cache, MCP T
Omni Token Router MCP
💎 Semantic Context Compressor, Live Token/USD Cost Calculator & Adaptive Model-Tier Router MCP Server — Cut L
Token Saver
Zero-cost token optimization engine for AI coding assistants (Claude Code, Cursor, Antigravity, Windsurf). Sav
TokenJar
Zero-cost token optimization engine for AI coding assistants (Claude Code, Cursor, Antigravity, Windsurf). Sav
Krusch Git
Git DAG indexing, AST symbol graphs, and hybrid semantic code search MCP server for AI coding agents (Claude C
Tokenslim
TokenSlim — spend fewer tokens on every LLM API call: prompt compression, 350-skill router, model cascade, sem
Related Agents
Token Shield Guardian
AST code skeletonization, RLE terminal log deduplication, and SHA-256 context capsule handoffs cutting Claude
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Model Runner
Deterministic wrapper that runs a prompt on a non-Claude model (OpenAI via Codex, Cursor's composer/grok/glm,