From 9c8c6a1a6e1858c56afafdd8441905b5aa4fd898 Mon Sep 17 00:00:00 2001 From: Chris La Date: Mon, 9 Mar 2026 13:16:13 -0700 Subject: [PATCH] Remove model default to let codex CLI use its own config When users authenticate via `codex login`, their native config determines the default model. Hardcoding a default in AGENT.md overrides this and can cause model compatibility errors. Co-Authored-By: Claude Opus 4.6 --- README.md | 6 +++--- strawpot_codex/AGENT.md | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0edfbb1..482f0c5 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ strawpot_codex build \ --agent-workspace-dir /path/to/workspace \ --working-dir /path/to/project \ --task "fix the bug" \ - --config '{"model":"gpt-5.2-codex"}' + --config '{"model":"o4-mini"}' ``` Output: ```json { - "cmd": ["codex", "exec", "fix the bug", "-c", "model_instructions_file=\"/path/to/workspace/prompt.md\"", "-m", "gpt-5.2-codex", "--dangerously-bypass-approvals-and-sandbox", "-C", "/path/to/project", "--add-dir", "/path/to/workspace"], + "cmd": ["codex", "exec", "fix the bug", "-c", "model_instructions_file=\"/path/to/workspace/prompt.md\"", "-m", "o4-mini", "--dangerously-bypass-approvals-and-sandbox", "-C", "/path/to/project", "--add-dir", "/path/to/workspace"], "cwd": "/path/to/project" } ``` @@ -74,7 +74,7 @@ Pass via `--config`: | Key | Type | Default | Description | |---|---|---|---| -| `model` | string | `gpt-5.2-codex` | Model to use | +| `model` | string | _(none)_ | Model override (omit to use codex CLI default) | | `dangerously_skip_permissions` | boolean | `true` | Bypass all approvals and sandbox (`--dangerously-bypass-approvals-and-sandbox`). Set to `false` to require approval. | ### Environment variables diff --git a/strawpot_codex/AGENT.md b/strawpot_codex/AGENT.md index 7dc69f7..eb78afe 100644 --- a/strawpot_codex/AGENT.md +++ b/strawpot_codex/AGENT.md @@ -18,8 +18,7 @@ metadata: params: model: type: string - default: gpt-5.2-codex - description: Model to use for Codex CLI + description: Model override (omit to use codex CLI default) dangerously_skip_permissions: type: boolean default: true