Integration hooks for Antigravity CLI providing native Windows Toast notifications for completion events, user interaction requests, and tool permission prompts.
This project implements a professional notification system for the Antigravity CLI (agy) on Windows. It addresses the UX gap in long-running tasks by providing asynchronous alerts when the agent completes an operation or requires user intervention.
- Completion & Failure Alerts: Native Toast notifications for tasks. Automatically detects execution failures and changes alert sounds/titles accordingly.
- Interactive Prompts: Immediate alerts for
ask_usertool calls andToolPermissionrequests. - Native Audio: Uses Windows native
SMSnotification sound for optimal user experience. - CLI Configuration: Adjust settings like the time threshold directly from your terminal.
- Clone this repository and enter the directory:
git clone https://github.com/BillNobill/antigravity-cli-windows-notifier.git cd antigravity-cli-windows-notifier
- Open Antigravity CLI in this folder:
agy
- Give the following prompt:
"Install the windows notification hooks for me." Or run the command directly:
agy plugin install .
If you prefer the legacy method (which modifies settings.json directly):
- Clone the repository and navigate to the root.
- Run the installer:
node install.js
To remove the hooks and assets from your system:
agy plugin uninstall antigravity-windows-notifierLegacy removal:
node uninstall.jsNote
This operation will restore your settings.json from the latest backup and delete the notification scripts from the .gemini/antigravity-cli/hooks directory.
You can easily adjust the notification settings using the included configuration utility. By default, the system only notifies for tasks exceeding 5 seconds and the brand icon is disabled to maximize text space.
| Option | Description | Example |
|---|---|---|
--threshold=[seconds] |
Set minimum task duration for notifications | node config.js --threshold=10 |
--icon=[on|off] |
Enable or disable the Antigravity logo in notifications | node config.js --icon=on |
Tip
You can combine options in a single command: node config.js --threshold=5 --icon=off
Once installed, the notifier becomes Global for your user. It works in any folder where you run the Antigravity CLI.
Manage notifications directly within the CLI:
- List active hooks:
/hooks list - Disable a hook:
/hooks disable [hook-name] - Enable a hook:
/hooks enable [hook-name]
BeforeAgent: Persists start timestamp (ms) to%TEMP%.AfterAgent: Handles duration calculation, error detection heuristics, and triggers the Windows Toast via PowerShell.BeforeTool&Notification: Interceptsask_userandToolPermissionevents while preventing duplicate notifications.
Technical contributions and bug reports are welcome via Pull Requests.
MIT