Back to browse
GitHub Repository

An AI-powered Git pre-commit security gate

6 starsPython

CommitGate – Automatically scan your commit for vulnerabilities

by ductrl·Jun 21, 2026·3 points·3 comments

AI Analysis

MidShip It

Gitleaks plus AI reviewer when pre-commit security scanners already exist.

Strengths
  • Two-layer approach merges deterministic Gitleaks patterns with semantic AI analysis
  • Decision engine blocks/warns/allows commits with Rich terminal reports explaining findings
Weaknesses
  • High setup friction: need Gitleaks binary, Python, and paid AI API key before first use
  • Pre-commit AI security scanning is crowded — Gitleaks, truffleHog, git-secrets already exist
Category
Target Audience

Developers wanting pre-commit security scanning

Similar To

Gitleaks · truffleHog · git-secrets

Post Description

Hello HN! I built a pre-commit code scanner that checks your staged changes for security vulnerabilities every time you run 'git commit'.

I am an inexperienced programmer and this is my first personal project. Any feedback, positive or negative, big or small, relevant or not, would be greatly helpful and appreciated!

The tool requires Gitleaks and Python to run, you will also need to use your own AI API key, which I understand is a big setup friction. You can check out my demo video instead if that is more convenient: https://youtu.be/ZYe5vWFRTus?si=9Fv8DhTHktwDK4mV

Thank you so much for giving my project a try!!!

Similar Projects

Developer Tools●●Solid

Agentic Gatekeeper – AI pre-commit hook to auto-patch logic errors

AI pre-commit hook that auto-patches logic errors against CONTRIBUTING.md rules—solves real drift but needs Windows support.

Big BrainShip It
revanth1108
203mo ago