zuke.tools.codex
@zuke/codex 1.1.2: @zuke/codex — a typed [OpenAI Codex](https://developers.openai.com/codex/cli) CLI (codex) task wrapper for Zuke builds.
zuke on PyPI ↗ 3 symbols
Symbols
class CodexExecSettings(ToolSettings) Settings for a non-interactive codex exec run — the build-friendly way to send a single prompt and capture the response.
-
prompt(text: str) -> SelfThe prompt to run non-interactively. Omit to read from stdin.
-
model(id: str) -> SelfPin the model, e.g.
model("gpt-5-codex")(--model). -
image(*paths: str) -> SelfAttach an image to the prompt (
--image). Repeatable. -
config(key: str, value: str) -> SelfOverride a config value as
key=value(--config). Repeatable. -
sandbox(mode: Literal['read-only', 'workspace-write', 'danger-full-access']) -> SelfSandbox policy for model-generated commands (
--sandbox). -
cd(dir: str) -> SelfRun as if
codexwas started in this directory (--cd). -
ask_for_approval(policy: Literal['untrusted', 'on-failure', 'on-request', 'never']) -> SelfApproval policy for the run (
--ask-for-approval). -
full_auto() -> SelfLow-friction sandboxed automatic execution (
--full-auto). -
dangerously_bypass_approvals_and_sandbox() -> SelfSkip all confirmation prompts and sandboxing (
--dangerously-bypass-approvals-and-sandbox). -
skip_git_repo_check() -> SelfAllow running outside a Git repository (
--skip-git-repo-check). -
json() -> SelfEmit events as newline-delimited JSON (
--json). -
output_last_message(file: str) -> SelfWrite the agent's final message to a file (
--output-last-message). -
output_schema(file: str) -> SelfConstrain the final message to a JSON schema file (
--output-schema). -
color(mode: Literal['always', 'never', 'auto']) -> SelfWhen to colourise output (
--color). -
profile(name: str) -> SelfUse a named configuration profile (
--profile). -
oss() -> SelfUse a local open-source model provider (
--oss).
class CodexMcpSettings(SubcommandSettings) Settings for a codex mcp … invocation (manage MCP servers): name the verb and operands with .command(...) and pass anything else with .flag(...).
class CodexTasks Typed task functions for the OpenAI Codex CLI.
-
static async exec(ctx: ServiceContext, configure: Callable[[CodexExecSettings], CodexExecSettings] | None=None) -> ExecResultRun a prompt non-interactively (
codex exec). -
static async mcp(ctx: ServiceContext, configure: Callable[[CodexMcpSettings], CodexMcpSettings] | None=None) -> ExecResultManage MCP servers (
codex mcp …).