From 51205b3d0aecbda6a17501f069553da7b570b58b Mon Sep 17 00:00:00 2001 From: David Blass Date: Fri, 6 Feb 2026 15:55:57 +0000 Subject: [PATCH] update codex to 5.2 (#235) --- agents/claude.ts | 6 +++--- agents/codex.ts | 6 +++--- entry | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/agents/claude.ts b/agents/claude.ts index 5d419e3..143da23 100644 --- a/agents/claude.ts +++ b/agents/claude.ts @@ -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 = { 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 diff --git a/agents/codex.ts b/agents/codex.ts index a7fa57b..718ffca 100644 --- a/agents/codex.ts +++ b/agents/codex.ts @@ -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 = { 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 { diff --git a/entry b/entry index 9c2b362..3b497cc 100755 --- a/entry +++ b/entry @@ -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");