An open-source AI agent that brings the power of Gemini directly into your terminal.
gemini-cli v0.4.0-preview.2 adds session recording, smart edits, fuzzy command matching, citations, extension linking, and more.
$ git clone --branch v0.4.0-preview.2 https://github.com/google-gemini/gemini-cli.git # already have the repo? check out this version: $ git checkout v0.4.0-preview.2
$ gemini --session-summary
$ gemini extensions link /path/to/my-extension $ gemini "Summarize the changes in the last 10 git commits" - ›New
--session-summaryflag captures a summary of the current session. - ›Adds
gemini extensions linkcommand to link a local extension by path. - ›Adds flag to update all installed extensions at once.
- ›Supports installing extensions using
org/reposhorthand syntax. - ›New Smart Edit (replace) tool for more precise in-file edits aligned with the EditTool.
+20 moreshow less
- ›Integrates chat recording into GeminiChat via session recording support.
- ›Adds fuzzy matching for slash-command suggestions in the CLI prompt.
- ›Shows citations at the end of each conversation turn.
- ›Adds syntax highlighting for
/commandsand@file/pathsin the input prompt. - ›Adds footer configuration settings for UI customization.
- ›Adds
enforcedAuthTypesetting to lock down the authentication method. - ›Supports Ctrl+Backspace to delete a word backward in the input field.
- ›Adds a Pro Quota Dialog to surface quota upgrade options.
- ›Adds MCP loading indicator when initializing the CLI.
- ›Handles nested
.gitignorefiles for more accurate file filtering. - ›Adds a positional argument for passing a prompt directly on the command line.
- ›Simplifies MCP server timeout configuration.
- ›Supports resolving environment variables in extension configuration.
- ›Merges general settings from multiple configuration sources.
- ›Folder trust is now generally available — the feature flag has been removed.
- ›MCP server connections are skipped in untrusted folders.
- ›Extensions refuse to load from untrusted workspaces.
- ›CLI now restarts automatically when folder trust settings change.
- ›Screen reader accessibility updates for improved a11y support.
- ›Adds support for custom witty loading messages.
2 more releases in this issue · 2025-09-06
gemini-cli v0.5.0-nightly adds extension update notifications, large tool output file offloading, and hidden slash commands.
$ git clone --branch v0.5.0-nightly.20250906.968e9389 https://github.com/google-gemini/gemini-cli.git # already have the repo? check out this version: $ git checkout v0.5.0-nightly.20250906.968e9389
source argument instead of a named flag.$ gemini extensions install <source> - ›Adds in-CLI notifications when a new extension version is available, with the ability to update directly from the prompt.
- ›Saves large tool outputs to a file and returns truncated lines to the model, preventing context overflow on verbose shell commands.
- ›Supports marking slash commands as hidden, enabling internal or developer-only commands that don't surface in the help UI.
- ›Makes
sourcea positional argument inextensions install, simplifying the install invocation. - ›Adds OpenTelemetry logging for
FileOperationEvent, expanding observability coverage for file-based tool actions.
+1 moreshow less
- ›Improves performance of shell commands that produce large volumes of output.
- !The telemetry fields
ai_added_linesandai_removed_linesare renamed tomodel_added_linesandmodel_removed_lines; any dashboards or pipelines consuming these field names will break.
gemini-cli v0.4.0-preview.1 adds session recording, smart edit, fuzzy command matching, citations, extension linking, and more new capabilities.
$ git clone --branch v0.4.0-preview.1 https://github.com/google-gemini/gemini-cli.git # already have the repo? check out this version: $ git checkout v0.4.0-preview.1
$ gemini --session-summary
$ gemini extensions link <path> $ gemini "Summarize the file main.go" - ›Adds
--session-summaryflag to generate a summary at the end of a session. - ›Adds
gemini extensions linkcommand to link local extensions for development. - ›Adds flag to update all extensions at once.
- ›Supports installing extensions using
org/reposhorthand syntax. - ›Adds a Smart Edit (replace) tool for more precise, targeted file edits.
+16 moreshow less
- ›Adds fuzzy matching for slash-command suggestions in the CLI prompt.
- ›Shows citations at the end of each response turn.
- ›Adds syntax highlighting for
/commandsand@file/pathsin the input prompt. - ›Adds footer configuration settings for UI customization.
- ›Supports Ctrl+Backspace to delete a word backward in the input prompt.
- ›Integrates chat recording into GeminiChat sessions.
- ›Handles nested
.gitignorefiles when determining file visibility. - ›Adds a Pro Quota Dialog to surface quota information to users.
- ›Adds MCP loading indicator when initializing the CLI.
- ›Skips MCP server connections in untrusted folders (folder trust enforcement).
- ›Adds
enforcedAuthTypesetting to lock down authentication method. - ›Simplifies MCP server timeout configuration.
- ›Merges general settings from multiple configuration sources.
- ›Supports a positional argument for the prompt (pass prompt directly on the command line).
- ›Adds custom witty loading messages support.
- ›Enables citations by default for eligible users.