PatchBrake is a local safety gate for AI-generated patches.
- Pins the GitHub Action npm install path to
patchbrake@0.1.3instead oflatest. - Installs with
--ignore-scriptsin the composite Action. - Adds npm, CI, and MIT license badges to the README.
- Sets the package author to
PatchBrake contributors. - Reads the CLI version from
package.jsonto prevent future version drift. - Updates Action examples to use
RyanCoreAI/patchbrake@v0.1.3andversion: "0.1.3". - Adds release-readiness tests for badges, author, pinned Action version,
--ignore-scripts, and non-hardcoded CLI version.
npx patchbrake@0.1.3 scan --staged
No LLM. No dashboard. No code upload. Just scan the diff before you commit.