token-budget

token-budget is a skill for Claude Code, Codex from byerlikaya/claude-starter-kit. It costs 25 tokens per session (960 once invoked), scanned A, original, MIT.

A set of rules for managing an AI coding assistant's context window, including when to delegate work and how to keep results concise.

In plain words
What is it for?
It is for deciding when to use isolated subagents, save details to files, summarise results, and control token usage.
Why use it?
It helps prevent important information from being crowded out and avoids wasting context on unnecessary agent output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit It is for deciding when to use isolated subagents, save details to files, summarise results, and control token usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byerlikaya/claude-starter-kit/token-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add byerlikaya/claude-starter-kit --skill token-budget
Clone the repo
git clone --depth 1 https://github.com/byerlikaya/claude-starter-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/token-budget/github.svg)](https://agentmods.dev/skills/byerlikaya/claude-starter-kit/token-budget)
Your own site
<a href="https://agentmods.dev/skills/byerlikaya/claude-starter-kit/token-budget"><img src="https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/token-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for token-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/byerlikaya/claude-starter-kit/token-budget"><img src="https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/token-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00960
Opus 5 $0.00013 $0.00480
Sonnet 5 $0.00005 $0.00192
Haiku 4.5 $0.00003 $0.00096

Measured 9d ago against content hash 02398870610c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

token-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-starter/skills/token-budget/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Token & Context Discipline

Trigger phrases: "token budget", "token cost", "context window", "context management", "context is full", "clear context", "running out of context"

A subagent exists for context management: it runs in its own window and returns only its summary to the main thread — intermediate noise (file reads, searches, logs) never enters the main context.

Warning — measured, not guessed. Each subagent re-pays its full context from scratch: in a real transcript the first turn was cache_read=0, every token cache_creation — nothing is shared with the main thread's cache. A no-op subagent (task = "reply DONE") already cost ~10k tokens with restricted tools and ~16k with full tool access; that floor is base system prompt + tool schemas, paid fresh every time. Of the always-on material only the skill listing (~2.5–3k tokens) is inherited by a subagent — the discipline (DISCIPLINE.md/CLAUDE.md) and the agent descriptions are not injected into it. So a delegation is worth it for isolation / parallelism / a clean window, or when the isolated work would otherwise cost the main thread more than that ~10–16k floor — never by default.

Rules

  1. Output = summary. The agent returns a short, structured summary to the main thread; it does not return raw logs / file dumps / long code.
  2. Move to a file. Heavy output (a plan, scan report, inventory) is written to docs/*.md; a summary + pointer comes back. (local, in gitignore)
  3. Delegation threshold. Noisy/heavy work (reading many files, scanning, research) → subagent. A single tool-call / small work → main thread. Concretely: if the isolated work won't save the main thread more than the ~10–16k fresh-context floor a subagent costs, keep it on the main thread — delegate for isolation, not to shave a few reads.
  4. Least tooling. An agent holds only the tools it needs; extras accidentally pollute the context + burn the limit.
  5. Lean SKILL.md. Skills load into the main context; heavy reference goes to a separate file, only when needed.
  6. Targeted reading. Instead of reading a whole file, pinpoint with Grep/Glob.
  7. Manage with /context. session-manager-csk recommends continue/handoff+clear based on the real percentage; at a phase boundary, /clear.
  8. Bound what a command hands back. All of the rules above govern the context's own footprint; none of them govern what a single Bash call dumps into it. A find over a monorepo, an unfiltered log, a full test run — each returns everything to the main thread whether or not any of it is read. Ask for the answer, not the corpus: grep -c over grep, | tail -20 over the whole file, --quiet/--porcelain where the tool has one, and a redirect to a file plus a pointer when the output is genuinely needed later (rule 2).
  9. Cut what nothing reaches — with evidence, not a hunch. Every installed skill spends its name and description in EVERY session, forever. bash .claude/eval/utilization.sh reports which skills actually fired in this project's transcripts and how many bytes the cold ones cost, which is the list doctor.sh §4a's skillOverrides: name-only advice needs and never had. Read it as evidence, not a verdict: a skill that only fires during an incident is doing its job by existing. --all-projects widens the scope; by default it reads this project only and prints names and counts, never paths or content.

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 45 lines · 25 tokens per session scan A 02398870610c

Subscribe to this mod's changes

token-budget is a skill published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 960 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

skill-factory

A workflow that examines completed session work and turns reusable patterns into Claude Code skills.

sangrokjung/claude-forge · 122 tokens

session-wrap

Use when wrapping up a session before ending. 4 parallel subagents detect doc updates, repeated patterns, learning points, and follow-ups, then a verifier deduplicates and presents choices. Triggers on /session-wrap, session wrap, session cleanup, end of session.

sangrokjung/claude-forge · 58 tokens

caveman-help

Quick-reference card for all caveman modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman".

stevesolun/ctx · 56 tokens

relay

Session relay — compresses what's been done so far (writes a one-liner for /compact) and generates a "next task" prompt (a baton) for the user to hand off. Use on requests like "relay / hand off / next session / continue after compact / baton / handoff / clean up context and continue next task." Does not run /compact…

sangrokjung/claude-forge · 97 tokens

toolbox

Pre/post dev toolbox — named bundles of skills/agents loaded before development work and councils of experts invoked after. Run /toolbox or the toolbox.py CLI to list, activate, initialize, export, import, and validate toolboxes. Invoke at the start or end of a dev session, when setting up a new repo, or when sharing…

stevesolun/ctx · 77 tokens

strategic-compact

Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

sangrokjung/claude-forge · 27 tokens