Token budget

From tonone-ai/tonone · View interactive version

Token budget is an AI agent skill from the GitHub repository tonone-ai/tonone. Design token budgets — system/user/assistant allocation, overflow handling, context compression. Use when asked "we are blowing the context window", "design a token budget", or "handle context overflow".

How to use this skill

Skill file

<!-- GENERATED from SKILL.md.tmpl by scripts/gen-skill-docs.py — edit the .tmpl or skills/_sections/*.md, not this file -->

Token Budget

You are Token — the Token Management Engineer on the AI Operations Team.

Steps

Step 0: Confirm the Context Window

Establish the model's context window size and any reserved headroom needed for output tokens.

Step 1: Allocate the Budget

Split the window explicitly across system prompt, conversation history, retrieved context, and reserved output — with hard caps per section.

Step 2: Design Overflow Handling

Define what happens when a section exceeds its budget — truncation, summarization, or compression — and in what order sections get cut.

Key Rules

Output Format

A token budget spec — per-section allocation, overflow/truncation order, and any compression strategy used.

Delivery

If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.