From 159ed6f1cd42853d8653e2e4e91a61b3103b0290 Mon Sep 17 00:00:00 2001 From: Chris La Date: Mon, 9 Mar 2026 12:38:53 -0700 Subject: [PATCH] Change default model from o3 to gpt-5.2-codex Co-Authored-By: Claude Opus 4.6 --- README.md | 6 +++--- codex/wrapper/main_test.go | 10 +++++----- strawpot_codex/AGENT.md | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d833c7a..0edfbb1 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":"o3"}' + --config '{"model":"gpt-5.2-codex"}' ``` Output: ```json { - "cmd": ["codex", "exec", "fix the bug", "-c", "model_instructions_file=\"/path/to/workspace/prompt.md\"", "-m", "o3", "--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", "gpt-5.2-codex", "--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 | `o3` | Model to use | +| `model` | string | `gpt-5.2-codex` | Model to use | | `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/codex/wrapper/main_test.go b/codex/wrapper/main_test.go index aafe19d..a48d6b6 100644 --- a/codex/wrapper/main_test.go +++ b/codex/wrapper/main_test.go @@ -15,7 +15,7 @@ func TestParseBuildArgs_AllFlags(t *testing.T) { "--role-prompt", "You are a helper", "--memory-prompt", "Remember this", "--task", "do something", - "--config", `{"model":"o3"}`, + "--config", `{"model":"gpt-5.2-codex"}`, "--skills-dir", "/skills", "--roles-dir", "/roles1", "--roles-dir", "/roles2", @@ -41,8 +41,8 @@ func TestParseBuildArgs_AllFlags(t *testing.T) { if ba.Task != "do something" { t.Errorf("Task = %q, want %q", ba.Task, "do something") } - if ba.Config != `{"model":"o3"}` { - t.Errorf("Config = %q, want %q", ba.Config, `{"model":"o3"}`) + if ba.Config != `{"model":"gpt-5.2-codex"}` { + t.Errorf("Config = %q, want %q", ba.Config, `{"model":"gpt-5.2-codex"}`) } if len(ba.SkillsDirs) != 1 || ba.SkillsDirs[0] != "/skills" { t.Errorf("SkillsDirs = %v, want [/skills]", ba.SkillsDirs) @@ -122,7 +122,7 @@ func TestCmdBuild_WithTaskAndModel(t *testing.T) { "--agent-workspace-dir", wsDir, "--working-dir", "/project", "--task", "fix the bug", - "--config", `{"model":"o3"}`, + "--config", `{"model":"gpt-5.2-codex"}`, } output := captureBuildOutput(t, args) @@ -138,7 +138,7 @@ func TestCmdBuild_WithTaskAndModel(t *testing.T) { if len(cmd) < 3 || cmd[2] != "fix the bug" { t.Errorf("cmd[2] = %v, want %q", cmd[2], "fix the bug") } - assertSequence(t, cmd, "-m", "o3") + assertSequence(t, cmd, "-m", "gpt-5.2-codex") } func TestCmdBuild_PromptFile(t *testing.T) { diff --git a/strawpot_codex/AGENT.md b/strawpot_codex/AGENT.md index 943f7eb..7dc69f7 100644 --- a/strawpot_codex/AGENT.md +++ b/strawpot_codex/AGENT.md @@ -18,7 +18,7 @@ metadata: params: model: type: string - default: o3 + default: gpt-5.2-codex description: Model to use for Codex CLI dangerously_skip_permissions: type: boolean