Gemini CLIcontext-managementbuilt-in

/compress

Replace the current chat context with a summary to save tokens and free up context window space.

When to use

  • Long sessions that are approaching context limits
  • Before starting a new phase of a task

More Gemini CLI commands