Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Prompt bloat causes costs and fixes
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Prompt bloat: causes, costs, and fixes

Source: Perplexity AI•December 3, 2026 at 06:13 PM

Prompt bloat: causes, costs, and fixes

What prompt bloat is, why it raises LLM costs and slows responses, and 9 ways to cut bloat without losing accuracy.

Prompt bloat happens when the instructions, tool definitions, and documents a large language model (LLM) receives with every query gradually grow over time, beyond what the task needs.

Resending these on every turn raises token costs, slows responses, and makes the model more likely to miss the instructions that matter.

You can fix prompt bloat by regularly removing redundant or out-of-date instructions, merging duplicate rules, loading documents and tools on demand, and optimizing the prompt for caching.

Here's where prompt bloat comes from, what it costs, and how to cut it without breaking what already works.

What is prompt bloat in LLMs?

Prompt bloat, also called prompt congestion or system prompt bloat, occurs when the instructions, tools, and background context used by an LLM become too long, redundant, or noisy.

Prompt bloat is an issue because the full system prompt travels with every request you send.

For example, when you connect an AI assistant to an MCP server, every tool the server exposes adds a name, a description, and an input schema to the prompt, whether the task needs the tool or not. As a result, the model may take longer to answer or pick the wrong tool.

Prompt bloat vs harness bloat vs context bloat vs token bloat

Prompt, harness, context, and token bloat all describe a model receiving more information than the task requires.

Prompt bloat sits in the setup: the system prompt, instruction files, tool definitions, and reference documents an application attaches to every request, ahead of anything the user types. A system prompt of 5,000 tokens adds 5,000 tokens to every message in every conversation.

Harness bloat is the agentic-level version of the same problem. The harness is the software around a model that turns it into an agent: the loop that calls the model, runs its tools, and decides what goes back into its context, plus the prompt, tool definitions, memory, and guardrails it injects. Harness bloat happens when the harness adds more rules, external tools, and injected context than the agent's tasks need.

Context bloat builds up during a session. A chat or agent run fills the context window turn by turn with messages, retrieved documents, and the output of every tool call. This makes it harder for the model to find and use relevant information.

Finally, token bloat happens when a task uses more tokens than it should, for example, because of prompt bloat. So unlike the other three kinds of bloat, this term describes a symptom, not the cause.

What causes prompt bloat?

Prompt bloat comes from additions that each make sense at the time, for example, rules that fix bad answers, or tools that add new capabilities. When nobody removes or reconciles them, they build up over time and make the system less efficient.

Rules added after problems and never removed

When an AI assistant gets something wrong, the obvious fix is to add a rule to the system prompt or project instructions.

For example, if the writing assistant produces lengthy blocks of prose, you add "a paragraph must not be longer than 3 visible lines" to the prompt.

The rule works, so it stays. The next mistake adds another one, and so on.

Over time, the reasons why the rule was necessary disappear. For example, you switch to a different model that tends to write in shorter paragraphs out of the box.

And yet, nobody remembers to remove the rule. Or is afraid to remove it in case it breaks things.

Repeated instructions

Repeated instructions are another cause of prompt bloat.

For example, your outlining skill may repeat the same instruction as your drafting skill. If the model loads both skills in the same session, it reads the instruction twice. And pays for it twice.

Instruction files and skills that don’t any value

Instruction files, such as AGENTS.md or CLAUDE.md, tell an AI agent how a project works. These instructions may make the agent perform additional work, which increases the cost but doesn't always improve results.

In a 2026 study by researchers at ETH Zurich and LogicStar.ai, coding agents given instruction files ran more tests, explored the codebase more, and reasoned more, taking more steps per task, but didn't solve significantly more tasks. That held both for files the agents generated themselves and for files the projects' developers wrote.

Tool definitions and schemas loaded on every request

MCP tools connected to expand the model's capabilities contribute to prompt bloat.

Each MCP server you connect to your AI assistant comes with its own tools, and unless the assistant loads tools on demand, it sends every one of those definitions to the model with every request, even those that don't need them.

Schemas make each definition heavier. A tool with many parameters, each with its own type, allowed values, and description, needs a long schema to describe them, and the model reads all of it.

AI product scope growing

Adding new use cases, features, or integrations to an AI product requires new instructions in the system prompt, which leads to bloat.

For example, an analytics tool may launch an AI agent that builds reports. Every new agent capability, for example, event tagging, means expanding the agent's prompt. And when a user instructs the agent to complete a task, it reads instructions for all other tasks, too.

What does prompt bloat cost?

Prompt bloat makes every request more expensive and slower, and it can make the model less accurate.

Higher token and maintenance costs

Prompt bloat raises the cost of every request, because providers bill for every input token the model receives, whether the task needs it or not.

