HexmosTech/git-lrc
Free, Micro AI Code Reviews That Run on Git Commit
What it solves
git-lrc prevents software outages, security breaches, and technical debt by catching AI-generated code errors before they are committed to git history. It addresses the problem of AI agents "silently breaking things"—such as removing logic, leaking credentials, or introducing expensive cloud calls—by enforcing an AI-powered review process at the moment of commit.
How it works
The tool hooks into the git commit workflow, automatically launching a web-based review UI when a user attempts to commit changes. This UI provides a GitHub-style diff with inline AI comments and severity badges. Users can either fix the flagged issues by feeding them back into their AI agent, vouch for the changes personally, or skip the review.
Key components include:
- Issue Navigator: A filterable view to triage findings across 10 risk categories and 100+ patterns.
- Risk-Scored View: Ranks code changes by "blast radius" (potential ripple effect) and "review priority" using a local knowledge graph to highlight the most critical changes first.
- Summary Deck: Generates a plain-English summary of changes and risks for institutional memory.
- Git Log Tracking: Appends review status (iterations and coverage) directly to the git commit message.
Who it’s for
Software engineers and engineering leaders (CTOs, VPs of Engineering, Tech Leads) who use AI agents to write code and want a standardized, editor-independent way to ensure code quality and security across a team.
Highlights
- Commit-time enforcement: Plugs into the universal git workflow rather than relying on specific IDE extensions.
- Risk-based ranking: Uses architectural analysis to prioritize the most dangerous changes in a diff.
- BYOK (Bring Your Own Key): Supports multiple AI providers including Gemini, OpenAI, Claude, DeepSeek, and OpenRouter.
- Integration with Claude Code: Includes
claude-lrcfor review and vouching via slash commands inside Claude Code. - Custom Repository Rules: Allows teams to define project-specific patterns and constraints in a
.lrc/directory.
Related
- Project
- Project
- Project
- Project