token-saver
Skill0 starsChanged 56 days agoMITView on GitHub
Full playbook for making an AI coding agent's plan usage last longer on any model. Covers pinpointed prompts, budgets, lean context, cheap subagents, quiet tools, short answers, progress files, skills, cost experiments and window timing. Use at the start of heavy agent sessions, or when the user hits or worries about Claude Code, Codex or Gemini CLI usage limits.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- cyberspezie/Token-Savertheir own version, first seen Nov 1, 2026
- taro1037-design/claude-skillstheir own version, first seen Oct 20, 2026
- chidekina/aria-superpowerstheir own version, first seen Oct 13, 2026
- otnc/agent-skillstheir own version, first seen Sep 27, 2026
- otnc/skills_ai-agent-saving-techtheir own version, first seen Sep 27, 2026
- DanielNoamTuby/claude-skillstheir own version, first seen Sep 20, 2026
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- lokikill123/codex-token-skills★ 119same name
- 4pixeltechBR/token_saver_ClaudeCode★ 14same name
- 4pixeltechBR/Token-Saver★ 14same name
- SiruGao/token-saver★ 9same name
- caiolocateli46-cell/skills-caio★ 4same name
- otnc/skills_ai-agent-saving-tech★ 3same name
- chidekina/aria-superpowers★ 2same name
- OpenWorkai/claude-token-saver★ 2same name
- otnc/agent-skills★ 2same name
- LucioLiu/token-saver★ 1same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- cheap-subagentsSkill
- context-auditSkill
- limit-window-warmupSkill
- pinpointSkill
- progress-ledgerSkill
- quiet-toolsSkill
- short-answersSkill
- skillifySkill
- usage-budgetSkill
- workflow-optimizerSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Look at the meter: Claude Code /usage and /context, Codex /status, Gemini CLI /stats.
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Token saver
Ten tactics, one skill. Each one also exists as a standalone skill; full copies of all ten are in references/, so this skill works on its own. When one of them says to see another skill by name, open references/<that-name>.md.
Where the tokens go
A rule of thumb for a typical agent session, biggest first:
- The context, re-read every turn: instructions, tool definitions, the conversation, every tool result so far. Prompt caching discounts the re-read, but it's still most of the bill.
- Exploration: searches and file reads that happen because the agent doesn't know where to look.
- Rework: wrong runs that finish anyway, retries, work redone after a crash.
- Output: replies plus hidden reasoning. The priciest per token, usually the smaller total.
Model choice multiplies all four: the same work on a cheaper model costs a fraction.
Start of a session
- Look at the meter: Claude Code
/usageand/context, Codex/status, Gemini CLI/stats. - Pin the task down (where, observed, expected, done-when):
references/pinpoint.md. - Plan tight? Set a budget with checkpoints:
references/usage-budget.md. - Long job, many items or several sessions? Open a ledger:
references/progress-ledger.md. - Big or parallel job? Plan cheap subagents with a cap:
references/cheap-subagents.md.
While working
- Quiet tools, full failures:
references/quiet-tools.md. - Short answers:
references/short-answers.md. - Wrong direction? Interrupt early. Tokens already spent don't come back, but the next ones don't have to be spent. Claude Code:
Escstops the turn and keeps the work so far; a message typed while it works is queued and reaches it as soon as the running tool calls finish. Codex CLI:Entersteers mid-run,Tabqueues; in the app it's Settings → General → Follow-up behavior. Gemini CLI: experimental model steering (/settings, Model Steering). - Pick the model and the effort at the start. Switching mid-session can throw away the prompt cache (Claude Code documents this for model, effort and tool-set changes).
- Unrelated next task? Start a fresh conversation (
/clearin Claude Code,/newin Codex) instead of dragging the old context along. - Image generation is expensive: in Codex it uses limits 3–5 times faster on average than a normal turn.
After
- Did the same workflow twice?
references/skillify.md. - Runs every week? Measure it and make it cheaper:
references/workflow-optimizer.md. - Once a month: audit what loads at startup:
references/context-audit.md. - Running out every morning? Shift the 5-hour window:
references/limit-window-warmup.md.
House rules to paste into AGENTS.md, CLAUDE.md or GEMINI.md
These five lines are about 150 tokens of always-loaded instructions. Habits that apply to every task work better here than as skills, which only load when a task matches them:
## Token discipline
- Before searching, confirm where (file, route, screen) and what "done" looks like; ask one short question if it's unclear.
- Use quiet flags; summarize successes in one line; show full detail only for failures, with the real exit code.
- Keep replies as short as the task allows: lead with the result, no preamble or recap.
- For work longer than about 30 minutes or across many items, keep PROGRESS.md (done / where / failed / next).
- Delegate mechanical, parallel work to a cheaper model with a spawn cap; review, don't redo.Per tool
| Claude Code | Codex | Gemini CLI | |
| Plan usage | /usage | /status, /usage | /stats model |
| Context use | /context | /status, codex debug prompt-input | /memory show, /mcp |
| Instructions | CLAUDE.md (by default reads AGENTS.md only when there's no CLAUDE.md; an @AGENTS.md import reads both) | AGENTS.md; personal one at ~/.codex/AGENTS.md | GEMINI.md, or AGENTS.md via context.fileName |
| Skills folder (personal) | ~/.claude/skills/ | ~/.agents/skills/ | ~/.gemini/skills/ or ~/.agents/skills/ |
| Cheap subagents | .claude/agents/*.md with model: haiku | [agents] default_subagent_model | .gemini/agents/*.md with model: |
| Interrupt or steer | Esc | Enter steers, Tab queues | experimental model steering |
| Shorter replies | /output-style concise | low verbosity is the default | instruction line |
| Headless ping | claude -p | codex exec | gemini -p |
Universal, or specific to one model?
Almost everything here works on any model, because it's about what goes into the context and how much comes out. The exceptions:
- Budget-aware models. It's been claimed that some models can read the account's usage limits by themselves. No vendor documents that today: usage meters are shown to the user. A budget in the prompt still helps, because the model plans to it, but the agent can't enforce it without proxies. See
usage-budget. - Plan windows. The 5-hour window belongs to Claude and ChatGPT/Codex subscription plans. API billing and Gemini's quotas work differently.
- Cache timing is vendor- and billing-specific: OpenAI's GPT-5.6 and later keep cached prefixes for at least 30 minutes; Claude Code on a subscription uses a one-hour cache; API keys and usage-credit overage get five minutes.
- Price gaps between a vendor's big and small models change often. On OpenAI's current price list, GPT-5.6 Luna costs about 2% of GPT-6 Astra's per-token rate. Check the current price page before planning around a ratio.
Before you finish a heavy session
- Anything done twice is a skill now, or on the list to become one.
- The progress ledger is current, or removed if the job is done.
- If a budget was set, spend was reported against it.
Part of agent-skills · MIT · improvements welcome as issues.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

