token-saviour
/token-saviour
Route each sub-task to the cheapest adequate tool across a 4-layer routing table (serena / rtk / caveman / Ponytail), cutting overall token spend by ~70%. Use when an agent loop's context is ballooning, when choosing between heavy and light tooling for a sub-task, or when budgeting a long-running job.
- Author
- Lesile-Yin ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 27.08.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Route each sub-task to the cheapest adequate tool across a 4-layer routing table (serena / rtk / caveman / Ponytail), cutting overall token spend by ~70%. Use when an agent loop's context is ballooning, when choosing between heavy and light tooling for a sub-task, or when budgeting a long-running job.
Original author description
Route each sub-task to the cheapest adequate tool across a 4-layer routing table (serena / rtk / caveman / Ponytail), cutting overall token spend by ~70%. Use when an agent loop's context is ballooning, when choosing between heavy and light tooling for a sub-task, or when budgeting a long-running job.
How it works
- When to use
- Workflow
- Anti-patterns (never do these)
- Output contract
SKILL.md preview
--- name: token-saviour description: >- Route each sub-task to the cheapest adequate tool across a 4-layer routing table (serena / rtk / caveman / Ponytail), cutting overall token spend by ~70%. Use when an agent loop's context is ballooning, when choosing between heavy and light tooling for a sub-task, or when budgeting a long-running job. --- # Token Saviour Token discipline is a routing problem, not a willpower problem. token-saviour picks the lightest tool that can still do the job, then compresses what must be sent. It is the operational layer beneath token-warden's budget accounting. ## When to use - Before spinning up an expensive coding agent for a small, well-scoped edit. - When a conversation history exceeds a token threshold and must be trimmed. - When deciding which model/agent should own a sub-task. - When a task can be done by a formatter, a linter, or a grep instead of a chat. ## Workflow ### Step 1 — Classify the sub-task Tag it on two axes: **token-cost sensitivity** (how much context it drags) and **adequacy floor** (minimum capability needed). A rename is high-sensitivity, low-floor; an architecture decision is high-sensitivity, high-floor. ### Step 2 — Consult the 4-layer routing table See `references/routing-table.md` for the full matrix. In short: - **Layer 1 — serena**: structural/semantic code ops (symbol rename, find-usages) that a language server does cheaper than an LLM. - **Layer 2 — rtk** (regex/toolkit): deterministic text transforms, search, bulk edits a script handles without a model. - **Layer 3 — caveman**: compress any context *before* it reaches a model. - **Layer 4 — Ponytail** (heavy agent): only when lower layers cannot meet the adequacy floor. ### Step 3 — Compress inputs, cap history Run Layer 3 on everything that crosses into Layer 4. Cap rolled-up history to the last N meaningful turns; archive the rest to a retrievable note, not the live context. ### Step 4 — Measure and report After the sub-task, report the delta vs. the naive "send everything to the heavy agent" baseline. A good call shows savings; a bad call shows where the floor was missed. ## Anti-patterns (never do these) - Routing everything to Layer 4 "just to be safe" — that is the bug it fixes. - Compressing load-bearing context to hit a number — adequacy first, thrift second. - Skipping the measurement — unseen savings aren't savings. - Treating the table as fixed — re-tune thresholds per project. ## Output contract Return a routing decision: chosen layer(s), the estimated token delta vs. baseline, and one line of rationale. If no layer meets the adequacy floor, say so explicitly and escalate rather than guessing.
Files in this package (2)
- SKILL.md 3 KB
- references/routing-table.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Lesile-Yin/agent-skills | 90 | MIT |
| vagkaratzas/token-saviour | 100 | MIT |
Database snapshot: 13.11.2026 · package version 4b315fdb9cf1 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100smart-dispatch
Routes tasks to the cheapest adequate agent, model, or provider using deterministic bypasses, calibrated escalation, and optional typed option scoring through smart-sub-agents. Use for features, fixes, refactors, or multi-step development where model tier, effort, cost, latency,… - 100token-warden
Token budget guardian for agent sessions. Models token consumption in four independent layers (context reading, tool/command output, conversation output, code generation), routes each layer to its most efficient tool or behavior, and enforces anti-pattern rules. Use in long… - 90caveman
Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. - 95caveman
Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. - 95caveman
Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says \"caveman mode\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or invokes /caveman. - 85ecosystem-tools
Third-party Claude Code token/context/code-review tools. Use when choosing or recommending an external tool to reduce token usage, manage context, or review large codebases (caveman, code-review-graph, token-savior, context-mode...).