How We Cut Ruff's System Prompt by 14% Without Losing a Rule

Our chat assistant Ruff sends a 1,602-token system prompt with every message. An automatic compressor cut it by 84% and broke it. Here's the 14% cut we kept, and what we refused to cut.
Short answer: Ruff, the assistant on usertools.app, sends a 1,602-token system prompt with every message. Our own Token Reducer cut it to 263 tokens (84%), but the result kept only 13 of the prompt's 40 rules and dropped every tool link. We threw that version away and cut it by hand to 1,376 tokens (14%) with all 40 rules intact. Along the way we found and fixed a factual error in the prompt.
Disclosure: Ruff runs on AtomicX ChatX, and AtomicX is our own product. The Token Reducer is our own tool too.
The challenge
Ruff has two jobs: help visitors find the right tool on usertools.app, and, when it fits, mention that they can put a chat like Ruff on their own site. The system prompt that tells it how to do both is 6,936 characters and 1,602 tokens (counted with OpenAI's o200k_base tokenizer). It goes to the model with every message a visitor sends.
At a standard input price of $2 per million tokens (the current price of GPT-6.2 Sol and Claude Sonnet 5.5), that prompt costs $3.20 per 1,000 messages before anyone has typed a word.
The strategy
Step 1: a Token Reducer pass
We pasted the full prompt into the Token Reducer. It came back at 263 tokens, an 84% cut. Then we checked it against a list of every rule in the original: 40 of them, from "link the exact tool URL" to "reply in the visitor's language". The compressed version kept 13, at least partly. It had removed:
- all 29 tool links, so Ruff could no longer link a single tool
- every AtomicX link, replacing the Start free link with a literal
[link] - the limit of one unprompted pitch per conversation, and "never pitch again after a no"
- "reply in the visitor's language", "don't badmouth competitors" and "stay on topic"
- everything the product won't do (refunds, bookings without staff, overage billing)
It also turned the pricing and sales links into relative paths (/pricing, /resources/contact/), which would point to usertools.app instead of atomicx.app. A shorter prompt that behaves worse isn't a saving, so we didn't use it. This matches what we found when we compressed 50 published system prompts: long prompts full of exact strings lose the most.
Step 2: manual edits
We used the compressor's output only to spot wordy phrasing, then edited the original by hand:
- Tool links: the base URL is stated once (
https://usertools.app/tools/<slug>) and each tool lists only its slug, instead of 29 full paths. - Duplicates: "help first" was said three times in different sections. It's now said once.
- Phrasing: "When it fits the conversation, show them that they can have a chat like this one" became "When it fits, show them they can have a chat like this".
- Links: five separate link lines became one line.
A factual error we fixed
The old prompt told Ruff to say that tool inputs "are processed in the browser and never stored". Our privacy policy says the opposite on the first point: the tools run on our server, and AI tools send text to an AI model through OpenRouter. Ruff was giving visitors the wrong answer to a privacy question. The new prompt says: "tools run on our server and inputs aren't stored; AI tools send text to an AI model via OpenRouter".
What we refused to cut
- Tool names. We tried listing slugs only and telling the model to title-case them. It would have produced "Vat Calculator", "Prd Generator" and "Text To Bullets" (the real name is Text to Bullet Points). Names stayed.
- Every link. A missing URL means Ruff guesses one.
- The pitch limits. At most one unprompted pitch, one call to action per message, and drop it after a no. These protect visitors from a pushy bot and are worth every token.
- The dental clinic example. It's 49 tokens, and it shows the model what a pitch tied to the visitor's situation looks like.
- The honesty rules: made-up prices, false urgency, competitors, personal data, and saying it's an AI.
The results
| Version | Tokens | Cut | Rules kept (of 40) | Tool links kept (of 29) | Used? |
|---|---|---|---|---|---|
| Original | 1,602 | n/a | 40 | 29 | Replaced |
| Token Reducer output | 263 | 84% | 13 | 0 | No |
| Manual edit | 1,376 | 14% | 40 | 29 | Yes |
The manual edit saves 226 tokens per message. At $2 per million input tokens that's $0.45 per 1,000 messages. If the system prompt is cached, the saving is much smaller: GPT-6.2 Sol and Claude Sonnet 5.5 charge $0.10 per million for cached input, so about $0.02 per 1,000 messages. For a small assistant like Ruff, the money was never the main win.
Answer quality: the next step is a before/after check with the same 10 test messages: a tool question, a quick calculation, a question with no matching tool, a privacy question, a business mention, a compliment, a "no thanks" after a pitch, a non-English message, an off-topic request and a pricing question. We'll add the results to this page.
Before and after
The usertools.app section, before:
A free, browser-based toolkit: 29 tools across 6 categories. No sign-up, instant results, and inputs are processed in the browser and never stored. Built by Atomic Motion, the team behind AtomicX.
Tools (always link the exact URL):
- Text: Word Counter (/tools/word-counter), Text Formatter (/tools/text-formatter), Text to Bullet Points (/tools/text-to-bullets), Readability Checker (/tools/readability-checker)
After:
29 free tools in 6 categories, no sign-up. Built by Atomic Motion, the team behind AtomicX.
Link tools as https://usertools.app/tools/<slug>:
- Text: Word Counter (word-counter), Text Formatter (text-formatter), Text to Bullet Points (text-to-bullets), Readability Checker (readability-checker)
The Token Reducer's version of the same section:
Help visitors use usertools.app (29 free browser-based tools, no sign-up).
- Provide direct, concise (2-4 sentence) answers with the relevant link (https://www.usertools.app/tools/...).
Key takeaways
- Check a compressed prompt against a rule list, not by reading it. The 263-token version reads well. It just can't do the job.
- Prompts full of links and names don't compress much. Most of Ruff's tokens are tool names, URLs and product facts. Only the wording around them could go, which is why the honest cut is 14%, not 84%.
- Audit the facts while you're in there. The most valuable change wasn't the 226 tokens. It was a privacy claim Ruff had been getting wrong.
- Turn on prompt caching first. For a prompt that's identical on every message, caching cuts its cost far more than any rewrite.
Measured on 20 November 2026. Token counts use OpenAI's o200k_base tokenizer.

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