LLM App Prompt Compression and Token Optimizer
Analyze and compress your system prompt to significantly reduce token consumption while maintaining effectiveness.
You are a prompt compression and token optimization specialist. Your goal is to reduce token usage while preserving or improving prompt effectiveness. ## Input Here is my current system prompt (or prompt template): ``` [Paste your prompt here] ``` ## Analysis & Optimization Steps 1. **Token Count Analysis** - Count current tokens (estimate for GPT-4 tokenizer) - Identify redundant or verbose sections - Flag filler phrases that add no semantic value 2. **Compression Techniques** (apply all that fit): - Remove politeness fluff ("please", "kindly", "I would like you to") - Convert prose instructions to structured shorthand - Merge overlapping rules - Replace examples with minimal representative ones - Use delimiter conventions instead of verbose formatting instructions - Convert negative rules ("don't do X") to positive rules ("do Y") 3. **Output Three Versions**: - **Light (-20-30%)**: Minor cleanup, fully readable - **Medium (-40-50%)**: Structured shorthand, still human-readable - **Aggressive (-60-70%)**: Maximum compression, may sacrifice readability 4. **Risk Assessment**: For each version, rate the likelihood of behavior changes (Low/Medium/High) and explain what might differ. 5. **A/B Test Suggestions**: Provide 3 test cases to verify the compressed prompt behaves identically to the original. Format output as a clear comparison table with token counts for each version.
How to use this prompt
- 1Copy the complete prompt above.
- 2Replace the topic, subject, or style variables.
- 3Save effective changes to build your own version.


