@@ -35,6 +35,9 @@ usage: aider [-h] [--model] [--openai-api-key] [--anthropic-api-key]
3535 [--show-model-warnings | --no-show-model-warnings]
3636 [--check-model-accepts-settings | --no-check-model-accepts-settings]
3737 [--max-chat-history-tokens]
38+ [--enable-context-compaction | --no-enable-context-compaction]
39+ [--context-compaction-max-tokens]
40+ [--context-compaction-summary-tokens]
3841 [--cache-prompts | --no-cache-prompts]
3942 [--cache-keepalive-pings] [--map-tokens]
4043 [--map-refresh] [--map-multiplier-no-files]
@@ -241,6 +244,25 @@ Aliases:
241244Soft limit on tokens for chat history, after which summarization begins. If unspecified, defaults to the model's max_chat_history_tokens.
242245Environment variable: ` AIDER_MAX_CHAT_HISTORY_TOKENS `
243246
247+ ## Context Compaction:
248+
249+ ### ` --enable-context-compaction `
250+ Enable automatic compaction of chat history to conserve tokens (default: False)
251+ Default: False
252+ Environment variable: ` AIDER_ENABLE_CONTEXT_COMPACTION `
253+ Aliases:
254+ - ` --enable-context-compaction `
255+ - ` --no-enable-context-compaction `
256+
257+ ### ` --context-compaction-max-tokens VALUE `
258+ The maximum number of tokens in the conversation before context compaction is triggered. (default: 80% of model's context window)
259+ Environment variable: ` AIDER_CONTEXT_COMPACTION_MAX_TOKENS `
260+
261+ ### ` --context-compaction-summary-tokens VALUE `
262+ The target maximum number of tokens for the generated summary. (default: 4096)
263+ Default: 4096
264+ Environment variable: ` AIDER_CONTEXT_COMPACTION_SUMMARY_TOKENS `
265+
244266## Cache settings:
245267
246268### ` --cache-prompts `
0 commit comments