sifxprime/kodelyth-ecc/ecc-token-savings
Claude Code and agent skill by sifxprime/kodelyth-ecc
- community
Checking that the SKILL.md file is still in the repository.
Maximize token savings across an ECC-equipped session by combining the three shipped layers — RTK (input compression on shell output), Terse mode (output compression on AI replies), and the codebase graph (structural queries instead of file-by-file grep). Use when the user asks how to cut token cost, why a session is expensive, or how to use RTK/Terse/codebase-graph together.
Install
npx vskill@latest install sifxprime/kodelyth-ecc/ecc-token-savingsSKILL.md
The same SKILL.md was published earlier as sifxprime/kodelyth-ecc/ecc-token-savings.
ECC Token Savings Stack
Kodelyth ECC ships three independent token-savings layers. They stack. Used together on a typical coding session they cut 55-65% of total token cost — more on explain-heavy or exploration-heavy work. This skill is the unified playbook; the per-feature docs live in docs/rtk.md, docs/terse-mode.md, docs/codebase-graph.md.
The three layers (know which axis each cuts)
| Layer | Cuts | How | Typical saving | |
|---|---|---|---|---|
| RTK | Input tokens | Filters shell-command output before the LLM sees it | 60-90% on git/ls/test/docker/... | |
| Terse mode | Output tokens | Compresses what the AI writes, code stays byte-exact | 40-70% on replies | |
| Codebase graph | Input tokens | One structural query replaces dozens of grep/read cycles | ~99% on "who calls X" questions |
They are orthogonal — RTK and codebase-graph shrink what goes in, Terse shrinks what comes out. Turning on all three compounds.
Verify what's active
If any is missing, install it:
The workflow — what to actually do
1. Let RTK ride silently (already on after install)
RTK is a PreToolUse hook. Once wired, every shell command the AI runs is auto-filtered. Nothing to do per-session. If you want the compact output in Read/Grep too, prefer shell (rg, cat, find) or explicit rtk read/rtk grep — the Bash hook doesn't cover the built-in file tools.
2. Turn on Terse mode for the session
Rule of thumb: full for day-to-day coding, off when the output itself is the deliverable (documentation, explanations for others, teaching).
3. Query the graph instead of grepping
Once a project is indexed ("Index this project" in your AI tool), replace exploration greps with structural queries:
"Who calls X", "what's the impact of changing Y", "show the architecture" — all one query, ~3k tokens, versus ~400k tokens of file-by-file reading.
4. Compress persistent memory files once, save forever
Every session that loads these files now costs ~30% fewer input tokens — permanently, not per-turn.
Measure it — don't guess
The dashboard shows real ledger data, never estimates. Point the user there when they ask "how much am I actually saving."
Honest caveats — say these, don't oversell
- Terse adds ~800-1200 input tokens per turn (the skill prompt). On turns under ~2k output tokens it can be net-negative — skip Terse for short back-and-forth.
- RTK only covers the Bash tool.
Read/Grep/Globbypass it. Use shell equivalents to get RTK compression there. - The codebase graph must be indexed first and re-indexed after big changes (
"Index this project"orcodebase-memory-mcpauto-watch). - Native Windows RTK install is manual (
.zipfrom releases); WSL and macOS/Linux auto-install.
Quick recommendation by session type
| Session type | RTK | Terse | Graph | |
|---|---|---|---|---|
| Day-to-day coding | on | full | query on explore | |
| Deep debugging | on | lite (keep reasoning readable) | trace_path heavily | |
| Codebase exploration / onboarding | on | off | primary tool | |
| Writing docs / teaching | on | off | as needed | |
| Expert on familiar code | on | ultra | query on explore |
See also
docs/rtk.md,docs/terse-mode.md,docs/codebase-graph.md— per-feature deep dives- Skills: [[terse-mode]], [[token-budget-advisor]], [[cost-aware-model-routing]]
- The
cost-aware-model-routingrule picks the model tier; this skill cuts the token count at whatever tier you're on.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ecc-token-savings/SKILL.md
Popularity
- Repository stars
- 11
- Repository forks
- 1
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sifxprime/kodelyth-ecc/ecc-token-savings)