update codex to 5.2 (#235)

This commit is contained in:
David Blass
2026-02-06 15:55:57 +00:00
committed by pullfrog[bot]
parent eab198748a
commit 51205b3d0a
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -13,15 +13,15 @@ import { installFromNpmTarball } from "../utils/install.ts";
import { spawn } from "../utils/subprocess.ts";
import { type AgentRunContext, agent } from "./shared.ts";
// Model selection based on effort level
// Note: mini uses Haiku for speed, auto uses opusplan for balance, max uses Opus for capability
// model selection based on effort level
// these are aliases that always resolve to the latest version
const claudeEffortModels: Record<Effort, string> = {
mini: "haiku",
auto: "opusplan",
max: "opus",
};
// FUTURE: Consider using Anthropic's "effort" parameter (beta) with Opus 4.5 for all tasks.
// FUTURE: Consider using Anthropic's "effort" parameter (beta) with Opus.
// This would allow a single model with effort levels ("low", "medium", "high") controlling
// token spend across responses, tool calls, and thinking. Requires beta header "effort-2025-11-24".
// See: https://platform.claude.com/docs/en/build-with-claude/effort
+3 -3
View File
@@ -14,13 +14,13 @@ import { type AgentRunContext, agent } from "./shared.ts";
// configuration based on effort level
// https://developers.openai.com/codex/models/
// gpt-5.2-codex is not yet available via api key (even through codex cli)
// gpt-5.3-codex announced 2026-02-05 but not yet available in codex CLI
type ModelReasoningEffort = "minimal" | "low" | "medium" | "high" | "xhigh";
type CodexEffortConfig = { model: string; reasoningEffort?: ModelReasoningEffort };
const codexEffortConfig: Record<Effort, CodexEffortConfig> = {
mini: { model: "gpt-5.1-codex-mini", reasoningEffort: "low" },
auto: { model: "gpt-5.1-codex" },
max: { model: "gpt-5.1-codex-max", reasoningEffort: "high" },
auto: { model: "gpt-5.2-codex" },
max: { model: "gpt-5.2-codex", reasoningEffort: "high" },
};
function writeCodexConfig(ctx: AgentRunContext): string {
+2 -2
View File
@@ -144439,8 +144439,8 @@ import { mkdirSync as mkdirSync3, writeFileSync as writeFileSync7 } from "node:f
import { join as join10 } from "node:path";
var codexEffortConfig = {
mini: { model: "gpt-5.1-codex-mini", reasoningEffort: "low" },
auto: { model: "gpt-5.1-codex" },
max: { model: "gpt-5.1-codex-max", reasoningEffort: "high" }
auto: { model: "gpt-5.2-codex" },
max: { model: "gpt-5.2-codex", reasoningEffort: "high" }
};
function writeCodexConfig(ctx) {
const codexDir = join10(ctx.tmpdir, ".codex");