Prerequisites
- Asymptote CLI installed (
asymcommand) - Claude Code installed (
claudecommand), or the Claude Code VS Code extension - Logged in to your Asymptote account (
asym login)
Setup
Install the Asymptote plugin for Claude Code
Run the install command. By default, the plugin is installed at the user level and applies to all projects:To install for the current project only:If you’re running Claude Code inside VS Code, use the
--vscode flag instead:How it works
Once installed, Asymptote registers four hooks via Claude’s plugin system:| Hook | Purpose |
|---|---|
SessionStart | Initializes the session and performs cleanup |
PostToolUse | Submits diffs for async security evaluation |
Stop | Polls results and re-prompts Claude on violations |
SessionEnd | Final cleanup |
Secure by Design
Asymptote includes an optional Secure by Design mode for Claude Code. When enabled, Asymptote injects your active security policies into Claude’s context during theUserPromptSubmit hook, before any code is written. This makes Claude security-aware from the first prompt rather than catching violations after they’re generated.
To enable it:
Uninstalling
To remove the Asymptote plugin from Claude Code:Next steps
Cursor
Set up Asymptote for Cursor IDE.
GitHub Copilot
Set up Asymptote for GitHub Copilot in VS Code.
Factory
Set up Asymptote for Factory’s Droid agent.
CLI reference
Full reference for the
asym claude command.
