{"modulePath":"github.com/CommitBrief/commitbrief","version":"v1.23.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codexcli\n\nPackage 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).\n\nLayout 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).\n\nCodex 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.\n\n## Constants\n\n```go\nconst Name = \"codex-cli\"\n```\nName is what users type. Matches the directory suffix convention.\n\n## Functions\n\n```go\nfunc Metadata() provider.Metadata\n```\nMetadata 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.\n\nBinary 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.\n\nModels 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.\n\n","path":"github.com/CommitBrief/commitbrief/internal/provider/codex-cli","name":"codexcli","synopsis":"Package codexcli registers a CLI-tool-backed provider that drives OpenAI's Codex CLI (`codex`) binary as the review engine.","isRedistributable":true}
