Hooks
Hooks are local scripts that run at defined points in the agent lifecycle, such as before a task starts or after a task completes. They are optional and run on your machine with your user permissions.
Where hooks live
Section titled “Where hooks live”Project hooks live under .vdevairules/hooks/. VdevAI still discovers legacy .clinerules/hooks/ folders so existing
setups keep working, but new projects should use .vdevairules/hooks/.
Enable a hook
Section titled “Enable a hook”Make the script executable on macOS or Linux (chmod +x). On Windows, VdevAI runs a hook whenever the hook file
exists; check the hook output for platform-specific errors. Enable or disable hooks from the VdevAI hooks view.
Safety
Section titled “Safety”Hooks can read files, run commands and contact the network. Review a hook before enabling it, keep secrets out of hook output and avoid hooks that mutate unrelated repositories. A failing hook should not be treated as permission to retry with broader access.