That’s it! You’re all set. Restart VS Code and start using Zenable’s conformance checking in your AI coding assistant.This installs both the MCP server and VS Code Copilot agent hooks for real-time code checking. Hooks rely on VS Code’s Preview hooks API, so the format may change in future releases.
Advanced: Manual Configuration
The below is a minimal example which may need to be merged with your existing configuration. Consider using the quick install command to handle this automatically.
We only recommend this manual approach if you can’t use zenable install. Otherwise, zenable install is much safer and can handle configuration upgrades over time, handles merges with existing configs, performs backups and logging in case of issues, and more.
Advanced: Manual Hook Configuration
Hooks run automatically at session boundaries to check for conformance issues. The quick install command sets this up for you.
VS Code’s Copilot agent hooks are project-level only. Place the following in .github/hooks/zenable.json:
This uses VS Code’s Copilot agent hooks to run conformance checks. The || true on PreToolUse keeps it non-blocking — Zenable hooks never deny tool calls.