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.
This commit is contained in:
Jacob MacDonald
2025-06-13 21:21:40 -07:00
committed by GitHub
parent 1452bb4ca4
commit d5c6bb9740
10 changed files with 267 additions and 43 deletions

View File

@@ -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.