Documentation
¶
Overview ¶
Package codexcli registers a CLI-tool-backed provider that drives OpenAI's Codex CLI (`codex`) binary as the review engine. The user-facing name is `codex-cli` (selectable with `--cli codex` or `--provider codex-cli`); the underlying transport is a subprocess of the host CLI rather than an HTTPS API call, so no API key is required when `codex` is already authenticated locally (ChatGPT sign-in or OPENAI_API_KEY in the host CLI's own environment).
Layout naming: the `-cli` directory suffix is purely a developer signal that this is the CLI-backed sibling of the existing internal/provider/openai/ package (which talks to api.openai.com).
Codex is more agentic than Claude Code's `-p` or Gemini CLI's `-p` one-shot modes, so we drive its non-interactive `exec` subcommand and pin a read-only sandbox: a review must never let the agent modify the working tree or run write commands. Like the other CLI providers this is a PlainTextEmitter — the host CLI's output streams through verbatim, with no JSON-findings contract, so `remote pr` and `--json` do not apply.
Index ¶
Constants ¶
const Name = "codex-cli"
Name is what users type. Matches the directory suffix convention.
Variables ¶
This section is empty.
Functions ¶
func Metadata ¶ added in v1.17.0
Metadata describes the codex-cli backend for documentation. It needs no credential and never shells out to the host CLI, so it answers even on a machine where `codex` is not installed. See ADR-0039.
Binary is binaryName, the same constant this package's clireview.Spec is built from, so the published name cannot drift from the one exec.LookPath actually resolves.
Models is empty and DefaultModel is left blank on purpose: the host CLI owns model selection, and clireview.DefaultModel() synthesises a "binary@version" string for the cache key at runtime. That identifier is not a model, and publishing it as one would send readers looking for a model name they can pass to --model.
Types ¶
This section is empty.