All guides

Walk away from long Antigravity tasks: a workflow

Updated 27 November 2026 · 6 min read

To leave Google Antigravity running and walk away, do four things before you go: keep the computer from sleeping, give agy a clear task with a definition of done, commit your work so you can roll back, and set up a way to hear from it when it finishes or needs a decision. Google's Remote Control lets you follow the session from your phone's browser. A notifier app such as Antigravity Notifier sends only the moments that need you to a native app, and makes Antigravity wait for your answer only once you're actually away, on Mac, Windows and Linux.

011. Keep the computer awake

Antigravity runs on your machine, so a sleeping laptop stops it, and Remote Control shows the session offline.

  • macOS: start the session under caffeinate, for example caffeinate -i agy. Keep a laptop on power with the lid open.
  • Windows: set Sleep to Never while plugged in, under Settings, System, Power.
  • Linux: systemd-inhibit agy holds off sleep for as long as agy runs.

On a server, run agy inside tmux so the session survives a dropped SSH connection.

022. Give a task with a definition of done

Unclear tasks end early with a question, or run long in the wrong direction. Before you leave:

  • Say what "finished" means: "all tests in billing/ pass and the linter is clean".
  • Name the boundaries: "don't touch the migrations folder".
  • Commit first, so you can review and roll back with git.
  • For a big change, agree the approach with Antigravity before you go, then tell it to carry it out.

033. Know what will stop and ask

Since version 1.5.7, interactive agy sessions start in Auto mode where Auto is available (it needs a personal account and the sandbox); otherwise they start in default mode, which asks before more commands. In Auto, sandboxed "safe" commands run without asking, and Antigravity stops to ask about the rest. Those remaining prompts, plus any questions it asks with its ask_question tool, are what will be waiting for you.

Two things to know:

  • --dangerously-skip-permissions does not turn hooks off. Any hook you have still runs on every tool call.
  • agy -p (print mode) runs without a conversation. Nobody can answer a prompt there, and a hook that answers force_ask gets a denial. Hooks still run, so a Stop hook still tells you when it's done.

The goal isn't zero prompts. The ones that remain are the decisions worth sending to your phone.

044. Set up a way to hear from it

You need to know two things while you're away: Antigravity has finished, and Antigravity is waiting on you.

Free, one-way: a Stop hook in ~/.gemini/config/hooks.json that posts to Telegram, Slack or Discord. You'll know when to come back. Antigravity has no "needs approval" event, so a one-way hook can't reliably tell you a prompt is waiting.

Free, two-way, for the desktop app: Google's Remote Control. Turn it on in the desktop app's settings or with /remote-control in agy, and answer prompts from your phone's browser.

Two-way, with Antigravity Notifier: pair your phone and you get "Antigravity has finished" with its last message, commands to allow or deny, and questions to answer, in a native iPhone or Android app. It's independent, made by TouchTap Ltd and not affiliated with Google, and it covers the agy command line (the desktop app isn't supported yet).

05How Antigravity Notifier decides you're away

Holding a command for the phone has a cost in Antigravity: while a hook holds, Antigravity shows no prompt of its own, and the terminal just says the command is running. So antigravity-notifier holds only when you've gone.

  • At the keyboard means any input in the last 30 seconds on an unlocked screen. Then nothing waits, and tool calls aren't sent to the phone. presence_threshold_seconds changes the 30.
  • A locked screen counts as away at once on macOS and Linux (logind). On Windows, and with a display that merely sleeps, only keyboard input counts. Lock your screen as you leave and the phone takes over straight away.
  • Coming back: real keyboard input ends any wait, and you carry on at the computer.

Once you're away:

  • commands wait for your answer: allow once, allow for this session, or deny with a note that Antigravity reads as the reason;
  • questions wait too, and you can pick one option, several, or type your own;
  • after each turn you have two minutes (stop_hold_seconds) to send the next instruction, and Antigravity starts on it straight away;
  • on iPhone, a lock screen card shows the current step and the files and lines changed.

How long a command waits is hold_ceiling_seconds, 10 minutes by default. A single tool call can't wait longer than 600 seconds, so a higher setting doesn't stretch it. If you don't answer in time, nothing is approved for you: Antigravity shows its own prompt at the computer with "No answer from your phone" on it, and waits there.

06The prompt you walked away from

One case needs care. If Antigravity asked you something while you were still at the desk, the hook let Antigravity ask as normal, and then you left, Antigravity has no event that tells anyone a prompt is waiting. antigravity-notifier watches for this: if you go away while that command is still open, it sends one note after about 20 seconds, "Antigravity may be waiting for you". It has no buttons, because the answer now belongs to the prompt at your computer. antigravity-notifier config set walkaway_alerts off turns it off.

07A routine that works

  1. Commit, then start agy inside tmux (or under caffeinate -i on a Mac).
  2. Agree the plan, then tell Antigravity to carry it out and what done means.
  3. Check the phone is paired: antigravity-notifier test.
  4. Lock your screen and walk away. Allow, deny, answer or redirect from the phone.
  5. When "Antigravity has finished" arrives, read its last message and either send the next step from the phone or review the diff when you're back.

To keep nights quiet, antigravity-notifier config set quiet_hours 22:00-08:00.

08FAQ

What happens if Antigravity asks for approval while I'm asleep?

With Antigravity Notifier, the command waits up to your hold limit, then Antigravity shows its normal prompt at the computer and waits there until you answer. Nothing is approved for you. Set quiet hours if you don't want pushes at night.

Will closing my laptop lid stop Antigravity?

Usually, yes, because the laptop sleeps. Keep it open and on power, or run agy on a desktop or server that stays on.

Does the phone get a push for every turn?

One "Antigravity has finished" per turn while you're away, and none while background tasks are still running or when you stopped the turn yourself. If a turn ends in an error, the card says so.

Does this work for agy -p scripts?

Antigravity Notifier never holds anything in agy -p, because a prompt there can't be answered. You still get its cards as notes, so you know when the script is done.

Can I use it over SSH?

Yes. The hook runs where agy runs, so a session on a server over SSH, in tmux or in any terminal is covered.

Antigravity Notifier Get a push on your phone when Antigravity finishes or needs you, then allow, deny or answer from there. The antigravity-notifier command line tool is free on Mac, Windows and Linux.