Code review agents that checkbefore they comment
Open-source AI code review for GitHub, GitLab, and local changes. Read-only agents quote the code; a second pass checks their findings.
npx @open-cr-agent/cli reviewSelf-host guide

Ocra Cloud, on the recorded example run #812. Repository names are sample data
- Open source, Apache-2.0Engine, CLI and GitHub Action, no account needed
- GitHub and GitLabCloud or self-managed, GitHub Enterprise Server too
- 45 model providersOr your own OpenAI- or Anthropic-compatible endpoint
- Safe on forksNothing from the reviewed tree ever runs
Quiet by design
A reviewer that nitpicks everything trains teams to ignore it. Ocra anchors findings to quoted code, drops what verification disproves, and marks what it could not confirm. No inline findings? One summary, updated in place.
StyleSpeculationGuessing line numbers
Out of scope for every reviewer
4 candidates1 reported
A model answers,
code checks the answer
Tested code selects files, assigns reviewers, anchors findings, and computes the verdict. Models review, verify, and judge findings. On larger changes a light model can also group related files.
- 01 · select
Only the files
worth readingBinaries, lock files, generated output, and suspected secrets are filtered out before spending a cent on models—each with a logged reason.
- 02 · bundle
Match reviewers
to related filesAfter grouping, the planner assigns reviewers. Docs and AGENTS.md reviewers can read across the change; security and performance can review neighboring bundles together.
- 03 · review
Findings quote
the code they meanEach task runs an isolated, read-only agent with no shell on the exact revision. Review attempts have a cap of 30 steps on OpenCode and direct, or tool calls on Codex. Code resolves quoted findings to lines.
- 04 · verify
A second read
against the codeThe verifier drops what the code disproves, without treating doubt as confirmation. A judge merges duplicate root causes and calibrates severity before code computes the verdict.
From finding to merge,
on one page
One cross-repo inbox for pull requests waiting on you, with Ocra's verdict beside each. Open a PR to read the review inline, check suggested fixes, and see what's left before merging.


A walkthrough first
The files in reading order and a sequence diagram, before you open the diff
Fixes you can commit
Inspect the proposed fix inline before committing it as yourself, while the branch is unchanged
Ready to merge
One live checklist: conflicts, approvals, code owners, required checks, open threads
Merge when ready
Arm the platform's auto-merge or merge queue, or merge a whole stack bottom up
Every review on record,
and it learns from you
Signed-in CLI and CI reviews share verdicts and counts by default. See individual findings when you enable findings sharing or when Ocra Cloud runs the review for you.
Learnings from your decisions
What your team fixes and dismisses is proposed as a learning, reviewed like code in a pull request, and read by the next review.
Ask Ocra about a review
A review's page answers questions about it and its pull request, like why a finding is critical, with your own model key.
Mention @ocra in a thread
On an enrolled repository, a comment that mentions @ocra gets its answer in the same thread.
Alerts in Slack or WeCom, and a digest
Hear about every review, reviews with findings or only critical ones, plus a daily digest and a weekly report.


