Why a Single "Hello" Can Consume Over 10,000 Tokens
This article explains why a simple prompt like "Hello" can show more than 10,000 input tokens while producing only a short output. Because large language models are stateless, every request must include the full context: system prompts, tool and skill declarations, injected project files, retrieved knowledge, and conversation history. The article breaks down these token sources from largest to smallest, offers practical ways to isolate the main cost, and shows how context budgets, on-demand loading, history compression, and retrieval tuning turn token usage from an opaque black box into an optimizable engineering metric.
Why a Single “Hello” Can Consume Over 10,000 Tokens
A recurring question in developer communities is this: you type only “Hello,” yet the interface reports 15,000 or more input tokens while the output is just a few dozen. The first reaction is often that the model’s billing is broken or that tokens are being stolen. The reality is usually far more mundane: your message is the smallest part of the request, and what actually gets billed is the large bundle of context the system assembles behind the scenes.
To understand this, start with a basic premise: large language models are stateless. A model does not “remember” your project or “know” which capabilities you have installed. For every request, the caller must reassemble all the information needed for that inference into a single piece of text and send it over. The chat window you see is only the tip of the iceberg; below the surface sit the system prompt, the capability list, retrieved documents, files that have been read in, and multiple turns of history. Tokens are billed on this complete text, not on the few words you typed.
Below is a breakdown of the common token sources, ordered from largest share to smallest and from easiest to hardest to investigate.
1. System Prompts and Role Definitions: The First Fixed Overhead
Almost every agent carries a system-level instruction that defines the role, tone, output format, safety boundaries, and tool usage rules. This content has nothing to do with what you ask and is an “entry fee” paid on every request.
Its size depends on design choices. A lightweight assistant may use only a few hundred tokens, while an agent that emphasizes rigor, auditability, and multi-step planning can easily expand to several thousand tokens once behavioral rules, few-shot examples, and output templates are added. More importantly, many products embed lengthy best-practice notes and edge cases in the system prompt. That material is valuable for complex tasks but is pure waste for a greeting like “Hello.”
The investigation is straightforward: measure the length of the first message in the request log on its own. If it already accounts for 30–40% of the total input, the fixed overhead is too heavy, and the fix is to slim down the prompt rather than blame the model.
2. Project Context and File Injection: The Most Easily Uncontrolled Variable
This is the most common culprit behind “one sentence, over 10,000 tokens.” When you ask an agent to “take a look at this project,” it does not face an abstract project but a concrete directory. Source code, configuration files, dependency manifests, Markdown docs, logs, stack traces, and prior conversation records in that directory may all be retrieved or read directly into context.
The problem lies in the injection strategy. A crude implementation performs a full-directory summary or even pastes entire README, requirements, and design documents into the prompt. A slightly better one retrieves relevant fragments, but if chunk granularity is too large or Top-K is set too high, it can still pack in tens of thousands of tokens at once. Log content is especially risky: a complete exception stack with surrounding context easily reaches a thousand tokens, and it contributes nothing to answering “Hello.”
A practical test is whether input tokens grow linearly with project size. If they do, the context construction lacks budget control; it is not a model capability issue.
Illustrative pseudocode can show this loss of control:
# Anti-pattern: full injection with no budgetcontext = read_all_files(project_dir) # can be tens of thousands of tokensmessages = [system_prompt] + context + [user_input]
The improvement is to introduce an explicit context budget and priority:
CONTEXT_BUDGET = 6000 # unit: tokensdef build_context(project_dir, query, budget=CONTEXT_BUDGET):candidates = retrieve_relevant(project_dir, query) # retrieve first, then rankpacked, used = [], 0for item in candidates: # from highest to lowest relevancecost = estimate_tokens(item)if used + cost > budget:breakpacked.append(item)used += costreturn packed, used
3. Tool Declarations and Skill Lists: A Long-Underestimated Fixed Cost
For an agent to call external capabilities, the model must know which capabilities exist, what their parameters are, and when to use them. This capability list is usually sent with every request as structured schema definitions. Once the number of tools grows, the declarations alone become a permanent overhead of several thousand tokens.
The skill mechanism works the same way. Skills typically exist as a list of “name + description + applicable scenarios,” and the agent reads this manual on every turn to decide whether a skill needs to be loaded. Ten skills may cost only a few hundred tokens, but dozens of skills with verbose descriptions add up to a considerable overhead. The phenomenon mentioned earlier—input consumption staying in the tens of thousands even after some skills are uninstalled—usually indicates that the main cost is not the skill list but the system prompt and project context.
The optimization is to expose capabilities on demand rather than declare everything up front: give the model a minimal capability index, let it decide whether to expand the details, and then load the specific schemas in a second pass. Shorten and deduplicate skill descriptions, and move lengthy usage instructions out of the resident context so they are read only after a match.
4. Conversation History and Multi-Turn Accumulation: Compound Growth
In multi-turn conversations, history messages keep accumulating. The first turn is 10,000 tokens; the second becomes 10,000 plus the new round trip. Without intervention, input cost rises exponentially after ten turns. Many complaints about conversations “getting more expensive the longer they go” originate here.
Common controls include a sliding window that keeps only the most recent turns; summarizing early conversation into a few hundred tokens instead of thousands of original tokens; trimming large tool results before they enter history so only conclusions and key fields remain; and deduplicating repeated content. It is worth stressing that compression inevitably loses information, so the compression ratio should be configurable and tied to the task type—long-horizon code modification tasks need to retain more detail, while casual chat tasks can be compressed aggressively.
5. Retrieval Augmentation and Knowledge Injection: Relevance Determines Cost
An agent with a knowledge base retrieves material before answering and injects it into context. If chunking is unreasonable, recall counts are too high, and reranking is missing, injecting several thousand to over 10,000 tokens at once is normal. The test is equally simple: disable knowledge retrieval and compare the drop in input tokens to quantify this share. The optimization focus is “fewer but more accurate”: control the number of recalled items, reduce chunk size, add relevance thresholds and reranking, and keep noise out of the context.
6. Structural and Implementation Overhead
Another easily overlooked hidden cost is structural. In multi-agent collaboration, the orchestrator and subtasks must exchange task descriptions and results, and the communication itself consumes tokens. Structured output requirements (strict mode, schema constraints) make both input and output longer. Security and compliance filtering, templated openings and closings, and repeated format instructions also add up bit by bit. Each item looks small on its own, but together they often account for a noticeable share of total input.
7. A Practical Layered Investigation Method
Faced with “one sentence, over 10,000 tokens,” locate the cause from the outside in rather than blindly switching models:
- Look at the total and the structure. Break one request’s input into five parts—system prompt, capability declarations, injected material, history messages, and user input—and count tokens for each. Most problems surface at this step.
- Verify by subtraction. Disable items one by one: first knowledge retrieval, then skill loading, then clear history, and finally keep only the system prompt. Record the input change after each step; the item with the largest share is the main cause.
- Check the context construction logic. Confirm whether there is full file reading without a budget, oversized chunks, excessive recall counts, or untrimmed tool results.
- Establish budgets and observability. Set a hard cap for context, instrument token usage by stage, connect logging and monitoring with alerts, and build a sustainable cost dashboard instead of relying on guesswork.
- Solidify governance policies. Prompt slimming, on-demand capability loading, history summarization, retrieval reranking, and template deduplication should be maintained as routine optimizations.
Conclusion
“One Hello consuming over 10,000 tokens” is not magic; it is a direct reflection of how mature your context engineering is. The model only performs inference; the cost depends on how much you hand it. Break down and quantify the five parts—system prompt, project context, capability declarations, history, and retrieval—then set budgets, load on demand, and monitor continuously. Token consumption turns from an “unexplainable black box” into an “optimizable engineering metric.”
In enterprise deployments, this kind of governance typically works alongside inference services hosted on container platforms, knowledge material stored in object storage, and logging and monitoring systems, forming a closed loop from call-chain observability to cost attribution. For developers, building the mental model that “every request consists of five parts” before discussing optimization is often more effective than switching to any larger model.
