How Much of Your AI Prompt Is Waste? We Compressed 50 Real System Prompts (2026)

We ran 50 published system prompts through a prompt compressor. The median prompt shrank by 61%, but only 23 kept every instruction. Here's what got cut, what broke, and what it's worth.
Short answer: In our test of 50 real, published system prompts, the median prompt could be cut by 61% of its tokens. But only 23 of the 50 kept every instruction after compression. Short prompts (under 100 tokens) compressed safely almost every time. Long prompts usually lost something, most often their examples, and 7 of the 50 came back broken. Compression saves real money on prompts that run thousands of times a day, but only if you check what it removed.
Disclosure: the Token Reducer we tested is our own free tool. We're publishing the results as they came out, including the cases where it got things wrong.
Key findings
- Median cut: 61% of tokens (range 29% to 96%). Across all 50 prompts, 15,733 tokens became 3,844.
- Only 46% kept every instruction. 23 prompts came back intact, 20 lost an example or a secondary rule, and 7 (14%) were broken.
- The bigger the cut, the more it lost. Prompts that stayed intact were cut by a median 47%. Prompts that lost detail were cut by 66%, and broken ones by 81%.
- Short prompts are safe, long ones aren't. 16 of the 18 prompts under 100 tokens kept everything. Of the 13 prompts over 300 tokens, only 1 did.
- Examples were the first thing to go. 11 prompts lost some or all of their worked examples, even though those examples were what told the model the output format.
- Coding-agent prompts broke most often (5 of 12), because they contain template code and placeholders that a rewrite can't safely touch.
- Support-bot prompts did best: none of the 13 broke, and 7 kept every instruction.
Kept every instruction Lost an example or detail Broke the prompt
Where the prompts came from and how we measured
We used 50 system prompts that real projects publish in their source code, so anyone can check them. Every one comes from an open-source project under the MIT, Apache 2.0 or CC0 license: OpenAI's customer-service agents demo, LangGraph's customer-support tutorial, LlamaIndex, Flowise, Aider, goose, smolagents, gpt-engineer, Fabric, RAGFlow and Awesome ChatGPT Prompts. The full list, with links, is at the end of this article.
We sorted them into four types: 13 support bots, 12 coding agents, 13 writing assistants and 12 RAG prompts (prompts that answer from retrieved documents). They range from 35 to 2,251 tokens, with a median of 183.
On 20 November 2026 we pasted each prompt, unchanged, into the Token Reducer and saved exactly what it returned. One run per prompt, no edits, no retries.
Token counting method
We counted tokens with OpenAI's o200k_base tokenizer (via the tiktoken library), the encoding used by OpenAI's GPT-4o and later models. Claude and Gemini use their own tokenizers, so absolute counts differ by a few percent between providers, but the percentage saved is close.
We didn't use the tool's own counter for the results. The Token Reducer estimates tokens as characters divided by four, and on these 50 prompts that estimate came out a median 23% higher than the real count. It's fine for comparing two versions of one prompt, but don't use it for a budget.
What "kept every instruction" meant, and how we checked it
Each compressed prompt went through two checks:
- An automatic check for exact elements. A script listed every placeholder (
{context_str},{{ question }}), template tag, tool or function name, URL, and quoted reply string in the original, and flagged any that were missing from the compressed version. - A side-by-side read of all 50 pairs. We listed every rule in the original, checked each one against the compressed version, and gave every prompt one of three grades.
- Kept every instruction: each rule, constraint and required string is still there in some wording. Dropping padding ("You are a helpful assistant") or a repeated sentence counts as kept.
- Lost an example or detail: the core task and hard rules survived, but an example, a secondary rule or a nuance was dropped.
- Broke the prompt: a hard rule, a required placeholder or template tag, or the output format was removed or changed, or what came back wasn't a usable prompt.
We didn't run the compressed prompts against a model to compare answers. A missing instruction doesn't always change an answer, so this test shows the risk, not the size of the damage.
Results by prompt type: support bots, coding agents, writing assistants, RAG
| Prompt type | Prompts | Median length (tokens) | Median cut | Kept everything | Lost detail | Broken |
|---|---|---|---|---|---|---|
| Support bots | 13 | 223 | 60% | 7 | 6 | 0 |
| RAG prompts | 12 | 72 | 60% | 7 | 4 | 1 |
| Writing assistants | 13 | 258 | 69% | 5 | 7 | 1 |
| Coding agents | 12 | 209 | 57% | 4 | 3 | 5 |
| All 50 | 50 | 182 | 61% | 23 | 20 | 7 |
- Support bots compressed best. They're mostly plain instructions, and the cuts removed filler like "Your goal is to strive to be the most friendly and helpful support representative on your team", which became "Be friendly, helpful". The losses were secondary rules, such as the seat agent's "Record any special needs".
- RAG prompts are short (median 72 tokens), and 7 of 12 came through intact. The one failure was the worst result in the test (shown below).
- Writing assistants had the biggest median cut, 69%, because the long ones carry pages of style examples. Those examples were exactly what disappeared.
- Coding agents broke most often. Four of the five failures were template problems: gpt-engineer's
FILE_FORMATtoken, which the app replaces at runtime, was dropped twice; goose lost a Jinjais definedguard; smolagents lost an{{agent.output_type}}field. The fifth, smolagents' code agent, lost its examples and its rule to finish with thefinal_answertool.
Kept every instruction Lost an example or detail Broke the prompt
A prompt that compressed well
Flowise's frontline support agent, 89 tokens down to 47 (47% cut), with every rule intact:
You are frontline support staff for Flowise, an e-commerce store that sells computer hardwares.
Be concise in your responses.
You can chat with customers and help them with basic questions, but if the customer is having a billing or technical problem, do not try to answer the question directly or gather information.
Instead, immediately transfer them to the billing or technical team by asking the user to hold for a moment.
Otherwise, just respond conversationally.
You are Flowise support staff for computer hardware. Be concise. For general queries, respond conversationally. For billing/technical issues, do not answer or collect data; immediately ask the user to hold for transfer to the relevant team.
A prompt that broke
Flowise's RAG query rewriter. It tells the model how to turn a question into a search query and gives two examples. The Token Reducer returned only the placeholder, 72 tokens down to 3:
Given the user question and history, construct a short string that can be used for searching vector database. Only generate the query, no meta comments, no explanation
Example:
Question: what are the events happening today?
Query: today's event
Example:
Question: how about the address?
Query: business address of the shop
Question: {{ question }}
Query:
{{ question }}
The other striking failure was Fabric's "tweet" prompt, a long guide to writing tweets. Instead of compressing the guide, the tool followed it and returned a tweet. Both cases show the same risk: the model doing the compression can treat the prompt as instructions for itself rather than as text to shorten.
The five phrases that wasted the most tokens
These are the phrases that appeared most across the 50 prompts and that the tool removed almost every time without losing meaning:
- "You should", "you will", "you can": 46 times in 15 prompts, removed all 46 times. "You should keep answers short" says nothing that "Keep answers short" doesn't.
- "The user" / "the user's": 42 times in 24 prompts, removed 37 times. In a system prompt, the person the model talks to is always the user.
- "You are a…" / "You are an…" openers: in 29 of the 50 prompts, cut or shortened in 20. A role line helps when it sets real expertise. "You are a helpful assistant" doesn't.
- "Make sure (that)" / "ensure that": 11 times in 5 prompts, all removed. "Make sure that you answer every question" is "Answer every question".
- "Please", "remember", "it is important": 9 times in 9 prompts, all removed. Politeness and emphasis words cost tokens on every call and don't change what the model does.
Two prompts also repeated a full instruction word for word. RAGFlow's summary prompt says "DO NOT make things up, especially for numbers" twice.
Worked examples took up far more tokens than any phrase, but they aren't waste. They were the most common thing the tool removed and the most common reason a prompt lost detail.
What it costs: tokens saved × current API prices
A system prompt is sent with every message, so savings multiply with traffic. The table assumes 10,000 messages a day for 30 days (300,000 calls) and counts input tokens only. Prices are standard input prices per million tokens from each provider's pricing page, checked on 20 November 2026.
| Tokens saved per call | Gemini 3.5 Flash ($1.50) | GPT-6.2 Sol or Claude Sonnet 5.5 ($2) | Claude Opus 5.5 ($4) | GPT-6.2 Astra ($8) | Cached input ($0.10) |
|---|---|---|---|---|---|
| 36 tokens (median safe cut in this test) | $16.20 | $21.60 | $43.20 | $86.40 | $1.08 |
| 100 tokens | $45.00 | $60.00 | $120.00 | $240.00 | $3.00 |
| 1,000 tokens | $450.00 | $600.00 | $1,200.00 | $2,400.00 | $30.00 |
Two things stand out. First, the safe cut on a typical short prompt (36 tokens) is worth tens of dollars a month even at this volume. Second, prompt caching changes the math: GPT-6.2 Sol and Claude Sonnet 5.5 both charge $0.10 per million for cached input, a twentieth of the standard price. If your system prompt is already cached, compressing it saves very little.
Sources: OpenAI API pricing, Claude API pricing, Gemini API pricing.
When compression isn't worth it
- The prompt has examples. Examples teach the model the output format. Compress the instructions around them by hand and leave the examples alone.
- The prompt is a template. Placeholders, Jinja tags and runtime tokens like
FILE_FORMATmust survive character for character. Check every one, or don't compress. - The prompt is already cached. At a twentieth of the input price, the saving rarely justifies the risk.
- The prompt is already short. Under 100 tokens, the typical safe saving was about 36 tokens per call. That's worth doing on a high-traffic bot and not worth the effort on an internal tool.
- The prompt contains instructions the compressor might follow. Our two worst failures came from the tool acting on the prompt instead of shortening it.
Where it's worth it: long support and RAG prompts written as plain instructions, sent thousands of times a day, without prompt caching. Compress, then compare the old and new versions rule by rule, and run a few real conversations through both before you switch.
To try it on your own prompt, use the free Token Reducer, then check the length with the Prompt Length Checker. For hand-trimming techniques, see How to reduce AI prompt tokens.
All 50 prompts
Token counts use o200k_base. Each source links to the project's repository. All prompts were taken from the projects' main branches on 20 November 2026; the LangGraph tutorial is from its archived version.
| # | Prompt | Source | Before | After | Cut | Result |
|---|---|---|---|---|---|---|
| CO01 | Aider editblock mode | Aider-AI/aider (Apache-2.0) | 233 | 100 | 57% | Lost detail |
| CO02 | Aider ask mode | Aider-AI/aider (Apache-2.0) | 38 | 19 | 50% | Kept everything |
| CO03 | Aider architect mode | Aider-AI/aider (Apache-2.0) | 92 | 55 | 40% | Kept everything |
| CO04 | Aider wholefile mode | Aider-AI/aider (Apache-2.0) | 72 | 51 | 29% | Kept everything |
| CO05 | Aider help mode | Aider-AI/aider (Apache-2.0) | 196 | 85 | 57% | Lost detail |
| CO06 | Goose main system prompt | block/goose (Apache-2.0) | 235 | 134 | 43% | Broken |
| CO07 | Goose subagent | block/goose (Apache-2.0) | 352 | 114 | 68% | Lost detail |
| CO08 | smolagents code_agent | huggingface/smolagents (Apache-2.0) | 2,251 | 278 | 88% | Broken |
| CO09 | smolagents toolcalling_agent | huggingface/smolagents (Apache-2.0) | 924 | 172 | 81% | Broken |
| CO10 | gpt-engineer generate | gpt-engineer-org/gpt-engineer (MIT) | 194 | 72 | 63% | Broken |
| CO11 | gpt-engineer improve | gpt-engineer-org/gpt-engineer (MIT) | 222 | 90 | 60% | Broken |
| CO12 | gpt-engineer clarify | gpt-engineer-org/gpt-engineer (MIT) | 44 | 30 | 32% | Kept everything |
| RA01 | LlamaIndex text QA system prompt | run-llama/llama_index (MIT) | 72 | 28 | 61% | Kept everything |
| RA02 | LlamaIndex text QA template | run-llama/llama_index (MIT) | 35 | 14 | 60% | Lost detail |
| RA03 | LlamaIndex refine template | run-llama/llama_index (MIT) | 79 | 43 | 46% | Kept everything |
| RA04 | LlamaIndex tree summarize template | run-llama/llama_index (MIT) | 40 | 27 | 32% | Kept everything |
| RA05 | RAGFlow ask_summary | infiniflow/ragflow (Apache-2.0) | 174 | 66 | 62% | Lost detail |
| RA06 | RAGFlow citation_prompt | infiniflow/ragflow (Apache-2.0) | 1,559 | 217 | 86% | Lost detail |
| RA07 | RAGFlow related_question | infiniflow/ragflow (Apache-2.0) | 455 | 54 | 88% | Lost detail |
| RA08 | Simple RAG answerer | FlowiseAI/Flowise (Apache-2.0) | 57 | 24 | 58% | Kept everything |
| RA09 | Agentic RAG query rewriter | FlowiseAI/Flowise (Apache-2.0) | 72 | 3 | 96% | Broken |
| RA10 | Agentic RAG relevance grader | FlowiseAI/Flowise (Apache-2.0) | 94 | 38 | 60% | Kept everything |
| RA11 | Agentic RAG answerer | FlowiseAI/Flowise (Apache-2.0) | 56 | 33 | 41% | Kept everything |
| RA12 | Financial analyst RAG agent | FlowiseAI/Flowise (Apache-2.0) | 44 | 28 | 36% | Kept everything |
| SU01 | Airline triage agent | openai/openai-cs-agents-demo (MIT) | 239 | 92 | 62% | Kept everything |
| SU02 | Airline seat & special services agent | openai/openai-cs-agents-demo (MIT) | 320 | 158 | 51% | Lost detail |
| SU03 | Airline booking & cancellation agent | openai/openai-cs-agents-demo (MIT) | 322 | 171 | 47% | Kept everything |
| SU04 | Airline refunds & compensation agent | openai/openai-cs-agents-demo (MIT) | 291 | 110 | 62% | Lost detail |
| SU05 | Swiss Airlines primary assistant | langchain-ai/langgraph (MIT) | 191 | 76 | 60% | Lost detail |
| SU06 | Swiss Airlines hotel booking assistant | langchain-ai/langgraph (MIT) | 223 | 67 | 70% | Lost detail |
| SU07 | Swiss Airlines car rental assistant | langchain-ai/langgraph (MIT) | 223 | 84 | 62% | Lost detail |
| SU08 | Xbox customer support agent | run-llama/llama_index (MIT) | 50 | 23 | 54% | Kept everything |
| SU09 | IRS tax chatbot | run-llama/llama_index (MIT) | 505 | 181 | 64% | Lost detail |
| SU10 | Computer store frontline support | FlowiseAI/Flowise (Apache-2.0) | 89 | 47 | 47% | Kept everything |
| SU11 | Computer store billing support | FlowiseAI/Flowise (Apache-2.0) | 51 | 21 | 59% | Kept everything |
| SU12 | Customer support representative | FlowiseAI/Flowise (Apache-2.0) | 156 | 59 | 62% | Kept everything |
| SU13 | ACME support agent with handoff | FlowiseAI/Flowise (Apache-2.0) | 109 | 63 | 42% | Kept everything |
| WR01 | Fabric improve_writing | danielmiessler/fabric (MIT) | 137 | 46 | 66% | Kept everything |
| WR02 | Fabric write_essay | danielmiessler/fabric (MIT) | 258 | 60 | 77% | Lost detail |
| WR03 | Fabric improve_academic_writing | danielmiessler/fabric (MIT) | 162 | 57 | 65% | Lost detail |
| WR04 | Fabric humanize | danielmiessler/fabric (MIT) | 1,931 | 87 | 96% | Lost detail |
| WR05 | Fabric create_newsletter_entry | danielmiessler/fabric (MIT) | 311 | 75 | 76% | Lost detail |
| WR06 | Fabric create_formal_email | danielmiessler/fabric (MIT) | 559 | 136 | 76% | Lost detail |
| WR07 | Fabric tweet | danielmiessler/fabric (MIT) | 851 | 71 | 92% | Broken |
| WR08 | Fabric create_story_explanation | danielmiessler/fabric (MIT) | 532 | 165 | 69% | Lost detail |
| WR09 | Fabric create_5_sentence_summary | danielmiessler/fabric (MIT) | 269 | 53 | 80% | Kept everything |
| WR10 | Shakespeare writing assistant | run-llama/llama_index (MIT) | 115 | 38 | 67% | Lost detail |
| WR11 | Marketing writing assistant | run-llama/llama_index (MIT) | 82 | 54 | 34% | Kept everything |
| WR12 | Essay assistant | FlowiseAI/Flowise (Apache-2.0) | 42 | 23 | 45% | Kept everything |
| WR13 | Tech writer | f/awesome-chatgpt-prompts (CC0-1.0) | 125 | 52 | 58% | Kept everything |
Test run on 20 November 2026 with the Token Reducer's default model. Updated November 20, 2026.
Data license: the results table on this page is published under CC BY 4.0. Credit usertools.app if you reuse it. The prompts themselves stay under their projects' own licenses.

Marketing Director at Fidelis Soft and content contributor for the site.
Connect on LinkedIn