Does Antigravity support hooks, similar to the hook functionality in Windsurf?
Hello @66_66, welcome to AI Forum!
In Antigravity, you can achieve ‘hook-like’ behavior (automating sequences of actions or triggering specific agent behaviors) using the following methods:
- You can define custom, multi-step processes in the .agent/workflows/ directory. These allow you to guide the agent through specific lifecycle tasks, such as ‘Run tests after every refactor’ or ‘Generate documentation after updating a schema.’
- By utilizing .agent/rules/, you can set behavioral ‘hooks’ that the agent must follow. For example, you can create a rule that triggers a specific validation check every time the agent modifies a specific directory.
You can find more details in the documentation.