◉ANTIGRAVITY LABJP
ARTICLES

All Articles

All (1167)◉ Antigravity Basics (173)⟐ Editor View (91)◈ Agents & Manager (293)⬡ Integrations (154)▣ App Development (250)⚙ AI Tools (84)✦ Tips & Best Practices (122)
✦ Tips & Best Practices/2026-11-19Advanced

Before an Agent Clones Your Template Repo, Hand It a Trap Index: One Line per Fix, the Reasons Kept in One Place

When you copy a running site to start the next one, an agent carries the fixes over but leaves the reasons behind. A symptom-first trap index, a one-page porting plan written before the copy, and three small scripts that catch drift between the index, the source docs and their mirrors.

✦ Tips & Best Practices/2026-11-17Intermediate

Why a Small sizes Value Shrinks the Image Itself, and the CSS Line to Add When width and height Attributes Stretch It

The day I added responsive images, one artwork shrank and another stretched sideways. How sizes sets the displayed size, the one CSS line for width and height attributes, and how to work out sizes for tall art in a frame, with numbers and a check script.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/2026-10-27Intermediate

A PreToolUse Hook That Stops an Agent's rm -rf Before It Runs — and Why ask Isn't force_ask

How to block rm -rf and git push --force before they execute with an Antigravity CLI PreToolUse hook: why ask doesn't prompt every time, resolving paths from Cwd, 22 tested commands, and troubleshooting when the hook doesn't fire.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.

✦ Tips & Best Practices/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.