lockstep
4 min readNaman Jain

Gemini CLI vs Claude Code vs Codex CLI (and Antigravity CLI)

Gemini CLI vs Claude Code vs Codex CLI in 2026: Gemini CLI is now enterprise-only, Antigravity CLI replaced it for individuals, and how the four compare.

A developer searches "Gemini CLI vs Claude Code," installs Gemini CLI on a personal Google account, and gets nowhere. The comparisons they read were written in 2025. Since June 2026, Gemini CLI isn't the tool Google points individuals to anymore.

This guide sets out what changed, then compares the terminal agents developers actually choose between, from the Gemini CLI README, Google's transition announcement, and each tool's documentation, checked on 16 November 2026. It doesn't cover benchmarks or prices, which change too often to keep honest.

What happened to Gemini CLI

Google announced on 19 May 2026 that it was unifying its terminal work into Google Antigravity, with a new terminal agent, Antigravity CLI. The timeline:

  • From 19 May 2026: Antigravity CLI available to everyone.
  • 18 June 2026: Gemini CLI and the Gemini Code Assist IDE extensions stopped serving Google AI Pro and Ultra users and free Gemini Code Assist for individuals.
  • Enterprise unchanged: organizations with Gemini Code Assist Standard or Enterprise, or Code Assist for GitHub through Google Cloud, keep Gemini CLI. It also still works with paid Gemini API keys.

The Gemini CLI README now adds that it isn't tuned for the Gemini 4 series and shouldn't be used to benchmark Gemini models.

Google says Antigravity CLI keeps Gemini CLI's most important features: agent skills, hooks, subagents, and extensions, which become Antigravity plugins. It's written in Go and shares its agent harness with the Antigravity 2.0 desktop app.

Which Google tool you need

Your situationUse
Free account, or Google AI Pro or UltraAntigravity CLI (agy)
Gemini Code Assist Standard or EnterpriseGemini CLI, or Antigravity CLI with your Google Cloud project
You only need to call Gemini models from scriptsThe Gemini API CLI, which isn't a coding agent

Antigravity CLI vs Claude Code vs Codex CLI

The concepts have converged. All three are terminal agents with instruction files, skills, MCP, and subagents. The differences are in file names and where things live:

Antigravity CLIClaude CodeCodex CLI
Instruction fileAGENTS.md or GEMINI.mdCLAUDE.mdAGENTS.md
Extra rule files.agents/rules/*.md with triggers.claude/rules/Nested AGENTS.md files
Project skills.agents/skills/.claude/skills/.agents/skills/
Skills formatAgent Skills standardAgent Skills standardAgent Skills standard
MCPYesYesYes
SubagentsYes, including background subagentsYesYes
HooksYesYesYes
Desktop companionAntigravity 2.0 appClaude desktop appChatGPT desktop app

Gemini CLI itself uses GEMINI.md context files: a global one in ~/.gemini/, ones in the workspace and its parents, and ones it finds just in time when a tool touches a directory.

Antigravity's rules, briefly

Antigravity loads AGENTS.md or GEMINI.md from the workspace folder and each parent up to the repository root, plus .agents/rules/*.md. Rule files there need YAML frontmatter with a trigger: always_on, model_decision (loaded when the description matches the task), glob, or manual. Its docs warn that a rule file with missing or invalid frontmatter is silently discarded. It doesn't load rules from subfolders below the workspace.

Its docs draw the same line Anthropic does: rules for constraints, skills for multi-step procedures.

Using more than one

Many teams run two of these. A setup that serves all three:

  1. Shared instructions in AGENTS.md. Codex and Antigravity read it directly. In CLAUDE.md, import it with @AGENTS.md and add anything Claude-specific below. See AGENTS.md examples.
  2. Skills in one folder. Keep them in .claude/skills/ and symlink .agents/skills to it, so Codex and Antigravity find the same skills. See the Agent Skills open standard.
  3. MCP servers configured per tool. Each has its own config file; the servers themselves are shared.

How to choose

  • Your organization already pays for Gemini Code Assist Enterprise: Gemini CLI is the supported path.
  • You want Gemini models as an individual: Antigravity CLI.
  • You want Claude models, or the deepest hooks and settings for team rollout: Claude Code. See Claude Code managed settings.
  • You're in the ChatGPT ecosystem: Codex CLI.
  • Undecided: try two of them on the same real task in your repository. The shared formats make switching cheap.

Where Lockstep fits

Instruction files and skills tell an agent how your team works. They don't carry the decisions that change week to week. Lockstep captures those from PRDs, Slack, and pull requests, routes each to its owner for approval, and briefs Claude Code sessions automatically. Session briefings, hooks, and managed skills work in Claude Code only, and Codex isn't supported; other agents that speak MCP can call Lockstep's tools.

See how it works.

Sources checked 16 November 2026

For Claude Code against Cursor and Codex, see Claude Code vs Cursor vs Codex. For Codex instructions and memory, see Codex memory. For Antigravity against Cursor, see Cursor vs Antigravity vs Claude Code. For the open source option, see OpenCode vs Claude Code.

Frequently asked questions

Is Gemini CLI still available?
For organizations, yes. Google's README says Gemini CLI is maintained for Gemini Code Assist Standard and Enterprise licenses and Code Assist for GitHub on Google Cloud, plus paid API and Vertex keys. Free use and Google AI Pro and Ultra stopped being served on 18 June 2026 and moved to Antigravity CLI.
What is Antigravity CLI?
Google's terminal agent, announced in May 2026 as the successor to Gemini CLI for individuals. Google says it's built in Go, shares its agent harness with the Antigravity 2.0 desktop app, and keeps Gemini CLI's agent skills, hooks, subagents, and extensions, which become plugins.
What is the difference between Gemini CLI and Claude Code?
Both are terminal coding agents with MCP, skills, hooks, and subagents. They differ in models, instruction files (GEMINI.md versus CLAUDE.md), and who can use them: Gemini CLI is now enterprise-focused, while Claude Code works with Claude subscriptions and API keys. Individuals comparing them should look at Antigravity CLI instead.
Can Claude Code, Codex, and Antigravity share the same instructions?
Partly. Codex and Antigravity both read AGENTS.md; Claude Code reads CLAUDE.md, which can import AGENTS.md. For skills, Codex and Antigravity read .agents/skills/ and Claude Code reads .claude/skills/, so a symlink lets one folder serve all three.
Which is best: Gemini CLI, Claude Code, or Codex?
It depends on your models, account, and existing setup. If your organization already has Gemini Code Assist Enterprise, Gemini CLI is the supported path. Otherwise compare Antigravity CLI, Claude Code, and Codex CLI on your own repository, since all three share the skills format and most of the same concepts.

Keep reading