Skip to main content

Quick Install

Requires Claude Code 1.0.58+. See the CLI command reference for more options.
That’s it! You’re all set. Restart Claude Code and start using Zenable’s conformance checking in your AI coding assistant. This installs both the MCP server and Claude Code hooks for real-time code checking.
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.
Place the following configuration:
In one of these file locations:
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.
The quick install command sets these hooks up for you and keeps them current as Claude Code adds hook events.
Place the following configuration in .claude/settings.json (project) or ~/.claude/settings.json (global):
These use Claude Code hooks:
  • UserPromptSubmit marks where the agent’s work starts, and Stop runs the conformance check on what changed when the agent finishes a turn.
  • PostToolBatch (Claude Code 2.1.152 or later) records tool activity and notices branch switches.
  • SessionStart and PostModelSwitch record model usage so Zenable can refine context files for the models actually in use.