Self-hosted AI code review that runs in your own CI, with your own coding agent and your own keys.
English | Tiếng Việt
Docs · Quick start · Configuration · How it works · Evaluation · Comparison · Contributing
A real run on a test pull request: inline findings on the exact lines, with a suggested change you can commit.
What it does
reviewloop is a job in your own CI. It runs a coding agent (Claude Code) with your own key and posts the review on the pull request. No server, no account, no telemetry. Live example: reviewloop-demo #3.
Status: pre-release. The PyPI package, the image, the
v0action tag and the GitLab component appear with the first release (0.1.0).
Features
- Inline findings on the exact line, placed by the quoted code, with one-click suggested changes.
- Re-check on command:
/reviewloop recheckreplies in each open thread and resolves the fixed ones. - Security branch: gitleaks and opengrep, then a security agent and an independent verify pass.
- Quality gate drops findings the diff disproves, never critical or protected-category ones.
- No silent skips: every file ends reviewed, excluded or failed; JSON + SARIF; exit code can fail the job.
- Sandboxed agent: read-only git, no VCS token, one JSON output that reviewloop validates before posting.
How it works
Config and rules are read from the target branch, so a pull request cannot change how it is reviewed. Step by step: How a review runs.
Quick start
GitHub Actions. Add the secret ANTHROPIC_API_KEY, then save
examples/github-workflow.yml as .github/workflows/reviewloop.yml:
Workflow
name: reviewloop
on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:
types: [created]
permissions:
contents: write
pull-requests: write
jobs:
review:
if: >-
github.event_name == 'pull_request' ||
(github.event.issue.pull_request && startsWith(github.event.comment.body, '/reviewloop') &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
concurrency:
group: reviewloop-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.base.ref || github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false
- name: Fetch the pull request head
env:
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
GH_TOKEN: ${{ github.token }}
run: |
auth=$(printf 'x-access-token:%s' "$GH_TOKEN" | base64 -w0)
echo "::add-mask::$auth"
git -c "http.https://github.com/.extraheader=Authorization: Basic $auth" \
fetch --no-tags origin "+refs/pull/${PR_NUMBER}/head:refs/remotes/pull/${PR_NUMBER}/head"
- uses: tpham1467/reviewloop@v0
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Open a pull request. After pushing fixes, comment /reviewloop recheck.
Platforms
| Git provider | CI | Status | Notes |
|---|---|---|---|
| GitHub | GitHub Actions | Supported | Commands from a comment, one-click suggestions |
| GitLab (.com and self-managed) | GitLab CI | Supported | Commands through a Comments webhook |
| Bitbucket Cloud | Bitbucket Pipelines | Preview | No one-click suggestions; commands from a custom pipeline |
| Bitbucket Data Center | Jenkins | Preview | No one-click suggestions; Bitbucket DC 8.0+ to resolve threads |
| Azure DevOps Repos | Azure Pipelines | Not supported yet | |
| Gitea / Forgejo | Gitea Actions / Forgejo Actions | Not supported yet | |
| Gerrit | Zuul, Jenkins | Not supported yet |
Setup: GitHub · GitLab · Bitbucket Cloud · Bitbucket Data Center + Jenkins. Want another provider? Open an issue.
Evaluation
21 seeded pull requests across C#, Go, Java, PHP / Laravel, Python / Django, TypeScript / NestJS and React, each
with one known bug. A deterministic scorer matches a finding by file, a 3-line window and category, with no LLM judge.
Run 2026-11-28 on main with Claude Code, both models at once on one machine; method and cases.
| Model | Precision | Recall | TP / FP / FN | Wall time |
|---|---|---|---|---|
| Claude Opus 5.5 | 0.68 | 0.90 | 19 / 9 / 2 | 25.3 min |
| Claude Sonnet 5.5 | 0.62 | 0.86 | 18 / 11 / 3 | 10.7 min |
Floors for a release: recall 0.6, precision 0.5. A false positive here is any finding beyond the seeded bug, so some are real but unplanned issues.
Comparison with other tools
Why reviewloop:
- Runs entirely in your CI, with your agent and your keys; no vendor holds a token for your repositories.
- Every finding sits on the exact lines it quotes, with one-click suggestions on GitHub and GitLab.
/reviewloop recheckreplies in every thread and resolves the fixed ones.- gitleaks plus two security agents, the second verifying the first's findings.
- A CI signal: per-file coverage, exit codes and SARIF.
| reviewloop (AGPL-3.0) | OpenPR (MIT) | PR-Agent (MIT) | CodeRabbit | GitHub Copilot code review | |
|---|---|---|---|---|---|
| Runs in | Your CI | Your agent CLI, on your machine | Your CI, CLI or server | SaaS; self-hosted on Enterprise | GitHub |
| Vendor holds a repo token | No | No | No | Yes (SaaS) | — |
| Your own model or key | Yes (Claude Code) | Yes (your agent CLI) | Yes, via LiteLLM | Self-hosted only | No |
| Platforms | GitHub, GitLab; Bitbucket preview | GitHub, GitLab, Bitbucket Cloud | GitHub, GitLab, Bitbucket, Azure DevOps, Gitea, Gerrit | GitHub, GitLab, Bitbucket, Azure DevOps | GitHub, Azure DevOps |
| Re-check resolves fixed threads | Yes, on command | On re-review, if enabled | Tracks resolved findings | After a push | unclear |
| Exit code and SARIF | Yes | unclear | Labels; SARIF unclear | Status check; SARIF unclear | unclear |
Sources (as of 2026-11), more tools, what reviewloop does not do yet and when to pick something else: Comparison. "unclear" means the vendor's docs do not say.
Documentation
How a review runs · Configuration · Security model · Agents · FAQ · Comparison · Roadmap · Contributing · Security policy
License
reviewloop is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only).
reviewloop is an independent project, not affiliated with or endorsed by Anthropic. Claude Code is used under Anthropic's terms; each user brings their own credentials. Other product names belong to their owners.
Star history
Metadata
Release files for reviewloop-ai 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 | Actions |
|---|---|---|---|---|
| reviewloop_ai-0.1.0.tar.gz | 4.0 MB | With provenance | Details for reviewloop_ai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reviewloop_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for reviewloop_ai-0.1.0-py3-none-any.whl |
Total release size: 4.1 MB
Release files / reviewloop_ai-0.1.0.tar.gz
| Download URL | reviewloop_ai-0.1.0.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13b21017ce892142858e814f8f9057c62634311404a7beef33403d3d7faad54c
|
|
BLAKE2b-256 checksum How to use checksums |
4193bb0b10631c11e0e634c33a90a64b4511e198e320f5f6ef7a3dda100852fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / reviewloop_ai-0.1.0-py3-none-any.whl
| Download URL | reviewloop_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 163.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6edd772761727792cd0fa477a43a541625c203360f9840cebce92286c4bcf3e6
|
|
BLAKE2b-256 checksum How to use checksums |
cb987d3059c98e1e46dc4eed8fd62b4b72b96fdbf5acc553c77f2588730f210c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for reviewloop-ai 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for reviewloop_ai-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA 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.