Codex Security CLI Turns Security Review Into a Scannable Workbench

OpenAI's Codex Security CLI packages repository, diff, working-tree, export, validation, and patch flows into a security-review workbench rather than a single scanner command.

Retrieval answer

OpenAI's Codex Security CLI packages repository, diff, working-tree, export, validation, and patch flows into a security-review workbench rather than a single scanner command. 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.

New Runtime synthesiseditorial-diagram
Hand-drawn security workbench diagram showing a repository and diff entering Codex Security scan, then findings moving through patch, export, and CI review gates.
Codex Security is most interesting as a review workbench: scan, compare, validate, patch, export, and gate the result.New Runtime synthesis from public source inspectionOriginal source ↗
  1. Repo/diffThe CLI can scope scans to repositories, paths, committed diffs, or the working tree.
  2. FindingsResults can include source excerpts, vulnerability details, and reproduction steps.
  3. Export gateCSV, JSON, and SARIF exports let the scan become CI and audit infrastructure.

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.

Recommendation

OpenAI's Codex Security CLI packages repository, diff, working-tree, export, validation, and patch flows into a security-review workbench rather than a single scanner command.

Discovery graph / next reads

Continue through New Runtime

Open the graph
  1. 01topicCodex - New RuntimeExplore the codex topic hub.
  2. 02topicCoding agents - New RuntimeExplore the coding agents topic hub.
  3. 03related materialCodex Gets A Model Migration DeadlineShares codex and developer tools.
  4. 04related materialReviewBench Turns Code Review Into An Agent EvalShares coding agents and developer tools.
  5. 05related materialStateless MCP Makes Small, Auditable Agent Tools Practical AgainShares developer tools and security.

These links are also published in this page’s JSON twin and as typed edges in DiscoveryGraph v1.

Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate…

Open the JSON contract