Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

8 Antigravity Workflow Tips: Plan Review, Generative UI, Browser Testing & Remote Access

The author shares eight practical tips for using Google's Antigravity AI coding agent alongside Codex, covering plan review with /plan, side questions via /btw, interactive diagrams with /generative_ui, browser-based frontend testing with /browser, reusable acceptance skills, Obsidian Prism customization, and mobile remote access.

Letting Codex Operate Antigravity for Plan Review and Frontend

The author uses Codex to clarify requirements, then asks Antigravity to review the plan for gaps. For a knowledge-base admin backend, Antigravity identified two missing decisions: how an admin knows whether a paid order is still processing or failed, and how to calculate extra days when the buyer is already a member. Codex recorded these as "待确认" (to be confirmed) in the requirements document.

Put the agreed requirements and acceptance scenarios into the project's requirements document. Ask Antigravity to review, focusing on where I still need to decide. Append its questions under the original text, marked "待确认", so I can decide later.

For frontend, the author prefers Gemini over Codex for aesthetics, noting Gemini's output is much better looking. The knowledge-base homepage example shows columns rendered as physical books on a shelf.

JavaGuide knowledge-base homepage with bookshelf, recent updates, annual software and recommended models
JavaGuide knowledge-base homepage with bookshelf, recent updates, annual software and recommended models

To implement a comment-moderation page, the author instructs Codex to drive Antigravity:

Ask Antigravity to implement the comment-moderation page per confirmed requirements, reusing existing project components. Return changed files and a local preview URL when done.

Adding a Usage Dashboard with Obsidian Prism

A community member shared a customized Antigravity homepage showing a usage dashboard and two pixel-art companions. This is achieved via Obsidian Prism , an open-source project for theming the Antigravity desktop app. It offers four color schemes (dark/light pairs) and supports context/model visualization, thought-process translation, and more.

Project URL: https://github.com/RMvdesi/obsidian-prism [1]

Community member's full Antigravity homepage showing usage dashboard and pixel companions
Community member's full Antigravity homepage showing usage dashboard and pixel companions

The dashboard shows 31 sessions, 1,932 messages, 305.9M tokens (97% main session, 3% sub-agents), counting only locally saved sessions.

Using /plan to Review Implementation Plans Before Coding

/plan

makes Antigravity propose a plan first; the user approves before code runs. Other agents (e.g., Codex) have similar modes. For the order-reissue feature, the author opened a new conversation, selected /plan, and asked:

A reader paid for a yearly membership but it didn't arrive. Against existing code and the "Lightweight Admin Backend" spec, explain how the admin should investigate, what backend changes are needed, and how to verify. Separate existing rules from your suggestions; list items needing my decision. This round only produces a plan.

Antigravity suggested: find the order by merchant order number, verify the bookshelf account (WeChat may have been paid by a friend). If local status is "pending payment", check WeChat; if "paid", verify whether the order counted toward membership and whether a full refund occurred.

It listed six decision points:

WeChat hasn't confirmed receipt yet — can we manually grant a year? Suggestion: check payment first; if compensating, record separately.

Local order closed but reader was charged — can we still investigate? Suggestion: add a re-check entry; update order only after WeChat confirms payment and transaction details match.

Wrong account purchased — can we transfer membership? Suggestion: refund this order, let reader repurchase with correct account.

WeChat already refunded — how to record in backend? Suggestion: admin verifies via refund ID; actual refund stays in WeChat merchant platform.

Where does the reader find the merchant order number? Suggestion: place next to payment QR code, one-click copy.

Add a resend button for payment notifications? Suggestion: keep one notification per order, show send status in order details.

Antigravity lists the 5th and 6th questions and waits for confirmation on the implementation plan card
Antigravity lists the 5th and 6th questions and waits for confirmation on the implementation plan card

The author notes Antigravity already added a re-check button to the plan and designed a test case: simulate a locally closed order that WeChat confirms as paid, then verify that manual re-check and payment callback don't double-add a year. The author also corrected the plan by noting that "payment channel" and "payment window deadline" already exist in the code, so they were removed from the checklist.

Using /btw for Side Questions Without Blocking the Main Task

While Antigravity works on the main task, /btw opens a side panel for a quick question. The author asked:

/btw When a parent comment is hidden, which code decides whether child replies are visible to readers? Only check current implementation; give key files, functions, and a one-sentence conclusion.

The side panel ("Side Question") runs in parallel. The author followed up asking which replies remain visible when a reader opens an article. Clicking "Started during" returns to the main task.

Side question panel showing 'Started during' linking back to main task and the child-reply visibility question
Side question panel showing 'Started during' linking back to main task and the child-reply visibility question

