r/GoogleAntigravityCLI

I just ran Google Antigravity from my phone !!!
▲ 287 r/GoogleAntigravityCLI+1 crossposts

I just ran Google Antigravity from my phone !!!

I just ran Google Antigravity from my phone !!!

No labtop

No Desktop

Only a phone

And Yes got it working using Termux.

#Ai #antigravity #SWE #SoftwareEngineer #Google

u/Rich-wood — 8 days ago
▲ 22 r/GoogleAntigravityCLI+2 crossposts

Have you been noticing your 3.8 Flash using way more tokens? Try this skill to improve your efficiency.

Note: Posting this as an open-source reference pattern and diagnostic tool that you can build on, adapt to your own environment, or use as inspiration.

Hey everyone, here is an updated version of the skill I have been refining to audit Antigravity agent sessions. Ever since Gemini 3.8 Flash came out, I noticed token usage was draining significantly faster than before.

Watching the agent execute, I found that token drain primarily comes from three structural bottlenecks:

  1. Command retry loops: A single failed command that takes 2 or 3 retries permanently injects thousands of tokens of stderr and broken payloads into every subsequent turn of that conversation.
  2. Unbounded file reading: Agents repeatedly calling view_file on 500+ line files without line bounds, dumping entire source files into context instead of inspecting specific slices.
  3. Context accumulation in long sessions: As conversations exceed 30 to 50 tool calls, model output and internal reasoning tokens scale rapidly because the entire tool history is re-sent on every step.

What the Skill Does

Instead of feeding megabytes of raw transcripts into the agent and wasting tokens, the skill runs zero-dependency local Python scripts under the hood in seconds.

Importantly, this tool does not blindly modify your configuration or overwrite files. It operates as an interactive diagnostic assistant: it first discovers what is happening, reports the exact bottlenecks to you, proposes categorized remediations, and waits for your confirmation before applying any changes.

Here is the updated skill definition header:

---
name: improve-agent-efficiency
description: Probes host development tools, mines causal command failure chains across past agent sessions, measures token burn and efficiency gains, and executes verified remediation across host binaries, global rules, and workspace AGENTS.md files.
---

You can trigger it directly from chat:

  • For status & efficiency gains: "Analyze our efficiency gains and token burn since yesterday."
  • For a full diagnostic audit: "Audit my past sessions and optimize agent rules."

How the Scripts & Workflow Work

The workflow is structured across distinct phases:

1. Interactive Scoping and Discovery (< 1 second)

For developers with dozens of repositories, you do not want to scan hundreds of sessions blindly. The script scripts/audit_trajectories.py includes a rapid inventory mode (--inventory-only) that discovers your active workspace, top repositories, and session date boundaries. If invoked bare in chat, the agent renders an interactive selection modal (ask_question) so you can select the exact repository scope and time window before deep parsing begins.

2. Out-of-Band Host Probing & Trajectory Mining

The skill bundles two standalone Python 3 scripts in scripts/:

  • probe_environment.py: Inspects your local machine. It tests terminal output stream encoding for non-UTF8 crashes, detects installed CLI binaries (git, gh, rg, dotnet, node, cargo, python), and cross-references your active GEMINI.md to flag discrepancies.
  • audit_trajectories.py: Parses local session transcripts out-of-band at zero LLM token cost. It measures true failure rates, calculates native token burn telemetry across prompts, model responses, thinking tokens, and tool output streams, and reconstructs multi-turn incident chains: [Initial Failed Command] -&gt; [Intermediate Retries / Scratch Scripts] -&gt; [Eventual Working Command]

3. Zero-Match Search Disambiguation

In command-line tools like rg, grep, findstr, and diff, exit code 1 denotes that zero matches or differences were found, rather than an execution crash. The auditor explicitly disambiguates clean zero-match returns from actual syntax or runtime crashes, preventing false alarms.

4. Read-Only Mode vs. Guided Remediation

Depending on what you ask for, the skill adapts its behavior:

  • Mode A (Read-Only Gains & Token Burn Audit): Run with --compare (e.g. audit_trajectories.py &lt;dir&gt; --since &lt;YYYY-MM-DD&gt; --compare). It splits your session history into a baseline and target window, outputs a comparative table of failure rates, retry loops, and token burn per turn/session, and exits without making changes.
  • Mode B (Guided Remediation Pipeline): If you ask to fix or optimize rules, the agent presents the diagnosed friction points to you, outlines proposed changes across three layers, and requests confirmation before applying them:
    • Host Layer: Package manager installs (winget, brew, apt) or persistent environment variables (PYTHONIOENCODING=utf-8).
    • Global Rules (~/.gemini/config/GEMINI.md): File-First execution SOP for multi-line scripts, bounded file reading conventions, and compact git commands.
    • Workspace Rules (&lt;repo_root&gt;/AGENTS.md): Language-specific runtime pinning, package manager lockfiles, and dev server hygiene.
  • Verification Gate: If fixes are confirmed and applied, the agent executes live verification commands to confirm exit code 0 before concluding.

