Prerequisites
- VS Code or Cursor installed
- A Corridor account with a team created
Installation
Open the Extensions panel
In VS Code or Cursor, open the Extensions panel by pressing
Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux).Authentication
Hooks
Hooks are deterministic scripts that run at specific points in the code generation process, enabling real-time security reviews and policy enforcement without interrupting your development flow. Hooks are automatically enabled in the latest version of the Corridor extension.MCP compliance
Corridor tracks which MCP servers are active in your workspace and enforces your team’s policies. Unlike MCP relays, this approach integrates directly without adding latency or complexity. To configure MCP compliance settings, navigate to the Compliance tab in the Corridor dashboard and choose Allowlist Mode (allow only specific MCP servers) or Blocklist Mode (block specific MCP servers).Stop hooks (experimental)
When an AI agent generates code, Corridor can automatically evaluate the diff at the moment of creation, identify potential security issues, and guide the agent to remediate problems iteratively—all in the background without disrupting your flow. By default, hooks run in monitoring mode and won’t block code generation. To enable blocking behavior:- Open the Corridor extension menu in your IDE
- Click Enable Stop Hooks (experimental)
- Hooks will now prevent code with critical security issues from being applied
Troubleshooting hooks
If hooks are not running:- Verify you’re using the latest version of the Corridor extension
- Check that the extension is properly authenticated
- Ensure that you’ve enabled hooks in the extension