Antigravity found two cases in server/comments.mjs: hiding a root comment hides the entire thread; hiding a middle comment leaves child replies visible but removes the "reply to X" label.

Same investigation listing server/comments.mjs and the public query list() function
Same investigation listing server/comments.mjs and the public query list() function

If a side question reveals a separate fix, the desktop app can "Promote to Conversation" to make it an independent session. The author reminds to inform the main task if the finding affects it.

Using /generative_ui to Turn Rules into Interactive Diagrams

/generative_ui

generates a clickable diagram from documentation. The author fed the "Order Management" section (rule: each confirmed annual order grants one year of membership) and requested:

/generative_ui Per the "Order Management" section, generate a Chinese interactive diagram that opens in the sidebar. Click a state to show payment result, admin actions, and the original requirement sentence. Separate order status from refund situations; mark undecided rules as "待确认". Simulation only.

The diagram defaults to "Pending Payment", prompting admin to verify the ordering account and check WeChat payment result.

Interactive diagram order status area with 'Pending Payment' selected, benefits not counted
Interactive diagram order status area with 'Pending Payment' selected, benefits not counted

Clicking "Partial Refund" shows the one-year benefit is retained. Clicking "Cumulative Full Refund" shows "Exclude this order and recalculate", with the original requirement sentence. Example: two valid annual orders under one account; refund one, the other's year remains.

Tested UI after selecting 'Cumulative Full Refund': partial refund retains one year, cumulative full refund excludes the order and recalculates
Tested UI after selecting 'Cumulative Full Refund': partial refund retains one year, cumulative full refund excludes the order and recalculates

Using /browser to Validate Frontend by Simulating User Actions

/browser

lets Antigravity open a page and click through a user flow. The author tested the mobile comment-moderation flow: 16 test comments in a local staging backend, targeting the 7th and 8th items.

Open the local comment-management page, set viewport to 390×844, select "Reviewable", scroll to the 7th item. Approve the 7th and 8th test comments consecutively; observe whether the filter stays selected and the next "Approve" button is directly clickable. Capture before/after screenshots.

After approving the 7th, the 8th's "Approve" button appeared in the same spot; both approved, filter remained, and the 9th button was visible.

Before consecutive approval: 7th and 8th test comments both in view
Before consecutive approval: 7th and 8th test comments both in view
After second approval: 9th test comment fills the original position
After second approval: 9th test comment fills the original position

The author suggests adding the before/after screenshots to a Walkthrough for side-by-side comparison.

Saving Acceptance Steps as a Reusable Skill ( /review-comments )

Repeated acceptance flows can be saved as a project Skill. The author created .agents/skills/review-comments/SKILL.md:

---
name: review-comments
description: 在知识书架本地测试后台,以手机宽度连续通过两条指定的测试评论,检查「可审核」是否仍然选中,下一条的「通过」按钮能不能直接点。
---

Three steps are defined:

Open test backend at phone width, enter "Comment Management", select "Reviewable".

Find the 7th test comment, click "Approve". Wait for list update; verify "Reviewable" stays selected and the 8th's "Approve" is directly clickable.

Approve the 8th, then check filter and 9th button. Keep the 9th. If filter must be reselected or scrolling needed to find the button, note which step failed.

In a new conversation, selecting /review-comments and pasting only the test backend URL triggered the full acceptance run.

Antigravity new conversation sending only the review-comments skill and local backend homepage URL
Antigravity new conversation sending only the review-comments skill and local backend homepage URL

Pinning Remote Sessions to Phone Home Screen

Remote control lets you continue a session on mobile while the task runs on the desktop. Peter Yang shared adding the remote-control web page to the iPhone home screen for one-tap access.

Peter Yang's original post screenshot highlighting 'Add to Home Screen' in iPhone share menu
Peter Yang's original post screenshot highlighting 'Add to Home Screen' in iPhone share menu

Setup: In desktop Antigravity App, enable Settings → Application → Enable Remote Control ; keep the computer awake and online. On phone browser, open the remote console, sign in with the same Google account, select the computer and the session. On iPhone, use the share menu → "Add to Home Screen". If connection fails, check if the computer slept.

Summary

The author uses Codex (20X quota) as the primary driver, complemented by Antigravity and domestic models (GLM, Kimi, DeepSeek). The workflow: clarify requirements in Codex, then have it call Antigravity for plan review and frontend. Use /plan when the solution isn't clear; after UI is built, use /browser to simulate user interactions.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Gemini/browserdevelopment workflowremote controlSkillsCodexGenerative UIAI coding agentsAntigravity/plan/btwObsidian Prism

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion