惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
月光博客
月光博客
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Vercel News
Vercel News
量子位
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
腾讯CDC
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Using Google's New AI Command-Line Assistant: Antigravity...
Evan Lin · 2026-05-27 · via DEV Community

image-20260526212403006

Background

With generative AI entering daily development, the AI assistant in the terminal has also ushered in an epic update! If you are a loyal supporter of the original Gemini CLI, you may already know that this tool will be officially retired on June 18, 2026.

Taking over the torch of this era is Google's stunning launch at I/O 2026, the next-generation lightweight, Go language-driven multi-agent terminal UI assistant —— Antigravity CLI (called agy in the terminal)!

However, the launch of new tools is always accompanied by various pitfalls and surprises. This article will focus on Antigravity CLI (agy), revealing how to deal with the "invisible color scheme hell", how to enable the addictive YOLO no-confirmation frenzy mode, and those terminal black technologies and setting secrets hidden deep within settings.json!

image-20260526212808645


🛠️ Step 1: Antigravity CLI (agy) Color Scheme Savior for Invisible Text!

When installing and launching agy for the first time, the first blow that many developers accustomed to macOS / Linux dark background terminals usually face is: "The font is all black, and the text is completely invisible!"

This is because the agy default configuration file may be configured with a light (Light) theme. We don't need to compromise and change our favorite terminal background, just modify settings.json and it can be saved with one click!

🛠️ Steps to Fill the Pit

  1. Find the global configuration file for Antigravity CLI, the path is usually: ~/.gemini/antigravity-cli/settings.json

  2. Modify the "colorScheme" setting value from "light" to "dark":

  3. After saving the file and restarting the terminal, all outputs will automatically convert to a high-contrast dark mode color scheme, and your eyes will be saved instantly!


🔥 The Main Event: YOLO Mode —— Unlock the "No Confirmation" Ultimate Move for Unlimited Automated Execution

image-20260526212326057

When using AI to write code, the most annoying thing is that every time you make a file modification and execute a git command, the CLI will pop up a question: "Are you sure you want to perform this operation? (y/N)". This is simply a double torment of fingers and spirit when performing large-scale refactoring or batch tasks.

To this end, agy provides two levels of YOLO (You Only Live Once) no-confirmation automatic execution mode, allowing AI to smoothly and continuously execute autonomously until the task is completed:

1. ⚡ Extreme YOLO: --dangerously-skip-permissions Parameter

If you are in a completely isolated and secure sandbox environment, or have 100% confidence in the instructions generated by AI, you can add this ultimate move when starting:

agy --dangerously-skip-permissions

Once this Flag is added, agy will completely skip all tool authorization and command execution confirmation prompts, and enter an "all the way to the top" automatic execution state. Suitable for letting it run complex automated tests or file migrations on its own!

2. 🛡️ Moderate Control: /permissions Fine-grained Settings

If you don't want to risk the AI executing rm -rf, you can directly enter /permissions in the CLI or directly modify settings.json. Through a whitelist mechanism, only specific commands or paths are automatically approved:

{
  "permissions": {
    "allow": [
      "read_file(/Users/al03034132/Documents)",
      "command(git)",
      "command(npm test)"
    ],
    "deny": [
      "command(rm -rf)"
    ]
  }
}

This way, you can allow Git operations and unit tests to enter the YOLO no-confirmation state, while also ensuring the security of the core file system!


🤫 Those Unknown agy Black Technologies and Setting Secrets

As Google's latest official Code-first agent weapon, agy also has several hidden functions deep within the configuration file and commands, which are rarely seen in newspapers:

🧩 1. Asynchronous Subagents

This is definitely agy's most revolutionary multi-agent architecture! You can directly call multiple subagents in the terminal to run complex tasks in the background:

  • For example: one subagent goes online to check the latest API documentation, one runs unit tests in the background, and one performs code refactoring.
  • And your main terminal will not be blocked at all! You can enter /agents to monitor the health and execution progress of all subagents in the background at any time.

🧠 2. Change Brains at Any Time: /model Secret

agy not only supports the Gemini series models on Vertex AI, but if you need to, you can also use the built-in /model slash command to directly switch seamlessly between Gemini, Claude, and even other open-source models with one click, helping you verify the same bug with different thinking models, which is super convenient!

🛡️ 3. Multi-Operating System Level Security Sandbox (Terminal Sandbox)

In order to prevent AI from running out of control malicious code in YOLO mode, agy silently implements operating system level sandbox protection at the bottom!

  • nsjail isolation will be automatically enabled on Linux.
  • macOS will automatically call the system's native sandbox-exec.
  • Even if AI writes a script that pollutes the file system, it will be perfectly confined in the sandbox and unable to move!

📦 4. Upgrade Old Things: Seamless Migration Mechanism from Gemini CLI

Although Gemini CLI has gone down in history, agy has thoughtfully designed a "one-click import tool". When you start agy for the first time, it will automatically scan the old configuration path and perfectly align and migrate your original plugins, custom skills, and settings.json accumulated in Gemini CLI!


Summary and Suggestions

The upgrade from Gemini CLI to Antigravity CLI (agy) is not just a change in the command line name, but a leap forward from single-model question and answer to Multi-Agent Workflows.

By properly setting permissions in settings.json, combined with the no-confirmation function of YOLO mode, developers can allow AI to automatically and smoothly complete various medium and large tasks while ensuring the security of the host.

Quickly open your terminal and enter agy --dangerously-skip-permissions to experience this futuristic development artifact! See you next time for the actual combat!