Prerequisites
- Asymptote CLI installed (
asymcommand) - GitHub Copilot extension installed in VS Code
- Logged in to your Asymptote account (
asym login) - A git repository (hooks are project-level only)
Setup
Install the Asymptote hooks
Run the install command:This writes the hook configuration to
.github/hooks/hooks.json in your repository and installs the hooks binary to ~/.asymptote/copilot/.How it works
Once installed, Asymptote registers hooks in.github/hooks/hooks.json. For every file edit Copilot makes, Asymptote captures the diff, evaluates it against your security policies, and guides Copilot to remediate any violations.
Other existing hooks in hooks.json are preserved.
Uninstalling
To remove the Asymptote hooks from the current repository, run from the same project directory:.github/hooks/hooks.json and cleans up the hooks binary. Other hooks in the file are preserved.

