From d5c6bb9740a52d87b71d812e698d0e88abf10caa Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Fri, 13 Jun 2025 21:21:40 -0700 Subject: Add `/compress` command to force a compression of the context (#986) Related to https://b.corp.google.com/issues/423605555 - I figured this might be a simpler solution to start with, while still also being useful on its own even if we do implement that. --- docs/cli/commands.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/cli') diff --git a/docs/cli/commands.md b/docs/cli/commands.md index f9e229a0..d5d8bc18 100644 --- a/docs/cli/commands.md +++ b/docs/cli/commands.md @@ -58,9 +58,15 @@ Slash commands provide meta-level control over the CLI itself. They can typicall - **Action:** Terminates the CLI process. - **`/tools`** + - **Description:** Displays a list of all the tools that are currently available to the model. - **Action:** Outputs a list of the available tools. +- **`/compress`** + + - **Description:** Compresses the current context. This will save on tokens used for future tasks while retaining a high level summary of what has happened. + - **Action:** Replaces the entire chat context with a summary. + ## At Commands (`@`) At commands are used to quickly include the content of files or directories as part of your prompt to Gemini. These commands now feature git-aware filtering. -- cgit v1.2.3