summaryrefslogtreecommitdiff
path: root/docs/cli/configuration.md
diff options
context:
space:
mode:
authorJacob MacDonald <[email protected]>2025-08-07 07:34:40 -0700
committerGitHub <[email protected]>2025-08-07 14:34:40 +0000
commit6ae75c9f32a968efa50857a8f24b958a58a84fd6 (patch)
tree6daccaf6fba4ac462a19ed75e198c02840f6a1a3 /docs/cli/configuration.md
parent36750ca49b1b2fa43a3d7904416b876203a1850f (diff)
Add a context percentage threshold setting for auto compression (#5721)
Diffstat (limited to 'docs/cli/configuration.md')
-rw-r--r--docs/cli/configuration.md12
1 files changed, 12 insertions, 0 deletions
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