Leave room without dropping the rules
Context Window Budget: Input, Output and Headroom
A context budget combines the input you supplied with the output allowance you reserve. Use the four section totals to locate pressure, then revise the task deliberately instead of treating spare space as proof that a real request will fit.
Define the budget before judging whether it fits
Fictional Northglass Audio is preparing an episode outline from interview excerpts, producer decisions, and a current assignment. Its editor needs a bounded package that retains corrected names and required topics without carrying every abandoned discussion into the next request. The planner’s budget is the sum of supplied input tokens and a reserved output allowance.

Fictional Northglass Audio is preparing an episode outline from interview excerpts, producer decisions, and a current assignment. Its editor needs a bounded package that retains corrected names and required topics without carrying every abandoned discussion into the next request.
The planner’s budget is the sum of supplied input tokens and a reserved output allowance. Supplied input is itself the sum of four separately counted sections: instructions, history, sources, and request. Context capacity is the whole-number assumption you enter for the comparison. If budget is below capacity, the difference is headroom. If budget exceeds capacity, the excess is overflow.
These definitions make the arithmetic reproducible, but they describe the worksheet’s declared scope. They do not establish the complete context usage of a provider request that the utility has neither assembled nor sent.
Choose o200k_base or cl100k_base explicitly before counting. Changing that choice changes the counting method, not the context capacity of an external model. Conversely, entering a larger capacity changes the planning assumption without changing the supplied text. Keep those two decisions separate. The utility does not detect a model from the wording, consult live model metadata, or certify all providers. When the destination is uncertain, record that uncertainty and review the tokenizer coverage guide instead of selecting whichever combination makes the budget appear most comfortable.
Open the AI Token Counter planner with the material you intend to evaluate. The count excludes message wrappers, unpasted tool definitions and results, attachments, hidden context, and provider processing. An actual generated answer is also absent; the output field reserves room rather than supplying answer text. Therefore a positive result is an arithmetic fit under your assumptions, not a promise that an application will accept the eventual request. Establish what the destination actually sends and permits separately before treating this local plan as part of a production workflow or an operational commitment.
Build the four-section package from the intended task
For Northglass Audio, instructions hold persistent requirements: preserve corrected guest names, distinguish quotations from paraphrases, and produce an outline rather than a finished script. History holds decisions from the producer discussion that still affect this assignment. Sources contain selected interview excerpts with enough identifying context to trace them. Request states the current episode question and required deliverable.
These labels help the editor inspect responsibility for each block. They do not assign actual provider message roles, establish instruction precedence, or make a quoted source trustworthy simply because the text sits in a field called sources.
Count all four fields, including those not currently visible in the editor. Switching the active section does not remove the other three from the result. Avoid placing the same passage in history and sources by accident, but do not assume repeated text is always disposable. A short requirement may need an explicit reminder in the immediate task for human clarity.
Decide that on its merits and count both occurrences if you keep them. The tool neither deduplicates the package nor judges whether removing a sentence will preserve the intended meaning of the request.
Each section is tokenized on its own, then the totals are added. This is not a count of concatenated chat serialization, and moving text between fields can affect token boundaries. Hold the placement fixed while investigating a particular revision. If a full conversation export contains timestamps, repeated labels, and discarded branches, choose the relevant supplied text manually rather than pretending the counter has recognized the original chat structure. For mixed languages or text-length comparisons, the tokens, words, and characters guide explains why word counts cannot substitute for the actual input count.

