feat: add pre-commit review hook - #20
Merged
Merged
Conversation
EmersonBraun
marked this pull request as ready for review
July 30, 2026 22:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pre-commitframeworkpre-pushoptionWhy
Teams already using
pre-commitshould be able to invoke the same provider-neutral, adversarial review workflow without maintaining a custom wrapper. A full model-backed review is materially slower and more expensive than a formatter, so the hook does not silently run on every commit.The hook passes no positional filenames because the CLI reviews a repository diff, explicit paths, a pull request, or stdin. The documentation also makes clear that a pre-commit invocation does not mean only staged files are reviewed.
Validation
npm run check— 16 tests passed, including the new documentation contractnpm pack --dry-runincludes.pre-commit-hooks.yamlpre-commit validate-manifest .pre-commit-hooks.yamlgit diff --checkThis PR does not change CLI semantics, provider behavior, dependencies, the GitHub Action contract, or the package version.