README.md

May 8, 2026 ยท View on GitHub

| ๐Ÿ‡ฉ๐Ÿ‡ฐ Dansk | ๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol | ๐Ÿ‡ฎ๐Ÿ‡ท Farsi | ๐Ÿ‡ซ๐Ÿ‡ฎ Suomi | ๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่ชž | ๐Ÿ‡ณ๐Ÿ‡ด Norsk | ๐Ÿ‡ต๐Ÿ‡น Portuguรชs | ๐Ÿ‡ท๐Ÿ‡บ ะ ัƒััะบะธะน | ๐Ÿ‡ฆ๐Ÿ‡ฑ Shqip | ๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡ |



git-lrc logo

git-lrc

Free, Micro AI Code Reviews That Run on Commit



git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt ย 


Discord Community Go Report Cardย gitleaks.ymlย osv-scanner.ymlย govulncheck.ymlย semgrep.ymlย dependabot-enabled



AI agents write code fast. They also silently remove logic, change behavior, and introduce bugs -- without telling you. You often find out in production.

git-lrc fixes this. It hooks into git commit and reviews every diff before it lands. 60-second setup. Completely free.

See It In Action

See git-lrc catch serious security issues such as leaked credentials, expensive cloud operations, and sensitive material in log statements

https://github.com/user-attachments/assets/cc4aa598-a7e3-4a1d-998c-9f2ba4b4c66e

Why

  • ๐Ÿค– AI agents silently break things. Code removed. Logic changed. Edge cases gone. You won't notice until production.
  • ๐Ÿ” Catch it before it ships. AI-powered inline comments show you exactly what changed and what looks wrong.
  • ๐Ÿ” Build a habit, ship better code. Regular review โ†’ fewer bugs โ†’ more robust code โ†’ better results in your team.
  • ๐Ÿ”— Why git? Git is universal. Every editor, every IDE, every AI toolkit uses it. Committing is mandatory. So there's almost no chance of missing a review โ€” regardless of your stack.

Get Started

Install

# Linux/macOS
curl -L https://hexmos.com/ipm-install | bash && ipm i HexmosTech/git-lrc

# Windows
iwr https://hexmos.com/ipm-install-ps | iex; ipm i HexmosTech/git-lrc

Alternative (direct install):

Linux / macOS:

curl -fsSL https://hexmos.com/lrc-install.sh | bash

Windows (PowerShell):

iwr -useb https://hexmos.com/lrc-install.ps1 | iex
GitHub Codespaces
curl -fsSL https://git.new/lrc-install | bash

Binary installed. Hooks set up globally. Done.

Setup

git lrc setup

Here's a quick video of how setup works:

https://github.com/user-attachments/assets/392a4605-6e45-42ad-b2d9-6435312444b5

Two steps, both open in your browser:

  1. LiveReview API key โ€” sign in with Hexmos
  2. Free Gemini API key โ€” grab one from Google AI Studio

~1 minute. One-time setup, machine-wide. After this, every git repo on your machine triggers review on commit. No per-repo config needed.

How It Works

Option A: Review on commit (automatic)

git add .
git commit -m "add payment validation"
# review launches automatically before the commit goes through

Option B: Review before commit (manual)

git add .
git lrc review          # run AI review first
# or: git lrc review --vouch   # vouch personally, skip AI
# or: git lrc review --skip    # skip review entirely
git commit -m "add payment validation"

Either way, a web UI opens in your browser.

https://github.com/user-attachments/assets/ae063e39-379f-4815-9954-f0e2ab5b9cde

The Review UI

  • ๐Ÿ“„ GitHub-style diff โ€” color-coded additions/deletions
  • ๐Ÿ’ฌ Inline AI comments โ€” at the exact lines that matter, with severity badges
  • ๐Ÿ“ Review summary โ€” high-level overview of what the AI found
  • ๐Ÿ“ Staged file list โ€” see all staged files at a glance, jump between them
  • ๐Ÿ“Š Diff summary โ€” lines added/removed per file for a quick sense of change scope
  • ๐Ÿ“‹ Copy issues โ€” one click to copy all AI-flagged issues, ready to paste back into your AI agent
  • ๐Ÿ”„ Cycle through issues โ€” navigate between comments one by one without scrolling
  • ๐Ÿ“œ Event log โ€” track review events, iterations, and status changes in one place

https://github.com/user-attachments/assets/b579d7c6-bdf6-458b-b446-006ca41fe47d

The Decision

ActionWhat happens
โœ… CommitAccept and commit the reviewed changes
๐Ÿš€ Commit & PushCommit and push to remote in one step
โญ๏ธ SkipAbort the commit โ€” go fix issues first
๐Ÿ“Ž Screenshot: Pre-commit bar showing Commit / Commit & Push / Skip buttons

The Review Cycle

Typical workflow with AI-generated code:

  1. Generate code with your AI agent
  2. git add . โ†’ git lrc review โ€” AI flags issues
  3. Copy issues, feed them back to your agent to fix
  4. git add . โ†’ git lrc review โ€” AI reviews again
  5. Repeat until satisfied
  6. git lrc review --vouch โ†’ git commit โ€” you vouch and commit

Each git lrc review is an iteration. The tool tracks how many iterations you did and what percentage of the diff was AI-reviewed (coverage).

Vouch

Once you've iterated enough and you're satisfied with the code:

git lrc review --vouch

This says: "I've reviewed this โ€” through AI iterations or personally โ€” and I take responsibility." No AI review runs, but coverage stats from prior iterations are recorded.

Skip

Just want to commit without review or responsibility attestation?

git lrc review --skip

