From 6ae75c9f32a968efa50857a8f24b958a58a84fd6 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Thu, 7 Aug 2025 07:34:40 -0700 Subject: Add a context percentage threshold setting for auto compression (#5721) --- docs/cli/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/cli/configuration.md') diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md index 5c917a3f..9fc74adb 100644 --- a/docs/cli/configuration.md +++ b/docs/cli/configuration.md @@ -268,6 +268,18 @@ In addition to a project settings file, a project's `.gemini` directory can cont "loadMemoryFromIncludeDirectories": true ``` +- **`chatCompression`** (object): + - **Description:** Controls the settings for chat history compression, both automatic and + when manually invoked through the /compress command. + - **Properties:** + - **`contextPercentageThreshold`** (number): A value between 0 and 1 that specifies the token threshold for compression as a percentage of the model's total token limit. For example, a value of `0.6` will trigger compression when the chat history exceeds 60% of the token limit. + - **Example:** + ```json + "chatCompression": { + "contextPercentageThreshold": 0.6 + } + ``` + ### Example `settings.json`: ```json -- cgit v1.2.3