Ocra runs on the model you already pay for, across 45 providers
Bring a key from OpenAI, Anthropic, Gemini, DeepSeek, Qwen and the rest, or point Ocra at your company's own endpoint. Keys are encrypted and never shown again.
Your model,
your limits
Every call shows its exact bill
Tokens and dollars itemized per task, helper calls included. Set
maxCostUsdand a run stops cleanly near your cap—preserving confirmed findings and reporting what remains unreviewed.Your team's rules, right in the repo
Keep review rules in
.ocra/rules.jsonand learnings in.ocra/learnings/. Pull request reviews read them from the base commit.When one model stalls, the next takes over
Configure ordered model chains per tier; an out-of-quota model is tripped off for the rest of the run.
Reviewed against what the change was meant to do
Reviewers read linked issues for intent. Pre-merge checks report pass, fail, or inconclusive, with a reason.
| Task | Input tokens | Cost |
|---|---|---|
| correctness-1 auth code | 121,766 | $0.2045 |
| security-1 auth code | 98,410 | $0.1627 |
| performance-1 auth code | 61,208 | $0.0981 |
| correctness-2 docs | 18,342 | $0.0214 |
| grouping, verification ×2, judge | 16,210 | $0.0267 |
Built for code
you do not trust
A diff, a PR description, an AGENTS.md: any byte in an incoming change could be crafted by an attacker. Ocra designs for hostile pull requests by default and publishes its threat model alongside the code.
Read the threat modelagent read_file(".env")gate Access to .env is not allowed
agent read_file("deploy/key.pem")gate Access to deploy/key.pem is not allowed
agent read_file(".git/config")gate Access to .git/config is not allowed
Untrusted text stays data
Everything from the change is neutralized before it enters a prompt
Forks reviewed safely
No plugin, install script, repository tool or build from the pull request runs
Secrets never leave
Secret-like files are refused, and keys never reach logs, prompts or reports
Your code stays yours
Through Ocra Cloud, prompts and answers pass through and are never logged
Open core.
Hosted when you want it.
The engine stays Apache-2.0 and complete without an account. Ocra Cloud is free while it is in early access; you bring the model key.
- available now
Self-hosted
FreeApache-2.0
- CLI, GitHub Action, GitLab, container image
- Your runner and model key, or your local Codex sign-in
- Only your model provider sees the code
- Your own rules, reviewers and plugins
- early access
Ocra Cloud
Freebring your own key
- Sign in with GitHub;
ocra loginfrom any machine - Auto review on GitHub through the Ocra Cloud app: no workflow, no secrets
- Your pull requests in one inbox: walkthrough, fixes to commit, merge or merge queue
- Learnings, code graphs, pre-merge checks, and Slack or WeCom alerts with a daily digest
- Keys for 45 providers, encrypted; usage, spend and cycle time
- Sign in with GitHub;
- planned
Team
Laterpricing not set
- Organizations with shared rules and policy
- Models provided by Ocra, no key needed
With Ocra Cloud your change passes through its gateway on the way to your model provider, and the console keeps counts by default; findings and the code they quote only if you turn on findings sharing, or for the reviews it runs for you. If nothing but your provider may see the code, self-host: it is the same engine.
Questions,
answered plainly.
More answers in the manualIs Ocra free?
The engine, CLI and GitHub Action are Apache-2.0 and need no Ocra account. Each run reports its cost: pay your model provider for tokens, or review locally on your ChatGPT plan through Codex. Ocra Cloud is free during early access; you bring a model key.
Who sees my code?
Self-hosted, only your model provider: the change with its title and description, your AGENTS.md and review rules, and what the agents open or search in the repository. Never files that look like secrets, or anything outside the repository. With Ocra Cloud the request also passes through its gateway, and a review it runs for you clones the repository you enrolled.
Which models does it work with?
Use OpenCode's supported models, your own OpenAI- or Anthropic-compatible endpoint, or one of 45 providers through Ocra Cloud. For local reviews, you can also use your signed-in Codex CLI without an API key. Each tier can list several models for failover.
Does it work with GitLab?
Yes: merge requests on GitLab.com or self-managed, with the same inline comments, summary and incremental re-reviews as on GitHub.
Will it bury my pull requests in comments?
Ocra merges duplicates, marks whether findings were verified, and can limit inline comments. Pre-existing findings can be reported but do not count toward the verdict. A confirmed critical finding can trigger blocking only if you opt in; the GitHub review check itself never fails.
Can I ask it about the change?
Yes. With the GitHub comment workflow enabled, mention @ocra for a reply in the same thread, or run @ocra review to review the whole pull request again (/ocra review still works). The summary can include a walkthrough with the files in reading order and a sequence diagram.
What else can it do on a pull request?
ocra generate writes tests or doc comments for the changed code as one commit on the branch. ocra stack keeps a stack of dependent pull requests rebased, submitted and merged in order. ocra mcp lets your coding agent ask for a review before you commit.
How good is it?
Results on a golden set and AACR-Bench are published in the manual with their limits: a small sample on two model families, with recall the weak point we are working on.
Point it at a pull request
you already know
npm install -g @open-cr-agent/cli