The pre-commit hook currently runs `make pre-commit` or `make
pre-commit-light` on every commit for everyone who has the repository
hooks installed. This makes it opt-in, mirroring how
`scripts/githooks/pre-push` already works: checks run only when `git
config coder.pre-commit true` is set or the workspace owner is on the
hook's allowlist, and `git config coder.pre-commit false` opts out
explicitly. By default the hook prints a one-line skip message and exits
0.
Hook installation (`core.hooksPath`) and the linked-worktree hooksPath
shield are unchanged, so `post-checkout` and `pre-push` keep working as
before. `.claude/docs/WORKFLOWS.md` and
`docs/about/contributing/CONTRIBUTING.md` describe the new opt-in.
> Xum (an AI coding agent) authored this PR on behalf of @ibetitsmike.