When Google Antigravity needs you to choose, it calls a tool named ask_question with the question and its options, and waits. Antigravity runs a PreToolUse hook before that tool, so a hook can send the question to your phone, wait for your pick, then block the tool call with a deny whose reason holds your answer. The model reads the reason word for word and carries on as if you had answered at the computer. Antigravity Notifier does this for the agy command line on Mac, Windows and Linux, with its free antigravity-notifier tool and an iPhone or Android app.
01How Antigravity asks questions
In the agy command line, a structured question is a tool call. The PreToolUse hook receives it like this:
{
"hookEventName": "PreToolUse",
"toolCall": {
"name": "ask_question",
"args": {
"questions": [
{
"question": "Which database should the migration run against?",
"options": ["staging", "local"],
"is_multi_select": false
}
]
}
}
}
A call can carry several questions, and a question can allow more than one option (is_multi_select). Antigravity also often asks in plain text at the end of a turn ("Shall I update the docs too?"). That isn't a tool call: the turn has ended, and you answer it with your next message. Both cases are covered below.
02Why a hook can answer
The question tool reads its answer at the computer, not from the hook. But a PreToolUse hook can block any tool call, and Antigravity passes a deny reason to the model exactly as written. So the hook blocks the question and puts the answer in the reason:
{
"decision": "deny",
"reason": "The user has already answered on their phone. Which database should the migration run against?: staging. Continue with this answer and do not ask again."
}
The model reads that as the result of its question and continues. Say plainly that the user has answered, so it doesn't ask again.
Remember that Antigravity is fail-closed: a PreToolUse hook that prints nothing, exits with an error or times out blocks the tool. If your hook has no answer to give, print {"decision":"allow"} and the question appears at the computer as usual.
03The quick way: Antigravity Notifier
Antigravity Notifier is an independent app by TouchTap Ltd, not made by or affiliated with Google. Its free antigravity-notifier tool adds the hooks for you, and the phone app shows the question.
- Install the app on your iPhone or Android phone and add a computer. It shows a 6-digit code and the line to run.
- Run the line on the computer, for example
curl -fsSL https://antigravitynotifier.com/install.sh | sh -s 482913on Mac or Linux. Windows (beta) has a PowerShell line on the antigravity-notifier page. - Start a new
agysession. When Antigravity asks a question and you're away, it appears on your phone.
On the phone you can:
- tap one of Antigravity's options;
- tick several, when the question allows more than one;
- type your own answer instead.
Several questions in one call are answered together. Your answer goes back as the deny reason, and Antigravity continues from it.
04The other kind of question: a finished turn
When Antigravity ends a turn with a question in its reply, the Stop hook fires. Antigravity Notifier's "Antigravity has finished" card shows that last message, and right after a turn ends you can type the next instruction on the phone: "yes, update the docs too". The Stop hook hands it to Antigravity, which starts a new turn on it, so the session carries on without you going back to the keyboard.
You have two minutes after the turn ends by default. antigravity-notifier config set stop_hold_seconds 300 gives you five; 0 turns follow-ups off.
05When the phone is asked
Questions follow the same rule as approvals:
- At the keyboard (input in the last 30 seconds on an unlocked screen): nothing waits, and the question appears at the computer.
- Away, or the screen is locked: Antigravity waits for your answer from the phone. On macOS and Linux a locked screen counts as away at once; on Windows only keyboard input counts.
- You come back: real keyboard input ends the wait, and you answer at the computer.
- Nobody answers in time: the question appears at the computer. Nothing is chosen for you.
The wait is capped by hold_ceiling_seconds, 10 minutes by default (a tool call can't wait longer than 600 seconds). While a hook holds, Antigravity shows no question of its own, which is why nothing is held while you're at the keyboard.
To keep questions off the phone and everything else on, run antigravity-notifier config set notify_on_question off.
06Doing it yourself
A hand-built version needs the same pieces as remote approval:
- A
PreToolUseentry in a named group of~/.gemini/config/hooks.json, with atimeoutlonger than your wait. - A script that prints
{"decision":"allow"}at once for any tool other thanask_question. - A way to show the options on your phone and collect a reply, with a time limit.
- The deny-with-reason output above when an answer comes, and
{"decision":"allow"}when it doesn't.
If you only want to know that Antigravity is asking, a hook that posts the question to a chat webhook and prints {"decision":"allow"} is enough. You then answer at the computer.
07FAQ
Why does the hook "deny" the question? Isn't that an error?
It's the way a PreToolUse hook stops a tool call and hands the model a message. The question tool doesn't run, and the model reads your answer from the reason.
Will Antigravity ask the same question again at the computer?
Not if the reason says clearly that you've already answered. Models follow that well, but it's model behaviour, not a guarantee.
Can I answer questions that allow several options?
Yes. When a question allows more than one option, the phone lets you tick several, and all of them are sent back.
Does this work in the Antigravity desktop app?
Not with Antigravity Notifier yet: it supports the agy command line. Google's Remote Control answers prompts in the desktop app from your phone's browser.
Does answering from the phone work over SSH or in tmux?
Yes. The answer goes back through Antigravity's own hooks, which run wherever agy runs, including SSH sessions and tmux.