◉ANTIGRAVITY LABJP
✦ Tips & Best Practices

Tips & Best Practices

Everyday Antigravity tips — localization, credit savings, prompt design, AGENTS.md upkeep, and performance tuning to smooth out your daily workflow.

2026-11-10Beginner

Three ways to keep a chat record when the Export button does nothing

When Antigravity's chat export button does nothing, here are three ways to keep your conversation, plus a small script that snapshots the chat folders with a date stamp. Scoped to forum reports and what I ran against a stand-in folder.

2026-11-04Intermediate

Four things to check before touching PATH when antigravity says command not found in WSL

Running antigravity from a WSL terminal returns command not found. Here is the order I check things in, plus a small shell function that tells you why the launcher was not found, tested with a stand-in command.

2026-10-30Beginner

The sed -i That Worked on Linux and Stalled on My iMac: Checking an Agent's Steps Before You Run Them

A sed -i step that ran fine on Linux can stall on a Mac or leave backup files behind. Here is what I reproduced with GNU sed, the forms that behave the same on both, and a short check to run first.

2026-10-29Beginner

The Agent Said It Used My Skill, but There Is No Trace — Check Files, Not Replies

When an agent ignores your Rules or says it used a Skill without doing so, its reply can't settle the question. Here is a small file-based check, and a way to decide between rewriting, adding a mechanical check, or handing the task elsewhere.

2026-10-27Advanced

Dropping a Japanese Web Font Cut FCP from 4.1s to 1.7s; Half My Explanation Failed a Minimal Repro

Mobile FCP on PageSpeed fell from 4.1s to 1.7s once I stopped serving a Japanese web font. Self-hosting made it worse, and the render-blocking story did not reproduce.

2026-10-27Intermediate

A 60-Line PreToolUse Hook That Stops an Agent's rm -rf Before It Runs

How to block rm -rf and git push --force before they execute, using an Antigravity CLI PreToolUse hook. Includes what a one-line grep missed across 16 test commands.

2026-10-25Intermediate

Which Antigravity Does "antigravity" Launch in WSL2 — Windows or Linux? How to Tell, and Which One to Keep

You installed the Linux build in WSL2, yet things feel slow or a Windows window opens. This walkthrough uses type -a and PATH order to find what actually launches, then helps you decide which build to keep.

2026-10-23Intermediate

594 Articles Had No Body-Link Entrance. Counting the Related-Articles Box Left Only 6 Truly Orphaned

Counting only body links made half my MDX site look orphaned. Here is the full Python script that mirrors the related-articles scoring and also catches links the build strips.

2026-10-19Advanced

After I Rewrote the URL, Only the Not-Yet-Loaded Images Returned 404: Checking replaceState and Relative Paths

After rewriting the URL with history.replaceState when moving from a list to a detail view, only the images that had not loaded yet returned 404. Native loading=lazy broke too. Here are a minimal test page, a check script, and three fixes compared.

2026-10-17Intermediate

When Search Console Says "Page with redirect": How I Sorted Which Redirects to Fix and Which to Leave Alone

A record of triaging Search Console's "Page with redirect" report on my own site. Normalising http to https, www, trailing slashes and language routing is expected; chains, loops and destinations that error or carry noindex need work. Includes a Python script that walks each hop and classifies it, and a way to catch language-dependent redirects that a plain request never sees.

2026-10-15Intermediate

The Images Weren't Broken, My Way of Checking Them Was: Doubting the iframe First, Then Reading currentSrc

A record of misdiagnosing healthy images as unloaded because I audited them through an iframe in a separate tab. In a hidden frame, naturalWidth reads 0 at a rendered width of 0, and lazy images never start. Here are the numbers I reproduced locally, an audit script that reads currentSrc and rendered width on the real page, and the trap of bulk-replacing CSS values with a regex.

2026-10-13Intermediate

After Dropbox Moved Under CloudStorage, Check That Your node_modules Exclusion Still Works

Dropbox's help page gives different ignore commands for the macOS File Provider build. Before handing dependency installs to an agent, here is how to check that your exclusion works: a dry-run-first shell script, and what I observed when running npm ci against a flagged directory.

2026-10-09Beginner

Fold Your Request into Five Lines Before You Paste the Long Notes

Pasting meeting notes straight into an agent gives you blurry results. Here is a five-line shape — goal, material, scope, finished form, check — and a small script that confirms all five lines are filled in.

