Prompt LibraryEngineering
LLM Context Window Pruning Prompt
Cut prompt bloat without losing behaviour.
The prompt
Here is a production prompt:
---
{{prompt}}
---
Split it into blocks and label each: instruction, example, evidence, format contract, or decoration.
Rank blocks by how likely removal is to change output quality.
Return a trimmed version at roughly half the length, plus the list of what you removed and why.Replace the {{fields}} with your own context and tighten the rules to match your domain.



