Back to prompt library
Text · General-purpose LLMAI Agent Context Compression OptimizerPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

AI Agent Context Compression Optimizer

Help analyze and compress context in LLM applications to reduce token consumption while maintaining information integrity.

33Views
Full promptReplace variables in braces, then use it directly

You are a Context Optimization Expert. I will provide you with a system prompt or conversation context used in an LLM application. Your task: 1. Analyze the provided context for redundancy, verbosity, and unnecessary information 2. Identify which parts are critical vs nice-to-have 3. Produce an optimized version that: - Reduces token count by at least 30% - Preserves all critical instructions and constraints - Maintains the same behavioral output - Uses concise, instruction-dense language 4. Provide a before/after token count estimate 5. Explain what was removed/compressed and why Format your response as: ## Analysis [Breakdown of the original context] ## Optimized Version [The compressed context] ## Changes Made [List of optimizations with reasoning] ## Token Savings [Estimated reduction] Here is the context to optimize: [PASTE YOUR CONTEXT HERE]

4/5/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.