OpenAI’s Codex Security CLI is easy to misread as “Codex, but for security.” The useful signal is narrower and more operational: security review is being packaged as a workbench around source code, scan history, validation, patching, and machine-readable export.
The npm and GitHub pages describe @openai/codex-security as both a TypeScript SDK and a CLI. It can scan a whole repository, selected paths, committed diffs, or the current working tree. It has preflight checks, progress events for long-running scans, scan history, reruns, matching between scans, comparison of resolved and persisting findings, CSV/JSON/SARIF export, and CI severity gates.
That means the important unit is not a one-off model answer. It is a repeatable review loop:
- choose the repository, path, diff, or working tree;
- run a scan with bounded output outside the repository;
- inspect findings with source excerpts, vulnerability details, and reproduction steps;
- validate or patch a candidate finding;
- export the sealed result into SARIF, CSV, or JSON;
- let CI fail on the severity threshold instead of treating the scan as advice.
Why does this matter?
Security agents need a different product shape from ordinary coding assistants. A useful system has to preserve evidence, compare scans over time, keep artifacts out of the source tree, expose policy exits, and avoid confusing incomplete coverage with a passing result.
Codex Security’s CLI surface points in that direction. It turns the model into one component inside a security-review harness.
New Runtime Read
The durable pattern is “agent output becomes review infrastructure.” The model can search for vulnerabilities, but the product value comes from scoping, cost caps, audit artifacts, reruns, matching, CI behavior, and export formats that another tool can trust.
For agent builders, this is the same lesson as with coding harnesses: the agent is only useful when its work can be inspected, repeated, compared, and promoted through deterministic gates.
