Inspired by Reddit r/coolgithubprojects

Git Pre-Commit AI Review

Review your code changes before committing. Catch security vulnerabilities, performance issues, and bugs before they reach the remote repository.

Configuration Preview
AI Model:
# .git-ai-review.yaml
model: claude-3-sonnet

# Review rules
rules:
  security:
    enabled: true
    severity: block  # block | warn | ignore
  performance:
    enabled: true
    severity: warn
  style:
    enabled: false
    
# File filtering
include:
  - "src/**/*.{ts,tsx,js,jsx}"
  - "lib/**/*.py"
exclude:
  - "**/*.test.ts"
  - "**/dist/**"
Paste Git Diff (staged changes)

Security Scanning

Detect hardcoded secrets, SQL injection, XSS, and other vulnerabilities

Performance Checks

Identify inefficient patterns, memory leaks, and optimization opportunities

Multi-Model Support

Use OpenAI, Claude, or local Ollama models for privacy-sensitive code

Quick Install

# Install with npm
npm install -D git-ai-review
# Initialize pre-commit hook
npx git-ai-review init

Inspired by Reddit r/coolgithubprojects

Related tools: Huskypre-commit

Related Free AI Tools

PenToolAI Text RewriterFileDigitAI SummarizerSearchAI Content DetectorImageAI Background RemoverTerminalSquareAI Code Explainer