| Check | What to verify |
|---|---|
| Define the budget before judging whether it fits | The planner’s budget is the sum of supplied input tokens and a reserved output allowance. |
| Build the four-section package from the intended task | For Northglass Audio, instructions hold persistent requirements: preserve corrected guest names, distinguish quotations from paraphrases, and produce an outline rather than a finished script. |
| Work through a clearly hypothetical budget ledger | Consider an explicitly hypothetical planning ledger, not measured token counts for Northglass Audio’s text. |
Work through a clearly hypothetical budget ledger
Consider an explicitly hypothetical planning ledger, not measured token counts for Northglass Audio’s text. Assume instructions contribute 900 tokens, history 1,800, sources 8,400, and request 900. Their input total is 12,000 tokens. With an assumed capacity of 16,000 and an output allowance of 3,000, the budget is 15,000 and headroom is 1,000.
Every number in this example is invented to explain arithmetic, not to describe an encoding’s behavior or recommend a model. In your working plan, replace the four input assumptions with results obtained by counting your own complete supplied sections.
Keep the hypothetical input unchanged and raise the output allowance to 5,000. The budget becomes 17,000 against capacity 16,000, so overflow is 1,000. This is not negative free space that remains available for another excerpt. At an allowance of 4,000, budget equals capacity and headroom is zero. Equality is a boundary condition, not evidence of a safety margin.
Neither adjustment generated an answer or showed what a provider would actually return. It only changed how much output room the editor chose to reserve while comparing the same declared input with the same assumed capacity.
The section ledger also directs the next question. Sources occupy the largest share of this hypothetical package, but that does not automatically make them the correct place to cut. A required supporting quotation can matter more than a long history branch that no longer affects the episode.
Northglass Audio inspects relevance before revising any block, then counts the revised text rather than subtracting a guessed saving. Record the old and new budgets alongside the reason for the edit. That gives the reviewer a decision they can evaluate, rather than a smaller total with no explanation of what disappeared.
Reserve output for the deliverable, not a predicted answer
Set an output allowance that reflects the response you intend to request, while keeping it explicitly an assumption. An episode outline with headings, source references, and unresolved questions needs a different brief from a short title list. Describe that deliverable clearly before deciding what room to reserve.
The planner does not forecast completion length, inspect a model’s reasoning, or guarantee that an allowance will be used. There is no universal reserve percentage that suits every task. A manually chosen zero is valid arithmetic but reserves no output room and should not be mistaken for a complete answer-producing plan.
Do not treat the capacity field as a replacement for the destination’s output settings. A system can have limits or processing requirements that this plain-text worksheet does not model. Confirm those separately for the actual destination and request configuration. The counter does not apply a maximum-output setting to an API or connect to a chat session.
Northglass Audio records its intended outline scope in request and its reserve in the planner, then verifies the eventual system’s configuration elsewhere. That avoids a false impression that entering a number locally has changed what an external service will accept or produce.
When the budget is tight, changing the deliverable may be more honest than shrinking its reserve without explanation. Ask for an outline first and draft one selected segment later, for example, instead of retaining a full-script request while reserving room for only a short response. Each stage still needs its own complete input package and output allowance.
Splitting the work does not make later calls free or automatically transfer earlier decisions. Keep the accepted facts and constraints available in the stage that needs them, and evaluate whether the smaller task still answers the producer’s actual question.

