git-lrc क्या है?
git-lrc git commit से जुड़ने वाला एक Go CLI, जो हर staged diff को commit होने से पहले AI review से गुज़ारता है। इसमें browser review UI है और git log में review stats भी दिखते हैं।. यह AI Coding टूल्स की AI Code Review & Security श्रेणी में आता है; ओपन सोर्स है, Go में लिखा गया है और Sustainable Use License (modified, source-available) लाइसेंस के तहत है।
सारांश
git-lrc, Hexmos का एक command-line tool है, जो AI code review को commit के समय पर ले आता है। यह एक global git hook इंस्टॉल करता है, ताकि मशीन की हर repository में हर git commit से पहले staged diff AI review के लिए भेजा जाए। README का तर्क है कि pull request के समय तक गलत कोड पहले ही commit, push और teammates के सामने पहुँच चुका होता है। IDE extensions वैकल्पिक हैं और एक editor तक सीमित रहते हैं, जबकि हर engineer commit करता है। यह खास तौर पर AI coding agents के लिखे कोड के लिए बनाया गया है, जो चुपचाप logic हटा सकते हैं, constraints ढीले कर सकते हैं या credentials लीक कर सकते हैं।

हर review एक local web UI खोलता है, जिसमें GitHub-style diff, severity badges वाली inline AI comments, review summary और staged-file list होती है। यहीं से आप commit कर सकते हैं, commit और push कर सकते हैं, या skip करके चीज़ें ठीक करने जा सकते हैं। Issue Navigator findings को severity, type और 10 risk categories की catalogue के आधार पर filter करता है, और issues को copy कर सकता है या उन्हें Claude को भेज सकता है ताकि वे fix loop में वापस जाएँ। एक risk-scored view हर hunk को blast radius और review priority के हिसाब से rank करता है, जिसके लिए local तौर पर बनाए गए code graph का इस्तेमाल होता है। साथ ही हर review एक छोटी summary slide deck भी बनाता है।

हर commit के message में एक review status line जुड़ती है (ran, vouched या skipped, iteration count और AI-review coverage के साथ), ताकि git log से पता चले कि कौन से changes review हुए। Setup में Hexmos की LiveReview service पर sign in होता है और डिफ़ॉल्ट रूप से free Gemini API key इस्तेमाल होती है। OpenAI, Claude, DeepSeek, OpenRouter, Atlas Cloud और Anthropic-compatible endpoints को bring-your-own-key connectors के रूप में जोड़ा जा सकता है। README के अनुसार सिर्फ staged diff भेजा जाता है और review के बाद diffs store नहीं होते। Pricing review किए गए कोड की lines (LOC) के हिसाब से है: हर महीने 30k LOC मुफ़्त, और paid Premium और Enterprise tiers भी उपलब्ध हैं।
यह क्या करता है
- Global commit hook: हर git commit अपने आप review होता है, या git lrc review को हाथ से चलाया जा सकता है, साथ में --vouch (निजी ज़िम्मेदारी लेने के लिए) या --skip (छोड़ने के लिए)
- Browser review UI: GitHub-style diff, severity वाली inline AI comments, summary, हर file के diff stats, एक क्लिक में issue copy करने की सुविधा और Commit / Commit & Push / Skip का निर्णय
- Issue Navigator जो findings को severity, type और risk category से filter करता है, thumbs up/down feedback और Send to Claude के साथ, और हर review के लिए अपने आप बनने वाली summary slide deck
- Risk-scored review view जो hunks को blast radius और review priority के हिसाब से rank करता है, local codebase-memory-mcp knowledge graph से, और हर score के साथ योगदान देने वाले signals दिखाता है


