🤖 Gerrit Agent
AI-Powered Code Review Assistant for Gerrit
Transform your Gerrit code reviews with AI-powered analysis using Claude Code, Gemini CLI, and other advanced Code Agents.
📖 Overview
Gerrit Agent transforms Gerrit code reviews with AI-powered analysis. Get automated, intelligent code reviews through Claude Code Plugin, standalone CLI, or Gemini integration - with multi-agent analysis, confidence scoring, and inline comment posting.
Key Features:
- 🤖 Multi-Agent Reviews - 3 specialized analyzers (CLAUDE.md compliance, git patterns, documentation)
- 🎯 Smart Filtering - Confidence scoring shows only high-quality findings (≥80%)
- 💬 Direct Integration - Posts inline comments to Gerrit with your approval
- ⚡ Modern CLI - GitHub CLI-like interface for all Gerrit operations
- 🔌 Multiple Modes - Claude Code Plugin, standalone CLI, or Gemini extension
🎯 Usage Modes
💻 Standalone CLI
GitHub CLI-like interface for Gerrit operations (list, view, checkout, review). This is the foundation of the project - all other modes are built on top of this CLI.
Installation:
# Install from PyPI
pip install gerrit-agent
# Or install from source
git clone https://github.com/madroidmaq/gerrit-agent.git
cd gerrit-agent
pip install -e .
Configuration:
Set up your Gerrit credentials (required for all usage modes):
# Method 1: Environment variables (recommended)
export GERRIT_URL=https://gerrit.example.com
export GERRIT_USERNAME=your_username
export GERRIT_TOKEN=your_http_token # Recommended: HTTP password from Gerrit settings
# Method 2: Or use password instead of token
export GERRIT_PASSWORD=your_password # Less secure, use token when possible
💡 Getting your token: Go to Gerrit → Settings → HTTP Credentials → Generate Password
📝 For persistent config: Copy .env.example to
.envand edit with your credentials
Common Commands:
# List changes
gerrit list --owner me --status open
gerrit list --reviewer me --limit 20
# View change details
gerrit show 12345 # View change info
gerrit show 12345 --diff # View with full diff
# Checkout change locally
gerrit checkout 12345 # Creates local branch for review
# Post reviews
gerrit review 12345 --code-review +2 -m "LGTM!"
gerrit review 12345 --code-review -1 -m "Needs fixes"
🤖 Claude Code Plugin
AI-powered code reviews with multi-agent analysis and confidence scoring, built on top of the Standalone CLI. Recommended for the best experience.
Prerequisites:
- Install the
gerrit-agentCLI tool (see Standalone CLI above) - Configure Gerrit credentials using environment variables (see CLI configuration above)
Installation:
# Option 1: Using commands (recommended)
/plugin marketplace add madroidmaq/gerrit-agent
/plugin install gerrit@gerrit-agent
# Option 2: Using UI
# Run: /plugin marketplace add madroidmaq/gerrit-agent
# Then select: Browse and install plugins → gerrit-agent → gerrit → Install now
Usage:
| Method | Command | Description |
|---|---|---|
| Command | /gerrit:review 12345 |
Direct review command (recommended) |
| Natural language | "Review Gerrit change 12345" |
Triggers gerrit-reviewer skill |
What happens during review:
- 🤖 Three specialized agents analyze your code (compliance, git patterns, documentation)
- 🎯 Smart filtering shows only high-confidence findings (≥80%)
- 💬 Posts inline comments to Gerrit (with your approval)
🧠 Gemini CLI Extension
Natural language code reviews with "Principal Software Engineer" persona, powered by Google's Gemini.
Prerequisites:
Ensure you've configured Gerrit credentials as described in Standalone CLI Configuration above.
Installation:
# Link the extension to Gemini CLI
gemini extensions link https://github.com/madroidmaq/gerrit-agent/gemini-cli-extensions
Usage:
# Use natural language to review changes
gemini "Review change 12345"
gemini "Check the latest changes in project XYZ"
📚 Documentation
🤝 Contributing
Contributions welcome! See Issues for planned features.
git clone https://github.com/madroidmaq/gerrit-agent.git && cd gerrit-agent
uv sync --extra dev && uv run pytest
📄 License
MIT License - see LICENSE file.
Metadata
Release files for gerrit-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gerrit_agent-0.1.0.tar.gz | 91.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gerrit_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 121.7 kB
Release files / gerrit_agent-0.1.0.tar.gz
| Download URL | gerrit_agent-0.1.0.tar.gz |
|---|---|
| Size | 91.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f003c7763152f01c2dbdd6d856a70ad5b3c957fd9c0ca109bc6bd8f1229e15b8
|
|
BLAKE2b-256 checksum How to use checksums |
fecf48049418d187d5d6dd65afb606654793ff5946a7216638821aaf023f2d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Release files / gerrit_agent-0.1.0-py3-none-any.whl
| Download URL | gerrit_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be87f6903bb4cfa0a282d4fd4da804a2ea2b109a874c5517b982bf6ad5fb3d0c
|
|
BLAKE2b-256 checksum How to use checksums |
5b75312b0f54a4e99a8b5fcdf1d0d6338ed4f9b1c2d6b3074506cf31cbbaca7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Security for gerrit-agent 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.