How to review Antigravity's changes and commit them

Day 3, 20 minutes · beginner

Goal of this lessonRead every change in the Review pane, send the agent feedback on one line and save the checked result as a Git commit from inside Antigravity.

Why it matters

When Google Antigravity's agent tells you what it did, its summary is not the change itself. A walkthrough can say "added the menu" while one link points to the wrong page, or a sentence you never asked for slipped in. The only way to know is to look at the actual lines that changed. You do not need to read code fluently for that: most changes on a small site are plain sentences, links and dates.

Antigravity has a Review pane for this. It shows every changed line, old and new side by side or one under the other, lets you leave a comment on a single line for the agent, and saves the result as a Git commit: a fixed point in the history that you can always go back to.

Today you review the pages from lesson 2, have the agent fix one line from your comment, and make your first commit. At the end the site is saved in Git, and you know exactly what is in it.

Words you will meet

  • Diff: the difference between the old and the new version of a file, shown line by line.
  • Commit: a saved snapshot of your files with a short message. Later you can compare with it or go back to it.
  • Staged: a change you have marked to go into the next commit. The Review pane can include unstaged changes too, so you do not need to stage by hand.
  • Untracked: a new file that Git does not follow yet. All files from lessons 1 and 2 are still untracked, because nobody has committed them. Your first commit includes them all.

What the Review pane shows

The Review pane opens next to the conversation. The menu next to the word Review chooses what you see:

  • Uncommitted (the default): everything that changed since the last commit.
  • Agent Edits: only the files this conversation changed.
  • Branch: everything on the current branch. You will not need this one.

Under an answer that changed files, the agent shows a card such as "2 files changed". Clicking Review on that card shows only that one turn. That is handy when the agent made several rounds of changes and you only want to check the last.

The steps

  1. Open the Review pane from the Overview panel of the conversation where the agent made the changes.
  2. List the files and read each one from top to bottom. Read the text as a visitor would: is every date right, does every link go where it says?
  3. Comment on one line that you want changed. Be specific: "Change 'electrical devices' to 'small electrics', the same as on the home page" is better than "wording".
  4. Send the comment with a short message that says to change nothing else.
  5. Check the fix in the Review pane and in your browser. Trust what you see, not the summary.
  6. Commit from the Review pane. If you leave the message empty, the agent writes one from the conversation and the files.

Follow the guide for Google Antigravity below.

Example: Marijke's review

The Review pane listed three new files: index.html, style.css and bring.html. On bring.html Marijke found "Please bring the device's charger if applicable". She commented: "Write: Bring the charger if it has one." The agent changed only that line. She checked it in the pane and in her browser, then clicked Commit with an empty message. The agent wrote "Add fix-it café home page and What can I bring page".

Review tips for non-developers

  • Search the diff for things that must be right, such as a date or a price. The pane has a Search box.
  • Watch for extras. A new file you did not ask for, or a change in a file that had nothing to do with the task, is a question for the agent.
  • One comment, one change. Several small comments work better than one long one.

Common mistakes

  • Using Discard to undo something small. Discard throws away changes at once, without asking, and deletes untracked files. Ask the agent to change it instead.
  • Committing before checking the browser. The diff shows the text, the browser shows how it looks. Check both.
  • Git does not know your name. If the commit fails because Git has no name or email, ask the agent: "Set my Git name and email for this repository only." Then commit again.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in Google Antigravity

Google Antigravity

  1. Open the conversation from lesson 2. In the Overview panel at the top right, click Review. If the panel is hidden, click Toggle Overview Panel or press Ctrl + Alt + O (Cmd + Option + O on a Mac).
  2. Click Toggle sidebar at the top right of the pane to list the changed files. A means added, U means a new file Git does not track yet, M means modified. Click a file to jump to its changes.
  3. Read every changed line. Find one line you would word differently, hover over it and click Add inline comment (+) at the start of the line.
  4. Type what you want instead and click Add Comment. A chip such as 1 Comment appears above the message box.
  5. Send a short message with it and press Enter. The agent receives your comment with the file name and line number.
    Please make the change in my comment. Change nothing else.
  6. When the agent is done, open Review again and check its fix. Open the page in your browser to see it too.
  7. Click Commit at the top of the pane. Make sure Include unstaged changes is selected, leave the message box empty so the agent writes the message, and click Commit.

Note: Discard unstaged changes in the Review pane works at once, without asking, and deletes new files that Git does not track yet. Use it only when you really want a change gone.

Checked on 4 December 2026 · Source: Antigravity docs: Review changes (opens in a new tab)

Create a free account to save your progress. Sign in or sign up