No AI review. No personal attestation. The git log will record skipped.

Git Log Tracking

Every commit gets a review status line appended to its git log message:

LiveReview Pre-Commit Check: ran (iter:3, coverage:85%)
LiveReview Pre-Commit Check: vouched (iter:2, coverage:50%)
LiveReview Pre-Commit Check: skipped
  • iter โ€” number of review cycles before committing. iter:3 = three rounds of review โ†’ fix โ†’ review.
  • coverage โ€” percentage of the final diff already AI-reviewed in prior iterations. coverage:85% = only 15% of the code is unreviewed.

Your team sees exactly which commits were reviewed, vouched, or skipped โ€” right in git log.

Bring Your Own AI Connector (BYOK)

In addition to the default Gemini setup, you can bring your own API keys for:

  • OpenAI
  • Claude
  • DeepSeek
  • OpenRouter

Use:

lrc ui

From the UI, you can:

  • Re-authenticate your account
  • Add or update AI connectors
  • Reorder connectors to set priority

By default, the first connector in the list is used for reviews.

LRC UI connector management preview

Security You Can Trust

  • Security is treated as a core product requirement in git-lrc.
  • We document reporting channels, response commitments, and operational safeguards clearly.
  • Automated security checks and SBOM workflows support transparent verification.
  • For complete details, see SECURITY.md.

FAQ

Review vs Vouch vs Skip?

ReviewVouchSkip
AI reviews the diff?โœ… YesโŒ NoโŒ No
Takes responsibility?โœ… Yesโœ… Yes, explicitlyโš ๏ธ No
Tracks iterations?โœ… Yesโœ… Records prior coverageโŒ No
Git log messageran (iter:N, coverage:X%)vouched (iter:N, coverage:X%)skipped
When to useEach review cycleDone iterating, ready to commitNot reviewing this commit

Review is the default. AI analyzes your staged diff and gives inline feedback. Each review is one iteration in the changeโ€“review cycle.

Vouch means you're explicitly taking responsibility for this commit. Typically used after multiple review iterations โ€” you've gone back and forth, fixed issues, and are now satisfied. The AI doesn't run again, but your prior iteration and coverage stats are recorded.

Skip means you're not reviewing this particular commit. Maybe it's trivial, maybe it's not critical โ€” the reason is yours. The git log simply records skipped.

How is this free?

git-lrc uses Google's Gemini API by default for AI reviews, and also supports BYOK connectors (OpenAI, Claude, DeepSeek, OpenRouter) โ€” see Bring Your Own AI Connector (BYOK). Gemini offers a generous free tier. You bring your own API key(s) โ€” there's no middleman billing. The LiveReview cloud service that coordinates reviews is free for individual developers.

Which AI providers can I use with BYOK?

You can connect Gemini (default), OpenAI, Claude, DeepSeek, and OpenRouter.

Manage connectors from:

lrc ui

How do I choose which connector is used for review?

Open:

lrc ui

Then reorder your connector list. The first connector is used by default when a review runs.

Can I re-authenticate or change connectors later?

Yes. Run lrc ui anytime to re-authenticate, add/remove connectors, and update connector priority.

What data is sent?

Only the staged diff is analyzed. No full repository context is uploaded, and diffs are not stored after review.

Can I disable it for a specific repo?

git lrc hooks disable   # disable for current repo
git lrc hooks enable    # re-enable later

Can I review an older commit?

git lrc review --commit HEAD       # review the last commit
git lrc review --commit HEAD~3..HEAD  # review a range

Quick Reference

CommandDescription
lrc setupGuided onboarding and initial auth/config
lrc uiOpen local UI to re-auth, manage BYOK connectors, priority
lrc or lrc reviewRun a review with sensible defaults
lrc review --stagedReview staged changes only
lrc review --commit HEADReview a specific commit
lrc review --commit HEAD~3..HEADReview a commit range
lrc review --range HEAD~1..HEADReview a git diff range (working/staged override)
lrc review --vouchVouch โ€” skip AI, take personal responsibility
lrc review --skipSkip review for this commit
lrc hooks installInstall global hook dispatcher
lrc hooks uninstallRemove global hook dispatcher and managed scripts
lrc hooks enableEnable hooks for current repo
lrc hooks disableDisable hooks for current repo
lrc hooks statusShow hook status for current repo
lrc self-updateUpdate to latest version
lrc versionShow version info

Tip: git lrc <command> and lrc <command> are interchangeable.

It's Free. Share it with your friends and colleagues.

git-lrc is completely free. No credit card. No trial. No catch.

If it helps you โ€” share it with your developer friends. The more people review AI-generated code, the fewer bugs make it to production.

โญ Star this repo to help others discover it.

Community

Pick the right place based on what you need:

License

git-lrc is distributed under a modified variant of Sustainable Use License (SUL).

Note

What this means:

  • โœ… Source Available โ€” Full source code is available for self-hosting
  • โœ… Business Use Allowed โ€” Use LiveReview for your internal business operations
  • โœ… Modifications Allowed โ€” Customize for your own use
  • โŒ No Resale โ€” Cannot be resold or offered as a competing service
  • โŒ No Redistribution โ€” Cannot redistribute modified versions commercially

This license ensures LiveReview remains sustainable while giving you full access to self-host and customize for your needs.

For detailed terms, examples of permitted and prohibited uses, and definitions, see the full LICENSE.md.


For Teams: LiveReview

Using git-lrc solo? Great. Building with a team? Check out LiveReview โ€” the full suite for team-wide AI code review, with dashboards, org-level policies, and review analytics. Everything git-lrc does, plus team coordination.