All docs

The pre-commit hook

Last updated 24 November 2026

Since 1.18.0 the scanner's repository is a hook repository of the pre-commit framework. Add the hook to a repository and every commit that changes agent content, such as a skill, an MCP configuration file or an agent card, is scanned on the developer's machine first. A finding at the chosen severity stops the commit, as it would fail the CI check later. The hook runs the same open-source scanner as the GitHub Action and the GitLab component. Since 1.19.0 it judges only what is staged for the commit, and it sends nothing to Spellwarden.