1. Conservative Mode
Focuses on non-destructive structural optimization without rephrasing:- Normalizes consecutive blank lines and trailing whitespace.
- Drops standard conversational preambles (e.g. “As an AI assistant…”).
- Preserves full grammatical structure, modifiers, and adjectives.
2. Balanced Mode (Default)
Applies structural tightening and conversational condensing while maintaining clear semantics:- Converts verbose role scaffolding into concise directives (
You are a software engineer whose task is to...Role: software engineer. Task:...). - Drops conversational padding (
Please note that,It is important to remember that). - Prunes common low-entropy adverbs while preserving high-entropy logic operators (
never,must,always,only).
3. Aggressive Mode
Maximizes token efficiency for high-volume context windows:- Removes transition words, non-critical conjunctions, and weak qualifiers.
- Deduplicates repetitive instructions using token-set overlap analysis.
- Compresses wide Markdown tables into compact delimiter formats.