HexmosTech/git-lrc

Free, Micro AI Code Reviews That Run on Git Commit

What it solves

git-lrc は、ソフトウェアの停止、セキュリティ侵害、技術的負債を防ぎ、コードが git 履歴にコミットされる前にエラーを捕捉します。特に AI が生成したコードの問題に対処します。AI 生成コードは、開発者が気付かないうちにバグを埋め込んだり、重要なロジックを削除したり、認証情報を漏洩させたりすることがありますが、これらはコードが本番環境に到達するまで気付かれません。

How it works

このツールは git commit プロセスにフックし、diff の AI 駆動レビューを自動的にトリガーします。Web ベースの UI で GitHub 風の diff を表示し、インラインで AI コメントを重大度(Critical、Warning、Info)別に付与します。開発者は指摘された問題を修正して再レビューするか、コードに対して「vouch」して個人的な責任を持ちコミットできます。

Who it’s for

AI エージェントでコードを生成し、すべてのリポジトリでコード品質とセキュリティを保証するエディタ非依存の汎用安全ネットを求めるソフトウェアエンジニアやチーム向けです。

Highlights

  • Commit-time enforcement: Runs automatically on git commit or manually via git lrc review.
  • Risk-based triage: An Issue Navigator allows filtering by 10 risk categories and 100+ failure patterns.
  • Repository-specific rules: Users can define custom team preferences and constraints in a .lrc/ directory to guide the AI reviewer.
  • Git log tracking: Appends review status (iterations and coverage percentage) directly to the git commit message for institutional memory.
  • Summary Deck: Automatically generates a short slide deck summarizing changes and risks for quick orientation.
  • BYOK Support: Compatible with Gemini, OpenAI, Claude, DeepSeek, and OpenRouter.