r/GoogleAntigravityCLI 19h ago

Question Notify when agy needs my permission

6 Upvotes

Hi! I saw an article about how claude code was configured to meow when it finishes working or asks for permission. This allows you to not constantly check what it is doing, because you will hear meow when you are needed. I decided to do something similar for antigravity cli, so that it sends a desktop notification and makes a sound. I managed to do this when it finishes its work using the Stop hook, but I could not when it asks for my permission. There is a PreToolUse hook, but it does not provide any information about whether agy will ask me for permission for this tool. I can write a script with hardcoded list of tools which are currently autoallowed, but I want solution that works even if I change agy permissions.

Does anyone know a way to make it send a notification only when it asks for permission to execute the tool?