2026-09-22Beginner

Don't Leave Your Chat Records to the Export Button — Three Routes for the Night It Does Nothing

Three ways to keep a record of your Antigravity conversations when the Export button does nothing at all: how to tell a broken button from a silent success, how to locate the conversation file in your own environment by modification time, and how to decide what to keep before the session ends.

2026-09-16Beginner

The Day the Upload to Agent Overlay Took Every Drop, and How I Got File Handling Back

A full-window Upload to Agent overlay intercepts every drop, so files never reach the integrated terminal or the explorer sidebar. Here are the two workarounds the community found, plus three ways to hand over a path without dragging.

2026-09-07Beginner

When the few lines you quoted stop making sense in the next prompt

Antigravity 2.12.0 lets you quote part of a response into your next prompt, but the definitions those lines depend on stay behind. Here is a small script that counts what got left out, plus the widths I actually measured.

2026-09-02Intermediate

The work-root guard I run before letting an agent near several repositories

When several repositories share one machine, an agent's working root is remarkably easy to mix up. Here is a small guard that compares resolved paths, tested against seven inputs.

2026-08-31Beginner

One Argument Now Switches Your Model in Antigravity CLI — and Rewrites Your Default Too

In CLI v1.1.22, /model takes an argument, switches instantly, and saves that model as your default in the same stroke. Here is the forget-to-switch-back trap that comes with it, and the start-of-session habit that fixed it for me.

2026-08-30Intermediate

Before You Narrow the Page Range in Antigravity 2.11.0, Find Your Resolution Floor

I measured the new page range and MediaResolution options in view_file against a 240-page document. Resolution moved the numbers more than the page range did, and setting it too low drops words without raising a single error.

2026-08-25Beginner

What I Line Up in PowerShell Before Letting Antigravity Agents Run Commands on Windows

Antigravity agents tend to write bash-shaped commands, and on Windows those do not survive the trip. I ran PowerShell 7.6.5 locally and measured four things: chaining operators, aliases, exit codes, and output encoding. Here is where Windows PowerShell 5.1 diverges, and what belongs in a rules file.

2026-08-24Intermediate

Four Reasons Your .antigravityignore Rules Are Not Taking Effect

Rules that quietly do nothing, and rules that swallow the whole repository. Here are four causes behind both, each checked one at a time against a gitignore-style matcher.

2026-08-21Beginner

The pipe in my wrapper was swallowing Antigravity CLI's exit code

CLI 1.1.14 surfaces language server failures as a non-zero exit. That improvement never reaches you if your automation wrapper drops the exit code first. I ran sixteen calling patterns on bash 5.1 and recorded which ones make the failure disappear, plus the fixes that bring it back.

2026-08-15Beginner

When Antigravity Holds a Dozen Projects: How I Stopped Hunting for Yesterday's Conversation

As Antigravity projects pile up, the conversation sidebar turns into a morning scrolling ritual. Now that 2.8.0 remembers collapsed state, here is how I reworked project granularity, conversation naming, and launch flags.

2026-08-06Advanced

Seven Characters Don't Only Point at Commits — Measuring When Your Agent's Recorded Hashes Stop Resolving

Short commit hashes recorded by an agent quietly stop resolving as a repository grows. Measuring where ambiguity begins, fixing the recording side, and building a batch verification gate.

2026-07-18Advanced

When the JSDoc an AI Wrote Quietly Stopped Matching the Code: Field Notes on Measuring Documentation Drift

AI-generated JSDoc gets written once, looks authoritative, and is then trusted and left to rot. Field notes on hashing function signatures to detect staleness, tracking a drift rate, and fixing only the blocks that actually diverged.

2026-07-11Intermediate

Moving Antigravity to a New Machine: What Carries Over, What You Rebuild, and What Belongs in the Repo

Settings Sync restores your theme and keybindings in minutes, but auth tokens, workspace indexes, and local LLMs do not follow. A practical three-layer model for migrating Antigravity to a new machine without losing a day.

2026-07-10Advanced

You Can Measure a Request Before You Send It — Sizing Agent Tasks by Working Backward from Rework Rate

When an Antigravity agent returns code that misses the mark, the cause is rarely the wording of the prompt. It is the size of the task. Here is a Python scorer that grades a request before you send it, plus what happened when I scored 80 past requests against their actual rework outcomes.