Keep AI prompt workflows fast and on budget.
Apply your checks & drafts natively across 9 social apps on real Android hardware.
Read headroom, overflow and caching as different signals
Headroom is the difference between the entered capacity and the declared budget when that difference is positive. It is not a measured allowance for everything the planner omits. If the real workflow adds material, establish what it adds rather than assuming a convenient gap will absorb it.
Choose any additional margin for a stated reason and keep it distinguishable from the output allowance. Zero headroom deserves attention even though the arithmetic does not overflow. A small edit, a different encoding, or an added source can change the result, so count again after material changes to the package or settings.
Overflow calls for a visible decision: narrow the supplied content, change the requested deliverable and reserve, or reconsider a capacity assumption that has an independently justified basis. Simply raising capacity until the warning disappears does not establish that the destination offers that capacity. Nor should you trim mandatory conditions without telling the person who owns the task.
Northglass Audio treats an overflowing package as a request to review scope, not as permission to remove attribution requirements. The revised plan must still say what the episode is about and which claims or omissions require explicit editorial attention.
Cached input remains input for context purposes. A manually entered cached-token assumption can change an optional cost scenario, but it does not subtract text from the four-section total or create extra headroom. The tool does not test cache eligibility or prove a future hit. Optional USD rates per million tokens come from you; there are no built-in prices, and a blank rate remains unknown rather than zero. Use the cached-input cost guide when discussing money so a favorable scenario is not presented as a verified charge or a solution to context overflow.
Narrow sources while preserving evidence and exceptions
Start source reduction with the task question. For the episode outline, Northglass Audio needs passages about the interview’s chosen theme, not every anecdote recorded that afternoon. Keep enough surrounding text to understand who spoke, what they referred to, and whether a statement was tentative. Preserve contradictions and later corrections that affect the proposed interpretation.
Removing an awkward qualification can make a source shorter while making the resulting task misleading. The counter cannot recognize that loss. A person familiar with the material should approve the selection before the smaller package becomes the basis for a new count.
Give selected excerpts stable identifiers and retain those identifiers in the assignment if the outline must refer back to evidence. A file path or URL pasted by itself is just supplied text here, not fetched content or an imported attachment. Include the actual passages needed for this plan and describe any deliberate exclusions in the working record.
If the task depends on a whole document, a selective excerpt may change the question rather than solve the same one more efficiently. Narrow the stated task accordingly instead of claiming the reduced selection still supports an exhaustive review of unavailable material.
For structured sources, separate irrelevant fields from meaningful structure. Deleting an unused log block can be a scope decision; deleting a delimiter, escaping sequence, or required key may corrupt the representation. Count only a candidate that remains suitable for the intended task, and keep the original source for comparison. The JSON and code counting guide covers that distinction. After a source edit, check both the section result and the combined budget. Do not announce a precise token saving from lines removed until the actual revised text has been counted with the unchanged encoding.
Condense history without erasing binding decisions
History is often reducible because conversations contain exploration as well as decisions. Northglass Audio separates accepted guest-name corrections, selected themes, and unresolved questions from discarded episode ideas. A concise decision record should say what was chosen, what was rejected when that matters, and which assumptions remain open.
Keep a correction’s scope explicit: a spelling change for one guest is not permission to rewrite every similar name. This manual summary is a new supplied text, not proof that the original discussion has been preserved losslessly or that an external model will recover details no longer present.
Review instructions and request together after condensing history. A requirement should not disappear merely because its only occurrence was buried in a deleted turn. Preserve deliverable format, required inclusions, exclusions, naming conventions, and uncertainty handling wherever the intended package needs them.
If two versions conflict, resolve the conflict with the task owner instead of leaving the system to guess which sentence is current. Northglass Audio reads the candidate package without its old chat open as a practical review exercise: can another editor identify the assignment, constraints, evidence references, and open questions from the text that remains?
The counter does not perform that review, summarize history, infer priorities, or inspect another application’s context. For a Skye or MCP workflow, do not assume a pasted user question represents all instructions, tool descriptions, and returned material the application may supply. The Skye and MCP token-planning guide keeps that visibility limit explicit. Rebuild your four supplied sections from what you can legitimately inspect and label any unknown scope. Avoid presenting a smaller local count as proof that an unobserved integration now fits, or that it will stop adding context during later steps.
Freeze the revision and hand over the whole plan
After revising content or assumptions, run Count again before exporting. Editing invalidates earlier results; draft settings must not be attached silently to an old total. Save the accepted project JSON explicitly under a distinguishable filename, keeping alternative scopes separate. There is no autosave or automatic history.
If you use the repeated-call scenario, remember that it assumes identical input and output allowance for every call. It does not simulate growing conversation history, newly retrieved passages, or proven cache reuse. A staged episode workflow therefore needs a review of each stage rather than a claim that multiplying one baseline describes the entire conversation.
Every export includes complete supplied text from all four sections, regardless of which section is active. Copy report, TXT, CSV, PDF, and saved project JSON are not redacted summaries. Review internal producer notes as carefully as public interview excerpts before sharing the package.
When PDF cannot represent the full report within its glyph, page, or file-size limits, use an available complete-text alternative rather than expecting a truncated success. CSV offers protected and literal text handling; check which is appropriate for the recipient. Do not place API keys, passwords, or other authentication secrets in any section or exported planning record.
The handover should identify the encoding, accepted text revision, context-capacity assumption, output allowance, and any known material outside this worksheet’s scope. It should also explain why excerpts were removed and where the authoritative originals remain. Clear removes the local working texts and results but does not retract downloads or earlier clipboard copies.
For Northglass Audio, a successful review leaves a coherent episode assignment and an explainable budget, not merely a bar with unused space. Treat that as preparation for checking the actual destination, with editorial approval, request acceptance, and provider usage still requiring evidence beyond this local calculation.
For more context, see OpenAI on tokens. When you’re ready to plan social publishing, explore how to adapt one post for several platforms or Skye AI Manager.
See which section carries the pressure
Build the four-section budget
Count your supplied input, reserve output, and inspect headroom or overflow under a stated capacity assumption.
Retain the task, narrow the package
Recount the accepted scope
Review constraints and evidence after each cut, then count the current revision before sharing the complete plan.
Continue with another guide
Choose the guide that fits your platform or question.
Cached Input Cost Planning
Separate counted input from assumed cache reuse, reserved output, manual rates, and repeated-call scenarios before comparing costs.
Read the guide →JSON, Code, Tables and URLs
Compare structured text formats without sacrificing field meanings, working code, useful evidence, or readable review copies.
Read the guide →Skye and MCP Token Planning
Separate a Skye or MCP task brief from unknown application context, then reserve room for evidence and replies.
Read the guide →Tokenizer Coverage
Choose an explicit encoding and diagnose differences caused by line endings, Unicode, literal markers, or message overhead.
Read the guide →Tokens, Words and Characters
Compare multilingual text, preserve meaningful whitespace, and understand why words, characters, bytes, and tokens answer different questions.
Read the guide →Questions about Context Window Budget
What does this planner include in a context budget?
It adds the separately counted instructions, history, sources, and request, then adds your reserved output allowance. It excludes unpasted wrappers, tools, attachments, hidden context, provider processing, and any actual generated answer.
Do cached tokens create more context headroom?
No. Cached input still occupies full context. The manual cached-token assumption only affects an optional cost scenario, and the tool does not verify eligibility or future cache reuse.
Does zero overflow mean the real request is guaranteed to fit?
No. It means the declared budget does not exceed the capacity you entered. Zero headroom leaves no margin, and uncounted payload or destination-specific requirements can still matter. Verify the actual request and configuration separately.
Build a routine after your ai prompt planning review.
Test real-device social automation free for 5 days.