A 2026 paper by Meta researchers on how many tools an agent should see assumes roughly 200 tokens per tool description, so a list of 100 tools uses about 20,000 tokens before the model even reads the query.

Caching discounts tokens the provider has already seen, but it doesn't make them free.

Instructions can also raise costs beyond their own tokens. In the cited above, the extra steps instruction files made agents perform raised the cost of each task by 20–23% on average when a model generated them, and by up to 19% when the projects' developers wrote them, without improving results.

Longer prompts also take longer to maintain, and duplicate instructions across multiple files make maintenance harder still.

Latency

Prompt bloat makes the model slower to answer.

Before it writes anything, the model processes the whole input, so a longer prompt increases the time to first token (TTFT), the wait before the answer starts to appear.

Part of that processing is attention, which relates each token to every token before it. A 2024 survey of LLM inference notes that this computation grows quadratically with input length, so the attention work grows faster than the prompt itself.

While processing the prompt, the model stores intermediate results for every token in a key-value (KV) cache, and it reads the whole cache to write each new token, so every word comes out a little slower.

In an agent, these delays repeat on every step.

Lower accuracy

Longer prompts can degrade accuracy, even when the input is far below the model's limit.

In a 2024 reasoning study by Levy, Jacoby, and Goldberg, padding a reasoning task with irrelevant text cut five models' average accuracy from 0.92 to 0.68 at just 3,000 tokens.

A large context window doesn't prevent this.

In a 2025 study by researchers at LMU Munich and Adobe Research, models had to find a fact phrased differently from the question inside long text. GPT-4o, one of the strongest performers, went from 99.3% on short inputs to 69.7% at 32,000 tokens, a quarter of the 128,000 tokens it can take in, and 11 of 13 models fell to half their short-input score (or less).

Missed instructions

Prompt bloat makes the model skip instructions.

In a 2025 study by Jaroslawicz et al., the best models met only 68% of 500 simultaneous instructions, and the top models' results varied more from run to run as instructions piled up.

In Netanel Eliav's 2026 study of checkable writing rules, Sonnet 5 met every rule in 93.8% of answers with 10 rules. At 120 rules, the five models tested never met every rule in a single answer.

Inconsistent model behavior

Duplicate instructions, especially across multiple files, can gradually drift apart, and conflicting or ambiguous instructions lead to inconsistent model behavior.

Say your general and client-specific drafting rules say "always start the introduction with a hook, stat, or quote." One day, the client decides to change their intro and you update their instructions to "always start the intro with the key article takeaway."

As the instructions contradict each other, the model won't know which to follow and may produce different intros every time you run the workflow. Unless you explain that client rules override the general rules, which means adding another rule, and increasing the bloat even further.

Wrong tool calls

Prompt bloat makes the model more likely to pick the wrong tool or call the right one incorrectly.

In Gan and Sun's 2025 RAG-MCP study, a model picked the right server 13.62% of the time with every tool loaded, against 43.13% when the system first retrieved the single best-matching server. In IBM Research's 2025 test, tool-calling accuracy fell by 7% to 85% (depending on the model and dataset) as the catalog grew from about 49 to 741 tools, and one model's accuracy fell to zero.

How to fix prompt bloat: 9 prompt engineering best practices

Fixing prompt bloat means removing what the task doesn't need. Here are some good practices that can help you do it safely:

  • Benchmark before you change anything. Save a set of real inputs and the outputs your current prompt produces, and rerun them after every edit. Run each input several times, because the same prompt can give different outputs from run to run.
  • Change one thing at a time. Make one edit, rerun the benchmark, then move to the next, so you can tie any change in the model's behavior to the edit that caused it.
  • Clean up your rules. Remove rules that no longer apply and duplicate instructions across different files and skills. Where two rules contradict each other, delete one or state which one wins.
  • Cut instructions that create extra work. In a 2026 study by Weinberger and Hozez, telling coding agents to develop several approaches, compare their trade-offs, and implement the best one raised reasoning tokens 2.4 to 7.4 times across six open models, with no gain in tasks solved.
  • Remove tools nobody uses. Check which tools your assistant calls and disconnect the servers it never uses.
  • Don’t cut based on use-frequency only. An model may use an instruction, a tool or a file only occasionally but removing them can break high-value use cases.
  • Load tools, skills, and documents on demand. Load tools only when a task needs them, skills by name and description, and long documents through retrieval-augmented generation (RAG). In Fei, Zheng, and Feng's 2025 study, requesting tools as needed cut prompt length by 60–98%, from about 6,300 tokens to 111 in a single-turn test with 48 tools.
  • Optimize the prompt for the model you use. Prompt performance varies from model to model, so re-test after every model switch. In a 2025 study by Wang et al., a prompt engineered for GPT-4o scored 92.27% on the HumanEval coding benchmark when run on o3, against 98.37% for the best prompt for o3.
  • Put stable content first for caching. If you build on an API, keep the system prompt and tool definitions identical between requests, and put values that change, like the current time, in the latest message. When the next request starts with the same tokens, providers can reuse the work done on that opening section to cut the cost and delay. Caching doesn't shorten the prompt, so it doesn't mitigate bloat's effect on accuracy.

