SPEC Prompt Compactor (Beta)
Reduce prompt filler while protecting code, URLs, emails, paths, and quoted strings. Output stays plain English (works with any LLM). Lossy by design.
Runs entirely in your browser. We don’t receive or store your text.
Live SPEC Demo
Prompt / Text
0 charsCompacted Output
0 charsTry These Examples
Polite Filler
"Can you please summarize this information and generate a short response for the assistant?"
Try: BalancedCode + URL Safe
"Explain this snippet: `SELECT * FROM users WHERE id = 1;` and check https://ottobot.org/projects/spec"
Keeps protected segmentsPaths + Tags
"Run llama3.1:8b-instruct-q4_K_M on /data/ai-system/kiah.py and summarize the output."
Leaves paths/tags intactMost Aggressive
"Would you please help me figure out what I should do next with this configuration?"
Try: AggressiveHow SPEC Works
Polite Prefix Trimming
Removes common prompt boilerplate like “can you please…” (lossy, but usually safe)
Stopword Removal
Drops low-information words to reduce token waste (profile-dependent)
Protected Segments
Leaves structured content untouched (code blocks, inline code, URLs, emails, paths, quoted strings)
Profiles
safe keeps more words. balanced removes more. aggressive removes the most.
Help Us Improve SPEC
SPEC is in beta. If you find prompts where compaction hurts meaning, or where protected segments should be expanded, send them in. Want early access to the SDK/API? Join the waitlist.