OpenQodex
Open-source AI code review that checks every change your coding agent writes before you push.
- Source repo
- openqodex/openqodex
- Stars
- ★ 1.2k
- Last updated
- 3d ago
- FARS reviewed
- Nov 20, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 67/100 · Some gaps
At a glance
- How it runs
- Works with
- Portable with changesCodex · Claude CodeClaude API (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer writing code in Claude Code or Codex who wants a second, independent process to re-check the agent's diff before
git push. - Not a fit if
- Teams on Cursor, Cline or Goose with no Claude Code or Codex installed as reviewer
- Windows or WSL users — the project states no test runs there
- Website
- openqodex.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-20
- Source review
- 67/100 · Some gaps
What does this agent do, and when should you use it?
OpenQodex is an Apache-2.0 command-line tool that reviews the change a coding agent just produced — unpushed commits plus everything uncommitted — before it reaches the remote. Each run first executes built-in scanners chosen for the changed files (secrets, SAST, lockfile advisories via osv.dev, lint, GitHub Actions, Dockerfile/Terraform/Kubernetes/CloudFormation, SQL migrations) and keeps only findings on changed lines. It then starts separate Claude Code or Codex reviewer processes on your own login: finder sessions propose candidates with a quoted line, a script checks every quote against the code, and verifier sessions must confirm or refute each candidate and each scanner finding with a reason. Results land as report.html, report.md, report.json and report.sarif plus a terminal receipt the skill tells your agent to show you. init wires the tool into Claude Code, Codex CLI, Cursor, Cline and Goose, installs a push gate where the host supports one, and exposes a code-graph server over MCP. Everything runs locally on macOS or Linux; the only model traffic is your change going to the model service behind your existing Claude Code or Codex login.
review treats unpushed commits plus uncommitted work as one change: it selects built-in scanners by the files touched (gitleaks, semgrep, osv-scanner, kubeconform, cargo-deny, brakeman, rubocop, golangci-lint and others), drops findings in test fixtures and disabled rules, and checks every supported lockfile against osv.dev on every review and scan. Advisories outside the changed lines are shown but never counted and never enter the reviewer brief. It then starts reviewers — by default a fresh process of the agent you work in, with no memory of your session — where finder sessions read each part of the change with the code that calls it and propose candidates with a quoted line, a script validates each quote, and verifier sessions confirm or refute every candidate and scanner finding with a reason; further scripts check that every scanner finding was answered and every changed line was handed to a reviewer. Output is report.html, report.md, report.json, report.sarif and a printed receipt (verdict, one line per finding, report path), and the skill prompts the agent to ask "Fix all, or tell me which?". init writes per-host skills, rules and hooks: an in-agent push gate asks whether your current work has a passing review, and the git pre-push hook it adds judges the exact commits a push sends; both warn by default and block only when .openqodex/config.yaml sets review.block_on_severity. graph answers questions such as who calls a function through a local MCP server, trust quarantines and asks approval for custom GitHub scanners, and --offline skips the network-dependent scanners.
- A developer writing code in Claude Code or Codex who wants a second, independent process to re-check the agent's diff before
git push. - A team that wants the gate to actually block: set
review.block_on_severity: majorin.openqodex/config.yamlso findings at or above that level stop the push. - A solo developer who does not want another API key — reviews run locally on an already-logged-in Claude Code or Codex account.
- A security-minded reviewer who needs secret scanning and dependency advisories scoped to changed lines instead of drowning in legacy backlog and test fixtures.
- CI adoption: the GitHub Action runs the full review when the workflow supplies an Anthropic API key and scanners only without one; the pre-commit hook likewise runs scanners only.
- An agent that needs call-graph context before editing, using the graph questions exposed over MCP by
init. - A team bringing in a third-party scanner from GitHub, such as Bearer, through config plus an explicit
trustapproval.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx openqodex initnpx -y [email protected] init --yes --agent claude-codenpx skills add openqodex/openqodex -gnpx openqodex trust
- Config files
~/.openqodex/bin/openqodex.openqodex/config.yaml- Runtime
- Node.js 22
- Install notes cover
- macOS · Linux
How do you install or deploy this agent?
Requirements: Node 22 or newer, git, and macOS or Linux; a full review also needs Claude Code or Codex installed and logged in. Some scanners need runtimes OpenQodex does not install: Ruby for brakeman and rubocop, Go for golangci-lint, Cargo for cargo-deny.
Run the installer in a terminal. It detects Claude Code, Cursor, Codex CLI, Cline and Goose, lists the files it will write, asks once, starts the scanner downloads your repository needs, then reviews the current change if a reviewer can start:
npx openqodex initFor an agent-driven install with no prompt, name the host:
npx -y [email protected] init --yes --agent claude-codeThe host is one of claude-code, codex, cursor, cline or goose. Codex's default sandbox gives commands no network, so run that line from your own terminal. To install only the skill, with no push gate and no scanner downloads:
npx skills add openqodex/openqodex -gAn npx install puts no openqodex on your PATH; use the launcher init writes.
How do you use this agent?
From your own terminal, run the launcher. Inside an agent, just say "review my change with openqodex".
~/.openqodex/bin/openqodex reviewOther scopes:
openqodex review --all
openqodex review main
openqodex review '#42'Gates warn by default; to make them block, set a severity floor (critical, major, minor, nitpick, info):
# .openqodex/config.yaml
review:
block_on_severity: majorTo add a GitHub-hosted scanner, register it, approve it on this machine, then try it alone:
scanners:
custom:
- source: https://github.com/Bearer/bearer
run: bearer scan {target} --format sarif --output {report} --quiet --disable-version-check
target: reponpx openqodex trust
npx openqodex scan --only custom:bearer
npx openqodex demo--offline skips semgrep, osv-scanner, kubeconform and cargo-deny and stops scanner downloads; npx openqodex guide <topic> prints the bundled docs page for a topic.
What are this agent's strengths and limitations?
- No account or key of its own: reviews run on separate Claude Code or Codex processes started from your own logged-in account.
- The pipeline is auditable rather than trusting: scripts check every quoted evidence line against the code, require a reason for every verdict, and verify that each scanner finding was answered and every changed line reached a reviewer.
- 22 pinned built-in scanners span secrets, SAST, dependency advisories, lint, GitHub Actions, IaC and database migrations, each download fixed to one version.
- Four report formats (HTML, Markdown, JSON, SARIF) plus a consistent terminal receipt the agent is instructed to surface.
- Failure is reported honestly: a stage that did not run yields "Review incomplete", a named list of what is missing, and exit code 2.
- Custom scanners get a real approval boundary: quarantined download, a shown command, and per-machine consent stored in
~/.openqodex/trust.json.
- macOS and Linux only; the project states no tests run on Windows or WSL.
- Pre-1.0: commands, flags and the configuration file can change between minor releases.
- A full review depends on Claude Code or Codex; Cursor, Cline and Goose can start a review but cannot be the reviewer, and a second Codex cannot run inside the Codex sandbox.
- No offline vulnerability data: lockfiles are checked against osv.dev at every review and cargo-deny downloads RustSec, so
--offlineskips those checks rather than replacing them. - The in-agent push gate only understands plain
git pushforms and says it cannot tell for anything else;git push --no-verifybypasses the git pre-push hook. - Published benchmarks are modest on real PRs — 22.8% semantic precision and 5.2% semantic recall on AACR-Bench — so coverage of genuine review comments is limited.
How does this agent compare with similar options?
The repository names exactly one alternative: Qodex's own hosted pull-request review service, which moves review into the vendor cloud. No third-party competitors are mentioned. Against that hosted service, OpenQodex keeps the reviewer processes, scanners and reports on your machine and uses your existing Claude Code or Codex login, at the cost of installing Node and maintaining config and hooks yourself.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| OpenQodex This agent | 67 · Some gaps | CLIFree + model costs | ★ 1.2k | 3d ago | TypeScript | Codex · Claude Code |
| LintLang | 81 · Good | CLIFree | ★ 147 | 16d ago | Python | Claude Code |
| SEC-AF | 52 · Major gaps | CLIFree + model costs | ★ 200 | 10d ago | Go | Codex · Claude Code |
| Argot Repository Style Analyzer | 78 · Good | CLIFree | ★ 48 | 21d ago | Rust | Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The security doc gives concrete least-privilege evidence: programs launched with argument lists never through a shell, scanners receive a minimal env allowlist, built-in scanners are pinned and never taken from PATH, custom scanners require explicit `openqodex trust` approval with sha256 checks, symlinked files are withheld from scanners, and gitleaks secrets are stripped from briefs and reports. However `init` persistently modifies the user environment (global instruction files, git pre-push hook, Claude Code permission rules), and rollback is only described as `init --uninstall` with no recovery flow, so rollback and external_effects score 1. Dependency security has lockfiles, sha256 pinning and a zero-runtime-dependency CLI, but no evidence of ongoing dependency vulnerability auditing, so 2. Source attribution has NOTICE and scanner licence notes but no itemized third-party code attribution, so 2.
README and AGENTS.md agree on exit codes, 'Review incomplete', and naming every stage that did not run; security/privacy/faq pages corroborate each other on network behaviour, so self-consistency is solid. Dependency availability has real gaps: Node 22, git, and a Claude Code or Codex login are required, some scanners need Ruby/Go/Cargo that are not installed, a second Codex process cannot start inside the Codex sandbox, and Windows only works via WSL, so 2. Failure messages have concrete wording and exit codes but no complete taxonomy for scanner crashes or network failures, so 2.
The README table states per-host whether a review can start, whether the host can be the reviewer, and whether a push gate exists; the 'What it does not do yet' section is candid, so capability_boundaries scores 3. Trigger precision is decent (SKILL.md description and 'When to run' cover pre-push, explicit review requests, and hook blocks) but the push gate admits it cannot tell for non-standard push commands and `--no-verify` bypasses the hook, so 2. Audience and scenarios cover terminal and agent use, but no Windows, Docker or Homebrew support limits environment fit to 2.
Documentation structure is thorough: README, quickstart, config, security, privacy, faq, scanners and agents pages are clearly separated; install_notes cover npx, `init --yes`, and skill-only paths plus Codex sandbox caveats; examples_and_faq include a demo repo and a dedicated FAQ; known_limitations has its own section, all scoring 3. But the README states commands, flags and config can change between minor releases and SKILL.md hardcodes 0.22.0, so naming_stability is 1. License is Apache-2.0 with a NOTICE, though NOTICE contents are not shown in the packet, so 2. A changelog and changeset workflow exist but the project is pre-1.0 with weak semver promises, so 2. Maintenance responsibility rests on an unverified Qodex publisher with only a contact email and GitHub private reporting, no governance or SLA, so 1.
Output usability is good: report.html/md/json/sarif plus a terminal receipt, and the agent is told to show the receipt verbatim and fix only named findings, so 2 (no actual report sample content is shown, only a link). Marginal value is real (a separate reviewer process plus deterministic scanners plus quote verification covers blind spots of self-review), but the README's own AACR-Bench numbers show 22.8% semantic precision and 77.2% noise, and without a reviewer it degrades to agent self-review, so 2. Cost is high: about $0.42 per review in the Claude Code benchmark, roughly 1,018 MiB of scanner downloads on first use, and multi-minute reviews, so 1.
The benchmark table names dataset, model, scoring-rule version and cost and links full results, so claim_traceability is 2. Several claims cross-corroborate: security.md and privacy.md list network uses consistently, and AGENTS.md's CI description matches the ci.yml comments, so cross_source_corroboration is 2. The docs distinguish measured runs (e.g. the 2026-10-02 first-run measurement) from design intent, but some figures such as benchmark results cannot be rechecked inside the packet, so fact_inference_separation is 2.
- `init` persistently modifies the user environment (global instruction files, git pre-push hook, Claude Code permission rules); rollback is only described as `init --uninstall` with no failure recovery or partial rollback.
- The push gate reports it cannot tell for non-standard `git push` commands, and `git push --no-verify` bypasses the pre-push hook, so it is not a hard gate.
- Custom scanners are arbitrary commands run with user permissions; even after `trust` approval their network and file behaviour is outside OpenQodex's control.
- The README's own AACR-Bench numbers show 22.8% semantic precision and 77.2% noise, so reviews may produce substantial noise requiring human triage.
- First use downloads roughly 1,018 MiB of scanners; a review costs about $0.42 and takes minutes; some scanners need Ruby/Go/Cargo that are not installed automatically.
- The project is pre-1.0 and the README states commands, flags and config can change between minor releases; SKILL.md hardcodes 0.22.0, so upgrades may break integrations.
- Publisher Qodex is unverified by FollowAgents; maintenance responsibility and update path rest on a contact email and GitHub private vulnerability reporting only.
FAQ
Do I need to buy an API key?
Does my code leave my machine?
--offline skips them.What happens when a review cannot finish?
review prints "Review incomplete" with what is missing and exits 2. With no reviewer available it prints "Full review unavailable", saves unchecked scanner findings to unchecked-candidates.json, and names the review --agent fallback where your own coding agent reviews its change.Can it really stop a push?
.openqodex/config.yaml sets review.block_on_severity. The in-agent gate handles a plain git push (optionally after one leading cd <folder> &&, with trimmed output) and reports it cannot tell for other push commands; the hook judges the exact commits but is skipped by git push --no-verify.Are custom scanners trusted automatically?
~/.openqodex/trust.json on that machine holds your approval of that exact entry; npx openqodex trust downloads the release asset into quarantine, shows what will run and asks. A fresh GitHub-hosted runner holds no approval, so the GitHub Action skips custom scanners there.Is OpenQodex free?
Is OpenQodex open source?
Is OpenQodex safe to use?
Is OpenQodex still maintained?
Who makes OpenQodex?
What is OpenQodex's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.