The layers
| Layer | When it runs | What you do |
|---|---|---|
| IDE extension | As you edit | Fix findings inline before you commit. See Install the IDE extension. |
| MCP server | While an AI assistant works | The assistant checks a change against your policies as part of its loop. See Install the MCP server. |
| Git hooks | On commit and push | Staged changes are checked before they leave your machine. See Install git hooks. |
| PR gate | On every pull request | Each PR is evaluated and reported inline; blocking findings hold the merge. See Set up the PR gate. |
How they work together
You don’t have to use every layer, and they don’t duplicate work in a way that slows you down — each is a chance to resolve an issue earlier:- The IDE gives you the fastest feedback, while you’re still writing the code.
- The MCP server keeps AI-written code in policy at the moment it’s generated.
- Git hooks are the last local checkpoint before code leaves your machine.
- The PR gate is the shared, enforced checkpoint for the whole team.
Next steps
Running scans
The scan commands behind these layers.
Reading findings
Make sense of what a layer reports.