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

personValentina Schneidercalendar_today November 20, 2026
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.
Chart 1: What happened to each prompt, by type

Kept every instruction   Lost an example or detail   Broke the prompt

Support bots (13 prompts, median cut 60%)
76
RAG prompts (12 prompts, median cut 60%)
741
Writing assistants (13 prompts, median cut 69%)
571
Coding agents (12 prompts, median cut 57%)
435

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:

  1. 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.
  2. 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 typePromptsMedian length (tokens)Median cutKept everythingLost detailBroken
Support bots1322360%760
RAG prompts127260%741
Writing assistants1325869%571
Coding agents1220957%435
All 505018261%23207
  • 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_FORMAT token, which the app replaces at runtime, was dropped twice; goose lost a Jinja is defined guard; smolagents lost an {{agent.output_type}} field. The fifth, smolagents' code agent, lost its examples and its rule to finish with the final_answer tool.
Chart 2: Longer prompts lost more

Kept every instruction   Lost an example or detail   Broke the prompt

Under 100 tokens (18 prompts, median cut 46%)
1611
100 to 299 tokens (19 prompts, median cut 62%)
6103
300 to 699 tokens (8 prompts, median cut 68%)
17
700 tokens or more (5 prompts, median cut 88%)
23

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:

  1. "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.
  2. "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.
  3. "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.
  4. "Make sure (that)" / "ensure that": 11 times in 5 prompts, all removed. "Make sure that you answer every question" is "Answer every question".
  5. "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 callGemini 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_FORMAT must 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.

#PromptSourceBeforeAfterCutResult
CO01Aider editblock modeAider-AI/aider (Apache-2.0)23310057%Lost detail
CO02Aider ask modeAider-AI/aider (Apache-2.0)381950%Kept everything
CO03Aider architect modeAider-AI/aider (Apache-2.0)925540%Kept everything
CO04Aider wholefile modeAider-AI/aider (Apache-2.0)725129%Kept everything
CO05Aider help modeAider-AI/aider (Apache-2.0)1968557%Lost detail
CO06Goose main system promptblock/goose (Apache-2.0)23513443%Broken
CO07Goose subagentblock/goose (Apache-2.0)35211468%Lost detail
CO08smolagents code_agenthuggingface/smolagents (Apache-2.0)2,25127888%Broken
CO09smolagents toolcalling_agenthuggingface/smolagents (Apache-2.0)92417281%Broken
CO10gpt-engineer generategpt-engineer-org/gpt-engineer (MIT)1947263%Broken
CO11gpt-engineer improvegpt-engineer-org/gpt-engineer (MIT)2229060%Broken
CO12gpt-engineer clarifygpt-engineer-org/gpt-engineer (MIT)443032%Kept everything
RA01LlamaIndex text QA system promptrun-llama/llama_index (MIT)722861%Kept everything
RA02LlamaIndex text QA templaterun-llama/llama_index (MIT)351460%Lost detail
RA03LlamaIndex refine templaterun-llama/llama_index (MIT)794346%Kept everything
RA04LlamaIndex tree summarize templaterun-llama/llama_index (MIT)402732%Kept everything
RA05RAGFlow ask_summaryinfiniflow/ragflow (Apache-2.0)1746662%Lost detail
RA06RAGFlow citation_promptinfiniflow/ragflow (Apache-2.0)1,55921786%Lost detail
RA07RAGFlow related_questioninfiniflow/ragflow (Apache-2.0)4555488%Lost detail
RA08Simple RAG answererFlowiseAI/Flowise (Apache-2.0)572458%Kept everything
RA09Agentic RAG query rewriterFlowiseAI/Flowise (Apache-2.0)72396%Broken
RA10Agentic RAG relevance graderFlowiseAI/Flowise (Apache-2.0)943860%Kept everything
RA11Agentic RAG answererFlowiseAI/Flowise (Apache-2.0)563341%Kept everything
RA12Financial analyst RAG agentFlowiseAI/Flowise (Apache-2.0)442836%Kept everything
SU01Airline triage agentopenai/openai-cs-agents-demo (MIT)2399262%Kept everything
SU02Airline seat & special services agentopenai/openai-cs-agents-demo (MIT)32015851%Lost detail
SU03Airline booking & cancellation agentopenai/openai-cs-agents-demo (MIT)32217147%Kept everything
SU04Airline refunds & compensation agentopenai/openai-cs-agents-demo (MIT)29111062%Lost detail
SU05Swiss Airlines primary assistantlangchain-ai/langgraph (MIT)1917660%Lost detail
SU06Swiss Airlines hotel booking assistantlangchain-ai/langgraph (MIT)2236770%Lost detail
SU07Swiss Airlines car rental assistantlangchain-ai/langgraph (MIT)2238462%Lost detail
SU08Xbox customer support agentrun-llama/llama_index (MIT)502354%Kept everything
SU09IRS tax chatbotrun-llama/llama_index (MIT)50518164%Lost detail
SU10Computer store frontline supportFlowiseAI/Flowise (Apache-2.0)894747%Kept everything
SU11Computer store billing supportFlowiseAI/Flowise (Apache-2.0)512159%Kept everything
SU12Customer support representativeFlowiseAI/Flowise (Apache-2.0)1565962%Kept everything
SU13ACME support agent with handoffFlowiseAI/Flowise (Apache-2.0)1096342%Kept everything
WR01Fabric improve_writingdanielmiessler/fabric (MIT)1374666%Kept everything
WR02Fabric write_essaydanielmiessler/fabric (MIT)2586077%Lost detail
WR03Fabric improve_academic_writingdanielmiessler/fabric (MIT)1625765%Lost detail
WR04Fabric humanizedanielmiessler/fabric (MIT)1,9318796%Lost detail
WR05Fabric create_newsletter_entrydanielmiessler/fabric (MIT)3117576%Lost detail
WR06Fabric create_formal_emaildanielmiessler/fabric (MIT)55913676%Lost detail
WR07Fabric tweetdanielmiessler/fabric (MIT)8517192%Broken
WR08Fabric create_story_explanationdanielmiessler/fabric (MIT)53216569%Lost detail
WR09Fabric create_5_sentence_summarydanielmiessler/fabric (MIT)2695380%Kept everything
WR10Shakespeare writing assistantrun-llama/llama_index (MIT)1153867%Lost detail
WR11Marketing writing assistantrun-llama/llama_index (MIT)825434%Kept everything
WR12Essay assistantFlowiseAI/Flowise (Apache-2.0)422345%Kept everything
WR13Tech writerf/awesome-chatgpt-prompts (CC0-1.0)1255258%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.

VS
Photo of Valentina Schneider
Written by
Valentina Schneider · Editor

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

Connect on LinkedIn