TOKENS.md

INTELLIGENT TOKEN MANAGEMENT AND ROUTING FOR AI AGENTS
WORKING DRAFT
2026

8-bit drawing: a prompt split into colored tokens flows into a router, which sends requests down three lanes to a small, a medium and a large model chip

~*~ © 2026 TOKENS.md ~*~

ABOUT TOKENS.MD

TOKENS.md is a working idea: a plain markdown file for routing and managing the tokens an AI agent reads and writes. The file names the models an agent may call and what each one is for. Easy work goes to a small, fast model, hard work to a large one, and private work to a model on your own hardware. It says what context to load, trim, summarize or reuse, which prompts to cache, which jobs can go in a batch, and where to fall back when a model or provider is down. It means language-model tokens, never crypto tokens.

WHAT IT COULD COVER

HOW IT COULD WORK

TERMS AND TOOLS IT COULD NAME

WHO IT COULD HELP

An agent makes many model calls for each task a person sees, and most are routine. Which model answers each one, and with how much context, decides much of the cost and the wait, yet it is often set once in code and forgotten.

A SKETCH


---
tokens: draft
---
# TOKENS.md
- default: small model, then medium if the check fails
- hard: large model for plans, migrations and code review
- private: client files go to the local model only
- context: files named in the task, summarize past 50k tokens
- cache: system prompt and tool list first, unchanged mid-run
- batch: evals and backfills, results within 24 hours
- fallback: second provider on errors, then stop and ask
- output: up to 1,000 tokens unless the task asks for more
- budget: under 300k tokens a task alone, 300k or more needs a yes
- log: model, tokens in, tokens out, cache hits per call
- never: send secrets, or raise its own budget

DISCLAIMER

TOKENS.md does not route, count, meter, bill or sell tokens, and it calls no model. It is a file that states routes and limits; your gateway, keys and provider settings are what apply them. A smaller model can give worse answers, so check the output before you rely on it. Caching, batch and pricing rules differ by provider and change often. Products named here are described for reference only, with no affiliation or endorsement. The numbers in the sketch are made up, not advice. TOKENS.md is about language-model tokens and has nothing to do with crypto tokens or digital assets.

TOKENS.md is an informational page. It is provided as is, without warranty of any kind, and may be incomplete, inaccurate or out of date. Nothing here is financial, investment, legal, tax, insurance, medical, engineering, safety or other professional advice, or an offer or solicitation of any kind. The sketch is an illustration, not a standard or a recommendation. Names of third-party products or companies, if any, are used only to describe them; no affiliation or endorsement is implied. Use at your own risk. This page sets no cookies and runs no scripts or analytics; like any website, its host keeps standard request logs.