LLM DIET
Description
Cut AI coding tokens by 99%. Deterministic context injection for Claude Code, Cursor, Windsurf.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
llm-diet
**Give Claude the right context upfront. Fewer turns, faster answers, lower cost.**
[](https://pypi.org/project/llm-diet/) [](LICENSE) [](https://pypi.org/project/llm-diet/)
Deterministic context retrieval for AI coding tools. Parses your repo into a call graph, intercepts every file read Claude makes, and returns compressed versions — so Claude explores freely but cheaply.
The Problem
Every Claude Code session starts blind. Claude explores your entire codebase before answering — reading files, listing directories, running commands. That exploration costs tokens and time.
Without llm-diet:
Claude reads 10 files × 8,000 tokens = 80,000 tokens consumed
Cost: $0.19 for a simple bug fix session
With llm-diet:
Claude reads 10 files × 300 tokens = 3,000 tokens consumed
Cost: $0.025 for the same session
How It Works
User prompt
│
▼
context-engine (call graph)
│ scores every function against your query
▼
Claude Code session opens
│
▼
Claude calls read_file("validators/amazon.py")
│
▼
llm-diet-shadow MCP server intercepts
│ returns compressed 872-token version
│ instead of raw 6,590-token file
▼
Claude answers — correctly — using compressed context
Claude thinks it explored. It did — but every read returned our compressed version, not the raw file.
Benchmark
**Tested on coupon-hunter-poc (40-node Python project)**
| File | Original | Compressed | Reduction |
|---|---|---|---|
| validators/playwright_amazon.py | 6,590 chars | 872 chars | 86% |
| orchestrator.py | 10,492 chars | 2,169 chars | 79% |
| connectors/playwright_amazon.py | 3,067 chars | 631 chars | 79% |
| openrouter_agent.py | 2,860 chars | 966 chars | 66% |
| retailmenot_scraper.py | 2,705 chars | 960 chars |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI