hunk vs codex-security
Two of the top projects in Code review and testing, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
hunk
Terminal diff viewer for reviewing code changes, with inline agent notes
codex-security
Vulnerability scanner, validator and patcher with a CLI, TypeScript SDK and Codex plugin
Verdict
hunk ranks higher, 86 to 85. Of the 4 score parts we measure for both, hunk leads on 1, codex-security on 2 and 1 is even.
- Adoptioncodex-security leads by 7 points, 85 to 78.
- FreshnessEven at 100.
- Maintenancecodex-security leads by 5 points, 89 to 84.
- Agent-readyhunk leads by 40 points, 70 to 30: a wide gap.
Pick hunk if you are
Developers who review diffs or agent-written changes in the terminal
- Opens Git, Jujutsu, Sapling, GitHub PRs, patches from stdin, or two plain files
- Agents can annotate a live session through the hunk-review skill
Pick codex-security if you are
Security and platform engineers scanning code for vulnerabilities
- Scans whole repos, selected paths, or diffs against a base revision
- Exports SARIF, JSON and CSV; integrates with Linear, Jira, GitHub and ServiceNow
| What we compare | hunk | codex-security |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 78, popular | 85, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 84, healthy | 89, healthy |
| Agent-ready | 70, partly | 30, minimal |
| Facts from GitHub and the README | ||
| Stars | 9.9k | 14.5k |
| License | MIT (permissive) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | TypeScript | TypeScript |
| Docker | No | Yes |
| GPU | Not needed | Not needed |
| arm64 or Apple Silicon | Mentioned | Not stated |
hunk
Hunk is an interactive terminal diff viewer built on OpenTUI. It opens a multi-file review stream with a sidebar for Git, Jujutsu and Sapling changes, GitHub PRs (`hunk gh`), raw patches or two files, in split, unified or auto layout. A review skill lets a coding agent attach notes to a live session. It also runs as a Git pager and has a browser view.
Who it is for: Developers who review diffs or agent-written changes in the terminal
Strengths
- Opens Git, Jujutsu, Sapling, GitHub PRs, patches from stdin, or two plain files
- Agents can annotate a live session through the hunk-review skill
- Works as a pager for git, jj and Sapling, with watch mode
- Standalone binary via install script, Homebrew or mise; npm needs Node.js 22+
Weaknesses
- No structural diffing; its comparison table marks this as unsupported
- No prebuilt binaries for Windows arm64 or musl Linux such as Alpine
- GitHub Enterprise is not supported by `hunk gh`
- Extension API is experimental and may break between minor releases
- no GPU
- Needs Git (recommended), Node.js 22+ (npm install only)
codex-security
Codex Security scans repositories, paths or Git diffs for vulnerabilities, validates candidate findings, generates patches and verifies existing fixes. It runs as a Codex plugin, as the `cs` CLI (`@openai/codex-security`), through a TypeScript SDK, or as a GitHub Action. Results can be exported as SARIF, JSON or CSV, or sent to Linear, Jira or GitHub.
Who it is for: Security and platform engineers scanning code for vulnerabilities
Strengths
- Scans whole repos, selected paths, or diffs against a base revision
- Exports SARIF, JSON and CSV; integrates with Linear, Jira, GitHub and ServiceNow
- Supports OpenAI, Amazon Bedrock, OpenRouter, Fireworks AI and Cheaper Inference
- Ships a GitHub Action, SDK and Docker Compose setup for bulk scans
Weaknesses
- Requires Node.js 22.13+/24/26 and Python 3.10+ installed
- Needs an OpenAI login or API key, or other provider credentials
- Some cyber requests and protected findings need Trusted Access for Cyber
- Local serve command and browser dashboard have been removed
- no GPU
- Docker + Compose
- Needs Node.js 22.13+, Python 3.10+, OpenAI API key or other provider credentials
- Models: OpenAI, Amazon Bedrock, OpenRouter, Fireworks AI, Cheaper Inference
More in Code review and testing
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)