Review your code changes before committing. Catch security vulnerabilities, performance issues, and bugs before they reach the remote repository.
# .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/**"Detect hardcoded secrets, SQL injection, XSS, and other vulnerabilities
Identify inefficient patterns, memory leaks, and optimization opportunities
Use OpenAI, Claude, or local Ollama models for privacy-sensitive code
Inspired by Reddit r/coolgithubprojects
Related tools: Husky • pre-commit