Skip to main content
Asymptote hooks into Cursor’s agent to automatically evaluate every file edit against your security policies—before code is written to disk.

Prerequisites

  • Asymptote CLI installed (asym command)
  • A Cursor editor with agent mode enabled
  • Logged in to your Asymptote account (asym login)

Setup

1

Install the Asymptote CLI

Install the CLI via Homebrew:
brew install asymptote-cli
Then log in:
asym login
2

Install hooks for Cursor

Run the install command from any directory. By default, hooks are installed at the user level and apply to all projects:
asym cursor install
To install only for the current project, use the --project flag:
asym cursor install --project
3

Restart Cursor

Restart Cursor to activate the hooks. Asymptote will now evaluate every file edit made by Cursor’s AI agent against your security policies automatically.

How it works

Once installed, Asymptote registers hooks in Cursor’s hooks.json. For every file edit the AI agent makes, Asymptote:
  1. Captures the diff
  2. Evaluates it against your security policies
  3. Re-prompts the agent to remediate any violations before writing to disk
No changes to your Cursor workflow are required.

Uninstalling

To remove the Asymptote hooks from Cursor:
asym cursor uninstall
To remove project-level hooks only:
asym cursor uninstall --project
Restart Cursor after uninstalling to deactivate the hooks.

Next steps