2026-07-08Intermediate

When Lighthouse Is Green but Search Console's Core Web Vitals Are Red — Field Notes on Naming the Slow Interaction with Real-User Data

Lighthouse scores in the 90s, yet field Core Web Vitals won't budge. Here is how I closed the lab-vs-field gap with real-user monitoring (RUM), named the exact interaction driving a slow INP, and fixed it with Antigravity.

2026-07-07Advanced

When Antivirus Blocks Antigravity's Launch, Verify the Signature Before You Allow It

When the Antigravity desktop app won't launch because antivirus stepped in, here's how to tell a false positive from a real threat. Verify the code signature on macOS Gatekeeper and Windows Defender first, then allow-list with the narrowest possible scope.

2026-07-05Intermediate

When Your Agent's Commits Pick Up Junk Files: Fixing It With Staging Scope and a Message Convention

Agents tend to run git add -A, sweeping .bak files and caches into your history, and leave a one-word message. Here is how a staging allowlist, a preflight, and a fill-in message template stop it.

2026-07-04Intermediate

Where Context Should Live — Routing It Across Persistent, Per-Task, and In-the-Moment Layers

Antigravity 2.0's /btw lets you inject context mid-task. But unless you separate what belongs in a persistent rule, a task instruction, and a passing aside, your agent's accuracy actually drops. Here is a design for three context layers.

2026-07-01Advanced

Don't Let Your Automation Lean on AI Ultra's 5x Ceiling

The $100/month AI Ultra plan raises Antigravity's usage limits to 5x AI Pro. But if you architect automation around that ceiling, it collapses the moment you drop back a tier. Here is a limit-independent degradation design, with the real pain points.

2026-06-28Advanced

Confirm Your Unattended Runs Survived a Point Release in 30 Seconds

As Antigravity ships point releases at a fast clip, how do you stop scheduled runs from quietly breaking after an update? Here is a lightweight smoke test that detects regressions against a golden output and rolls back automatically when it diverges.

2026-06-28Intermediate

Hearing the Audio an Agent Made, Right Inside the Conversation

A recent Antigravity point release added inline audio rendering in the conversation view. Here is how playing agent-made audio in place changes the way I audition sound assets for my apps.

2026-06-27Advanced

Before Desktop and CLI Drift Apart: Put Agent Steps in One Versioned File

As Antigravity 2.0 multiplies entry points across desktop, CLI, and SDK, the instructions for the same task slowly diverge per surface. As an indie developer running several sites on autopilot, I lay out a design that consolidates the steps into a single versioned file each surface merely reads.

2026-06-22Advanced

Strip Secrets Out of the Agent Logs You Keep: Designing a Redaction Layer

Once you start keeping logs from unattended agents, a token or API key eventually lands in them in plaintext. Rotating the key doesn't unmake the leaked log. This designs a redaction layer that reliably drops secrets right before the write, going beyond regex to register known secrets and mask them for certain, with working Python and field notes.

2026-06-21Intermediate

Tracing What a Long Agent Run Actually Did: Review That Starts From In-Conversation Search

How to use the in-conversation search added in Antigravity v2.1.4 as the starting point for reviewing long agent runs. Choosing search terms, the decision points to inspect, and reconciling with background-agent logs, with concrete steps.

2026-06-20Intermediate

Keeping Scheduled Runs Reproducible: Pinning the Antigravity CLI Version to Tame Behavior Drift

The Go-based Antigravity CLI is now available to everyone, and updates are landing at a quick pace. When a CLI baked into your automation upgrades underneath you, a single morning's job can behave differently. Here is how I keep things reproducible — pinning the binary, recording its identity in each run's log, and rolling upgrades forward one job at a time — drawn from running four sites on an overnight schedule.

2026-06-17Intermediate

Three Prompts I Tried When Antigravity's Code Felt Correct But Not Mine

When Antigravity's output runs but never quite fits your codebase, the gap is usually missing design context. Three prompting patterns for handing over intent — plus the cases where even that wasn't enough, from real indie development.

2026-06-16Advanced

Measuring the Go-Based Antigravity CLI's Responsiveness to Rethink My Nightly Batch

The Antigravity CLI was reimplemented in Go, and startup and first-response feel different now. I measure startup, time-to-first-token, and throughput as three separate intervals, then use those numbers to move my nightly batch from serial to parallel.

← All Articles