Commit Check 2.25.0 adds checks for risky coding-agent settings
Commit Check 2.25.0 adds four policy rules for agent settings that can auto-approve MCP servers, redirect API requests, bypass command approval or let unrestricted users trigger workflows.
Commit Check 2.25.0 adds four rules that inspect coding-agent configuration files and reject settings that grant broad control without an explicit review. The checks cover Claude Code, Codex, Gemini CLI, Cursor CLI, GitHub Copilot in VS Code and the Claude Code GitHub Action.
The new rules flag automatic approval of MCP servers, alternate API endpoints such as ANTHROPIC_BASE_URL, command execution without approval or outside a sandbox, and workflow triggers that allow any non-write user or bot to start an agent. They are disabled by default and can be enabled with the [agent] enabled = true setting in cchk.toml.
The tool can run from the CLI, in pre-commit or pre-push hooks, and through GitHub Actions, GitLab CI/CD and Bitbucket pipelines. For GitHub pull requests, using the base branch's cchk.toml prevents a change from adding its own server to the allowlist used for the check.
The rules are deliberately limited: they detect specific broad-access values but do not inspect every risky command, hook or already-running agent. The article also notes that teams can allow selected MCP servers and API endpoints, or place a rule in a warning list instead of failing the build.