Hooks in Antigravity

Any change you are going to implement hooks? This would be perfect for running scripts/instructions that must take place after every code change. Thanks for your feedback.

Hello @ivan_terrible, 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.

1 Like