Multi-Platform & Zero Dependencies

The scripts rely exclusively on the Python 3 standard library (os, json, re, platform, datetime). They run on Linux, macOS, and Windows without requiring pip install, and support projects across TypeScript/Node, Python, Go, Rust, and .NET.


Links

u/Substantial-Pride682 — 7 days ago

AGY dangerously skips permissions ignores plan mode

Hey, I always use `--dangerously-skip-permissions` because I develop exclusively in podman containers. Recently I realized that AGY no longer respects planning mode and after finishing the plan it immediately proceeds to implementation!

Anyone else got the same problem? At the moment I am on latest version 1.3.0 but it's been present in previous versions for sure.

reddit.com
u/dzordan33 — 9 days ago
▲ 15 r/GoogleAntigravityCLI+1 crossposts

Gemini 4 in Antigravity CLI when?

Gemini 3.6 Flash and 3.7 Flash are being deprecated, and my CLI says to use 3.8. Any news on when Gemini 4 might reach the CLI for Ultra users?

u/AlexanderPanasenko — 10 days ago

I built a Feishu/Lark bridge to control Antigravity from my phone

I’ve been trying different AI coding setups for a while.

Codex has been very useful, but I burn through the quota pretty quickly. Meanwhile, I had access to Google’s Antigravity tooling that I wasn’t really using much.

Then I realized Antigravity CLI could actually be pretty useful when paired with other AIs.

That led to a small experiment:

Could I trigger Antigravity running on my Mac directly from Feishu/Lark on my phone?

So I built a small bridge with help from GPT and pushed it to GitHub.

Current features:

  • Feishu/Lark → local Antigravity CLI
  • multiple profiles and project workspaces
  • conversation ID tracking
  • direct Remote Control links to the matching Antigravity conversation
  • handling for headless permission failures

One limitation I found while testing:

Antigravity headless mode does not wait for interactive permission approval. If a command is not allowed, it gets denied immediately and the run finishes.

The Remote Control link can still open the exact conversation that failed, but it can’t retroactively approve that tool call.

For now, I’m using explicit permissions.allow rules for trusted low-risk commands and keeping everything else blocked.

The basic flow is:

Phone → Feishu/Lark → local bridge → Antigravity CLI on Mac → project/workspace

If a headless permission error happens:

permission denied → Remote Control deep link → exact Antigravity conversation

Repo:

https://github.com/LunabellaBetter/lark-antigravity-bridge

It’s still early, but I’m planning to keep testing it with real workflows.

I’d be interested to hear how others are handling remote permissions, mobile control, and multi-agent workflows for local coding agents.

u/LittleAttention2356 — 9 days ago
▲ 28 r/GoogleAntigravityCLI+4 crossposts

Build a chrome extension &amp; more with Antigravity and Antigravity CLI

From one of our Mods the one and only u/soundDR

Description from the video:

In this walkthrough, we use Antigravity 2.0 to build two complete custom automations across the Chrome and local OS.

Prompt: Act as an expert Chrome Extension developer and build a Manifest V3 extension that automatically organizes unpinned tabs into native Tab Groups based on their last-accessed time. The time buckets must be exactly: Today, Yesterday, This Week, Last Week, This Month, Last 90 Days, and Archived, calculated strictly using the user's local timezone. When a tab becomes active, its timestamp should update via TTL logic and it should immediately move to the 'Today' bucket. This organization logic must be isolated per window (no cross-window tab moving) and must maintain a stable, fixed left-to-right visual sorting of the tab groups. Persist all tab timestamps using 'chrome.storage.local' to survive browser restarts and Service Worker suspension. Ensure you ignore pinned tabs entirely, and heavily debounce the 'chrome.tabs.onActivated' and 'onUpdated' listeners to prevent Ul flickering and Chrome API rate limits. Please output the complete 'manifest.json' and the 'background.js' service worker code.

Subscribe to Google Antigravity → / @googleantigravity

Google Antigravity is an agentic development platform, evolving the IDE into the agent-first era. Antigravity enables developers to operate at a higher, task-oriented level by managing agents across workspaces, while retaining a familiar AI IDE experience at its core. Agents operate across the editor, terminal, and browser, enabling them to autonomously plan and execute complex, end-to-end tasks elevating all aspects of software development.

To learn more: Website: https://antigravity.go... X: https://x.com/antigravity LinkedIn:    / google-antigravity  

youtu.be
u/LetterheadLiving6214 — 12 days ago