top of page

Google Gemini CLI 0.9: interactive coding, terminal agents, and context-aware development

ree

Gemini CLI 0.9 represents Google’s most ambitious step in bringing its Gemini 2.5 models directly into the developer workflow. Instead of being a browser-based chatbot, Gemini now runs inside your terminal, understands your project structure, executes shell commands safely, and remembers what just happened. The result is a self-contained coding partner that acts and reacts in the same environment you do.

·····

.....

What Gemini CLI is and why it matters.

Gemini CLI is an AI agent for the command line built around the Gemini 2.5 Pro and Flash models. It goes beyond text generation: it can explore repositories, propose file edits, run tests, open pull requests, and interact with local or remote tools.Unlike older “chat in the terminal” experiments, version 0.9 introduces a full pseudo-terminal that allows Gemini to operate like a real shell companion—observing your commands, retaining context, and suggesting actions in real time.

This effectively transforms Gemini from a conversational model into an operational assistant for software engineering, DevOps, and data workflows.

·····

.....

What’s new in version 0.9.

Version 0.9 is the release that moves Gemini CLI from prototype to production-ready agent. Google focused on interactivity, context persistence, safety, and extensibility.

......

Key new capabilities in Gemini CLI 0.9

Feature

Description

Why it matters

Full pseudo-terminal (PTY)

Gemini can now handle interactive tools like vim, git rebase -i, top, and shell prompts.

Enables uninterrupted workflows inside the same terminal session.

Persistent session context

Tracks recent commands, edited files, and test results automatically.

Lets Gemini reason about what just happened without manual copy-paste.

Structured interactive output

Adds colorized diffs, step-by-step summaries, and status messages.

Improves auditability and developer trust.

Safe command execution

Commands must be confirmed; sandboxing via Docker / Podman supported.

Reduces risk of accidental or malicious code execution.

Extensions system

Developers can add integrations via gemini extensions install <repo>.

Allows internal workflows or third-party tools to be embedded.

·····

.....

How the new interactive terminal works.

Gemini CLI 0.9 introduces a real PTY layer that mirrors your shell. It doesn’t simulate commands—it runs them. When you start an interactive editor or process, the agent remains connected and interprets screen output, enabling iterative collaboration.For example:

$ gemini suggest fix failing tests
$ pytest
$ gemini explain results

Gemini sees the test failure, analyzes the logs, and proposes a patch—all within the same flow.

This turns the CLI into an event-driven assistant, capable of reasoning about live program output and maintaining continuity across actions.

·····

.....

Context awareness and memory in practice.

Every action in Gemini CLI updates a lightweight session memory. The model retains awareness of:

  • recent commands,

  • modified files,

  • the current branch, and

  • any errors seen in output.

So after a failed build, you can simply type:

gemini fix it

and Gemini knows which failure to address. This persistent context bridges the gap between chat reasoning and real-world execution.

·····

.....

Safety and sandboxing improvements.

Early testing in mid-2025 revealed security concerns—AI agents could unknowingly execute unsafe commands embedded in repos or READMEs. Gemini CLI 0.9 introduces a strict approval flow:

  1. Every command plan is displayed before execution.

  2. Users can allow, modify, or deny.

  3. Optional sandbox isolation limits access to the host environment.

Google’s documentation encourages developers to use containerized sandboxes when granting write or network permissions.

......

Safety layers in Gemini CLI 0.9

Layer

Purpose

Typical configuration

Command preview

Shows exact shell instructions before run.

Always enabled.

User confirmation

Blocks execution until approval.

Default for write/network actions.

Sandbox isolation

Runs commands in Docker / Podman.

Recommended for untrusted repos.

Audit log

Records every AI-initiated command.

Stored locally per session.

·····

.....

Extensions and ecosystem growth.

Gemini CLI now supports installable extensions that teach the AI how to use custom tools or APIs. Developers can package internal workflows—deployment scripts, testing frameworks, analytics utilities—and share them through repositories.

gemini extensions install github.com/org/deploy-helper

After installation, Gemini automatically calls these tools as part of its reasoning loop, enabling organization-specific automations without manual scripting.This transforms the CLI into a programmable AI layer for each company’s infrastructure.

·····

.....

Integration with editors and repositories.

Version 0.9 expands beyond the terminal. Gemini CLI connects with the Zed editor through the Agent Client Protocol, allowing developers to view proposed diffs and approve them interactively.Google also previewed integration with GitHub Actions—the agent can label issues, draft pull requests, and respond to @gemini-cli mentions in comments.

These extensions align Gemini CLI with enterprise CI/CD pipelines and mirror how “Copilot Agents” work, but with greater context depth and multimodal capabilities.

·····

.....

Developer experience and performance.

Gemini CLI 0.9 leverages Gemini 2.5 Pro or Flash, depending on user settings:

  • Pro for deep reasoning and multi-file refactoring,

  • Flash for faster, lighter interactions.

Free beta limits are generous—around 60 requests per minute and 1 000 per day—making it accessible for testing.Latency remains higher in Pro mode but significantly reduced in Flash, balancing depth with responsiveness.

·····

.....

How Gemini CLI compares with other coding agents.

......

Agent comparison snapshot

Feature

Gemini CLI 0.9

Claude Code (Sonnet 4.5)

GitHub Copilot Agents

Terminal interactivity

✅ Full PTY; runs vim, git rebase -i

⚠️ Limited shell; browser-based

⚠️ Restricted to IDEs

Context memory

✅ Persistent session memory

✅ Conversational memory

⚠️ Session-limited

Extensions / SDK

✅ Open API + CLI extensions

✅ Agent SDK (JavaScript/Python)

❌ Closed

Sandbox execution

✅ Docker / Podman support

⚠️ Partial; manual setup

❌ IDE-sandbox only

Repo actions

✅ Git integration + PR agent

✅ Artifacts; coding agents

✅ GitHub native

Multimodal support

✅ (image/audio via Gemini 2.5)

⚠️ Image only

❌ Text/code only

Gemini CLI now competes directly with Anthropic’s Claude Code and GitHub’s Copilot Agents, but its full-terminal design makes it uniquely flexible for open environments or DevOps automation.

·····

.....

Known limitations and practical advice.

Gemini CLI 0.9 is powerful but still evolving:

  • Security remains critical. Always review generated commands before approval.

  • Latency may appear in long “thinking” sessions under Gemini 2.5 Pro.

  • Nightly builds change quickly; stay on tagged releases for stability.

  • Best results occur in Google-aligned stacks (Cloud / Vertex), though extensions allow broad compatibility.

To maintain safety and performance:

  • Run in a containerized dev environment.

  • Use version-controlled repos for all AI-generated changes.

  • Treat the AI as a collaborator—review every diff.

·····

.....

Why version 0.9 marks a turning point.

Gemini CLI 0.9 unifies chat reasoning, command execution, and code generation in one interface. Developers no longer have to switch between terminals, editors, and browser chats; the AI now acts where the work actually happens.With its extension system, safety model, and persistent context, it is the first large-scale implementation of an operational coding agent—capable of both thinking and doing.

·····

.....

FOLLOW US FOR MORE.

DATA STUDIOS

.....

bottom of page