← Back to field notes
Developer workflow2026-07-084 min read

Pre-commit quality gates for AI-assisted engineering

Use fast local checks before a commit and keep the expensive confidence checks at pre-push.

A glass repository passing through two quality checkpoints
review / test / ship

AI-assisted coding increases the number of changes a team can make in a day. It also makes a fast feedback loop more important. Policate managed Git hooks let a platform owner distribute a small, reviewable quality gate without replacing a team’s existing hooks.

Keep pre-commit fast

The pre-commit preset runs `policate hooks review --staged`, a deterministic staged-diff check that blocks whitespace and patch errors. It is intentionally quick and local, so it does not turn every commit into a remote inference request.

Move deeper checks to pre-push

Type-checks, unit tests, and policy checks belong at pre-push when they are too expensive for every commit. The dashboard can distribute those commands to the same binary, which installs them in the current repository while preserving user-authored hook content.

Teams can disable or revise the managed item centrally, and the next enforced startup sync removes stale Policate-managed blocks without touching unrelated Git hooks.