- git log में लिखा गया review status (iterations और coverage), coding agents और CI के लिए --agent-mode जो JSON लौटाता है, और Claude Code के लिए बंडल्ड claude-lrc slash-command workflow
- Per-repository rules और ignore patterns version-controlled .lrc/ directory में, साथ ही Gemini, OpenAI, Claude, DeepSeek, OpenRouter और Atlas Cloud के लिए bring-your-own-key connectors
शुरू करें
git-lrc एक single binary के रूप में इंस्टॉल होता है और इसके hooks global रूप से सेट होते हैं। आपको Hexmos (LiveReview) sign-in की ज़रूरत होगी और डिफ़ॉल्ट रूप से Google AI Studio से मिलने वाली एक free Gemini API key भी। नीचे दिए गए commands project के README से लिए गए हैं।
git-lrc इंस्टॉल करें
README Hexmos के IPM installer की सलाह देता है; सीधे install script का विकल्प भी है। Windows पर README में दिए PowerShell के समकक्ष commands इस्तेमाल करें।
# Linux/macOS via IPM
curl -L https://hexmos.com/ipm-install | bash && ipm i HexmosTech/git-lrc
# or the direct install script
curl -fsSL https://hexmos.com/lrc-install.sh | bashएक बार का setup चलाएँ
Setup आपका browser दो बार खोलता है: एक बार LiveReview API key के लिए Hexmos से sign in करने हेतु, और एक बार Gemini API key लेने के लिए। इसके बाद मशीन की हर git repository पर commit होते ही review चलता है।
git lrc setupसामान्य तरीके से commit करें, या पहले review करें
सामान्य commit करने पर वह आगे बढ़ने से पहले review शुरू हो जाता है। Commit से पहले बार-बार सुधार करने के लिए review खुद चलाएँ; दोनों ही स्थितियों में आपके browser में review UI खुलता है।
git add .
git lrc review # run AI review first
# git lrc review --vouch # vouch personally, skip AI
# git lrc review --skip # skip review entirely
git commit -m "add payment validation"coding agent या CI से review चलवाएँ
Agent mode बिना browser के review चलाता है और JSON प्रिंट करता है; पूरा हुआ review agent-reviewed attestation दर्ज करता है, ताकि अगला commit आगे बढ़ सके।
git add .
git lrc review --agent-mode
git commit -m "add payment validation"अपनी repository के नियम सिखाएँ
.lrc/ directory बनाएँ जिसमें rules/*.md guidance और एक ignore file हो, फिर जाँचें और देखें कि reviewer को ठीक-ठीक क्या भेजा जाएगा।
lrc config init
lrc config check
lrc config previewmodels और per-repo hooks प्रबंधित करें
lrc ui bring-your-own-key connectors और उनकी priority प्रबंधित करता है; किसी एक repository के लिए hooks बंद किए जा सकते हैं।
lrc ui
git lrc hooks disable # disable for current repo
git lrc hooks enable # re-enable later
कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- जब AI coding agents आपके कोड का बड़ा हिस्सा लिखते हों, और आप चाहते हों कि हर diff git history में जाने से पहले हटाए गए logic, लीक हुए secrets या महँगी calls के लिए जाँचा जाए, तब इसका इस्तेमाल करें।
- जब आपकी टीम अलग-अलग editors और assistants इस्तेमाल करती हो और आप एक ऐसा review checkpoint चाहते हों जो किसी IDE extension पर निर्भर न हो, तब इसका इस्तेमाल करें।
- जब आप चाहते हों कि git log यह दर्ज करे कि कौन से commits AI-reviewed, vouched या skipped थे, और हर diff का कितना हिस्सा cover हुआ, तब इसका इस्तेमाल करें।
- जब कोई बड़ा diff छाँटना (triage) हो और आप चाहते हों कि उसके hunks blast radius के हिसाब से rank हों ताकि सबसे जोखिम वाले बदलाव पहले पढ़े जाएँ, तब इसका इस्तेमाल करें।
How git-lrc compares
git-lrc alongside other open-source ai code review & security tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Open Code Review | ★ 57.9k | Alibaba का code-review CLI, जो review प्रक्रिया को deterministic engineering से तय रखता है और सिर्फ़ judgement calls LLM agent पर छोड़ता है |
| Bend | ★ 26.1k | एक कंपाइल होने वाली भाषा जिसका टाइप चेकर ही प्रूफ़ चेकर भी है, इसलिए AI का कोई बदलाव तभी बिल्ड होता है जब वह साबित करे कि आपके घोषित नियम अब भी सही हैं |
| Codex Security | ★ 14.5k | किसी codebase में सुरक्षा कमज़ोरियाँ (vulnerabilities) खोजने, उनकी पुष्टि (validate) करने और उन्हें ठीक करने के लिए OpenAI का CLI और TypeScript SDK |
| Whiteboard | ★ 3.6k | एक ओपन सोर्स कैनवास, जहाँ कोडिंग एजेंट अपने बदलावों के डायग्राम बनाते हैं, ताकि लोग diff देखने से पहले डिज़ाइन की समीक्षा कर सकें |
| git-lrc | ★ 1.5k | git commit से जुड़ने वाला एक Go CLI, जो हर staged diff को commit होने से पहले AI review से गुज़ारता है। इसमें browser review UI है और git log में review stats भी दिखते हैं। |
| Sphinx | ★ 511 | एक git hook जो protected branch पर push को तब तक रोकता है जब तक आप सही अनुमान न लगा लें कि agent द्वारा लिखा गया change क्या करता है |
| CodeRabbit | — | AI pull request reviewer that analyzes diffs with full-repo context to flag bugs, security issues, and quality problems, posting inline comments and one-click fixes. |
| Greptile | — | AI code review tool that indexes your whole codebase into a graph so a swarm of agents can catch multi-file logic bugs and security risks in every PR. |
