{"slug": "gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it", "title": "Gemini CLI Is Dead. Here's the Better Thing That Replaced It", "summary": "According to the article, Google replaced its Gemini CLI with Antigravity CLI at I/O 2026, shifting from a simple prompt-response interface to an agent harness that can spawn sub-tasks, use tools, and run tasks asynchronously in the background. The migration preserves existing features like Skills, Hooks, and Subagents, with Extensions renamed to Antigravity Plugins, and the CLI automatically imports configurations from the old `~/.gemini/` directory.", "body_md": "*This is a submission for the Google I/O Writing Challenge*\n\nI opened my terminal on May 20th, ran `gemini`\n\n, and got a deprecation notice.\n\nGoogle shipped **Antigravity CLI** at I/O 2026 — and killed Gemini CLI the same day. If you use Gemini CLI in your workflow, this already affects you. If you've never touched either, stick around anyway. The mental model shift here is worth understanding before you need it.\n\n## Why Replace Gemini CLI at All?\n\nGemini CLI was a prompt interface. You send a prompt, you get a response. That's the whole model.\n\nAntigravity CLI is an *agent harness*. The primitive isn't a prompt — it's a running agent that can spawn sub-tasks, use tools, and keep working while you do something else.\n\nThat's not a rename. That's a different abstraction.\n\nThe migration is clean though: everything that mattered in Gemini CLI carries over. Skills, Hooks, Subagents — all preserved. Extensions are now called Antigravity Plugins, but the concept is identical. If you had Gemini CLI workflows, the port is mechanical.\n\n## Install in 30 Seconds\n\n```\ncurl -fsSL https://antigravity.google/cli/install.sh | bash\nagy --version\n```\n\nNo API key prompt during install. Auth happens the first time you invoke an agent. If you have an existing `~/.gemini/`\n\ndirectory, the CLI detects it and imports your Skills automatically.\n\n## First Command: `agy inspect`\n\nBefore you run anything, run this:\n\n```\nagy inspect\n```\n\nIt shows you everything the CLI sees — config files loaded, Skills available (global and workspace), Hooks wired up, plugins installed. Think of it as `git status`\n\nfor your agent environment.\n\n```\nAntigravity CLI v2.0.1\n\nConfiguration\n  Global config:    ~/.antigravity/config.json\n  Workspace config: .agents/config.json (not found)\n\nSkills (global)\n  code-review        ~/.antigravity/skills/code-review.md\n  commit-message     ~/.antigravity/skills/commit-message.md\n\nSkills (workspace)\n  None\n\nHooks\n  None configured\n```\n\nRun it first in any new project. It'll save you 20 minutes of debugging why a Skill isn't loading.\n\n## Skills: Saved Agent Roles\n\nA Skill is a markdown file that gives the agent a role, tool access, and task framing. A saved system prompt, with metadata.\n\nCreate a workspace Skill:\n\n```\nmkdir -p .agents/skills\nphp\n<!-- .agents/skills/ux-review.md -->\n---\nname: ux-review\ndescription: Reviews a UI screenshot against Nielsen's heuristics\ntools: [read_file]\n---\n\nYou are a UX analyst. Analyze any UI screenshot against:\n- Nielsen's 10 Usability Heuristics\n- WCAG 2.1 accessibility guidelines\n- Cognitive load principles\n\nReturn structured findings: what's working, what's broken, and the specific heuristic being violated.\n```\n\nInvoke it:\n\n```\nagy run --skill ux-review \"Review the checkout flow in checkout.png\"\n```\n\nSkills in `.agents/skills/`\n\ntravel with the project. Skills in `~/.antigravity/skills/`\n\nare global. The community [Antigravity Awesome Skills](https://github.com/sickn33/antigravity-awesome-skills) repo has 1,400+ pre-built ones if you'd rather not start from scratch.\n\nBold opinion:The community Skills library is actually the most underrated thing about this ecosystem. You can drop in a production-grade code-review workflow in 90 seconds. Most people skip it and hand-write prompts forever.\n\n## Hooks: Intercept the Agent Loop\n\nHooks let you fire shell commands at lifecycle moments. Config is JSON:\n\n```\n// .agents/config.json\n{\n  \"hooks\": {\n    \"before_tool_call\": [\n      { \"command\": \"echo '$TOOL_NAME' >> .agents/tool-log.txt\" }\n    ],\n    \"on_loop_stop\": [\n      { \"command\": \"node scripts/notify.js\" }\n    ]\n  }\n}\n```\n\nAvailable hook points: `before_tool_call`\n\n, `after_model_call`\n\n, `on_loop_stop`\n\n, `on_error`\n\n.\n\nThe pattern I use on every project: `on_loop_stop`\n\nwrites a summary to a log file, `before_tool_call`\n\naudits tool use so I can see what the agent actually did. Thirty lines of config, total.\n\n## Subagents: The Part Gemini CLI Couldn't Do\n\nThis is the actual upgrade.\n\nGemini CLI was synchronous. You waited. The agent finished. You moved on. Antigravity CLI ships **async subagents** — dispatch a long-running task to a background agent and keep prompting in the foreground, same session.\n\nFrom inside the TUI:\n\n```\n> Refactor the auth module to use the new token schema.\n  [Dispatching to subagent...]\n\n> While that runs — write a changelog entry for the last 10 commits.\n```\n\nBoth run in parallel. The subagent reports back when it's done.\n\nFrom the CLI:\n\n```\n# Dispatch a background agent\nagy dispatch \"Run the full test suite and write a summary to test-report.md\"\n\n# Check active subagents\nagy agents list\n\n# Pull output from a specific agent\nagy agents output <agent-id>\n```\n\n## I Tried It: Parallelizing a Real Refactor\n\nHere's what I actually tested. I had a Next.js project with a type refactor that touched ~40 files.\n\nI dispatched the refactor to a background subagent, then used the foreground agent to write the PR description and update the changelog — simultaneously.\n\nThe refactor completed in about 4 minutes. The PR description and changelog were ready before the refactor finished. Total wall-clock time: 4 minutes instead of 8–10 in sequence.\n\nThat's not a benchmark. That's just what parallel async agents feel like in practice.\n\n## Managed Agents: Serverless Version\n\nDon't want the CLI? There's an API:\n\n``` python\nimport google.generativeai as genai\n\ngenai.configure(api_key=\"YOUR_API_KEY\")\n\nagent = genai.create_agent(\n    model=\"gemini-3.5-flash\",\n    instructions=\"You are a code reviewer. Review the diff for correctness and security issues.\",\n    tools=[\"code_execution\"],\n)\n\nresult = agent.run(\"Review this diff:\\n\" + open(\"changes.diff\").read())\nprint(result.output)\n```\n\nSame agent harness. Same Gemini 3.5 Flash intelligence. Zero local setup. The agent runs in an isolated Linux environment on Google's infrastructure.\n\n## Migration Cheat Sheet\n\n| Gemini CLI | Antigravity CLI |\n|---|---|\n`gemini run` |\n`agy run` |\n`~/.gemini/skills/` |\n`~/.antigravity/skills/` |\n| Extensions | Plugins (same concept) |\n`gemini inspect` |\n`agy inspect` |\n| Synchronous only |\n`agy dispatch` for async |\n\nSkills files don't need to change. The biggest behavioral win: `agy`\n\nis built in Go. Startup is noticeably faster than the old CLI.\n\nBold opinion:The deprecation of Gemini CLI felt abrupt. But Google made the right call — maintaining two separate CLIs with diverging capability models would have been worse for the ecosystem than a clean cut.\n\n## What This Is Really About\n\nGemini CLI was a terminal wrapper around a language model.\n\nAntigravity CLI is a terminal interface for an agent harness. The Skills/Hooks/Plugins model is also cross-compatible with Claude Code, Cursor, and Codex CLI — a Skill you write here works elsewhere.\n\nThe transition was abrupt. The thing that replaced it is better.\n\n*Antigravity CLI at antigravity.google. Codelabs at codelabs.developers.google.com.*\n\n**Tags:** `googleio`\n\n`ai`\n\n`productivity`\n\n`devtools`", "url": "https://wpnews.pro/news/gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it", "canonical_source": "https://dev.to/pulkitgovrani/gemini-cli-is-dead-heres-the-better-thing-that-replaced-it-272e", "published_at": "2026-05-23 11:43:44+00:00", "updated_at": "2026-05-23 12:03:58.702743+00:00", "lang": "en", "topics": ["artificial-intelligence", "developer-tools", "products", "cloud-computing"], "entities": ["Google", "Gemini CLI", "Antigravity CLI", "I/O 2026"], "alternates": {"html": "https://wpnews.pro/news/gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it", "markdown": "https://wpnews.pro/news/gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it.md", "text": "https://wpnews.pro/news/gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it.txt", "jsonld": "https://wpnews.pro/news/gemini-cli-is-dead-here-s-the-better-thing-that-replaced-it.jsonld"}}