Which prompt bloat fix to start with

Start with the prompt you run most often, then move from the lowest-risk changes to the ones that change how your assistant works:

  • Pick the prompt you run most often. A cut to a prompt that runs dozens of times a day saves more than the same cut to one you run once a week.
  • Prune what you definitely don't need. Remove obsolete rules, unused tool connections, and repeated instructions first. These cuts carry the least risk.
  • Settle conflicts and drop extra steps. Choose which of two clashing rules wins, then remove instructions that ask for work the task doesn't need. Both take judgment, so rerun your test inputs after each change.
  • Move tools, skills, and documents to on-demand loading last. This changes how your assistant is built, not just what the prompt says, so do it once the prompt itself is clean.

Keeping prompts lean in Perplexity Computer and the Agent API

Perplexity Computer and the Agent API already load skills only when a request needs them, and you can further cut prompt bloat by:

  • Putting the keywords a matching request would contain in your skill descriptions. Perplexity Computer sees each installed skill by its name and description only, and loads the full instructions when a request fits.
  • Limiting Project instructions to the rules every task in that workstream needs. They apply to every query run in the Project.
  • Setting constraints as Agent API request parameters, not instructions. Use parameters such as response_format with a JSON schema or filters on the web_search tool. Parameters are enforced directly, so a constraint set as a parameter doesn't add to what the model re-reads at each step
  • Moving guidance that only some requests need into Agent API skills. Style guides, playbooks, and house rules then cost only the skill's name and description until the model loads it, and a custom skill's supporting files cost no tokens until the model reads them.
  • Sending the same prompt_cache_key with every Agent API request that shares the same opening content. The Agent API places cache breakpoints on the system instructions and the latest message by default, and a cache read needs the start of the prompt to match exactly.

Start building with Perplexity Agent API today!

Prompt bloat FAQs

How long should a system prompt be?

A system prompt has no ideal prompt size. The right length is the shortest version that still produces the outputs you need on your own test inputs.

How often should you audit a prompt?

Audit a prompt when you switch models, add a batch of rules, tools, or files, or see costs or error rates rise. A model switch can make old rules unnecessary, and new additions can repeat or contradict the rules already there.

Does prompt bloat make AI output longer?

Prompt bloat makes a model's output longer when the prompt asks the model for steps the job doesn't need, such as developing and comparing several approaches before answering. Dead or duplicated instructions mostly add input tokens, so their main cost is on the input side.

← All articles

What this article says

More in AI & Machine Learning

All →
NVIDIA’s Sam Stanwyck: Super Intelligence, Simulation and Error-Correction Breakthroughs Accelerate the Quantum Timeline
NVIDIA

NVIDIA’s Sam Stanwyck: Super Intelligence, Simulation and Error-Correction Breakthroughs Accelerate the Quantum Timeline

Darktrace Named a Leader in 2026 Gartner Magic Quadrant for Email Security
Darktrace

Darktrace Named a Leader in 2026 Gartner Magic Quadrant for Email Security

Practitioners show where open models are closing the performance gap on real work
Fireworks AI

Practitioners show where open models are closing the performance gap on real work

Molmo 3: Bringing 3D understanding and grounding to an open vision-language model
AI2 (Allen Institute for AI)

Molmo 3: Bringing 3D understanding and grounding to an open vision-language model

Introducing NDM Bench: How Frontier AI Models Answer Nuclear-Policy Questions
Scale AI

Introducing NDM Bench: How Frontier AI Models Answer Nuclear-Policy Questions

Announcing our Series G
Baseten

Announcing our Series G

More from Perplexity

Perplexity caught an autonomous AI hacker trying to steal tokensПресса
Perplexity

Perplexity caught an autonomous AI hacker trying to steal tokens

Introducing Code Mode in the Agent API
Perplexity

Introducing Code Mode in the Agent API

AI tokens explained: the cost of every AI prompt
Perplexity

AI tokens explained: the cost of every AI prompt

How Perplexity defended against an autonomous AI attacker
Perplexity

How Perplexity defended against an autonomous AI attacker

Comet Browser vs. Chrome: Key Differences & Comparison
Perplexity

Comet Browser vs. Chrome: Key Differences & Comparison

MCP vs. Skills: Key Differences & When to Use Each
Perplexity

MCP vs. Skills: Key Differences & When to Use Each