From 696ef30d1004c3657025d1033f260a706b217fb1 Mon Sep 17 00:00:00 2001 From: Hare Date: Mon, 8 Jun 2026 07:05:28 +0900 Subject: [PATCH] config: tune workspace profiles and codex models --- .yoi/profiles/_base.lua | 2 +- .yoi/profiles/coder.lua | 2 ++ resources/models/builtin.toml | 18 ++++++++++++------ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.yoi/profiles/_base.lua b/.yoi/profiles/_base.lua index e1a8e46b..54a02068 100644 --- a/.yoi/profiles/_base.lua +++ b/.yoi/profiles/_base.lua @@ -7,7 +7,7 @@ return function(opts) slug = opts.slug, description = opts.description, - scope = scope.workspace_write(), + scope = opts.scope or scope.workspace_read(), session = { record_event_trace = true, diff --git a/.yoi/profiles/coder.lua b/.yoi/profiles/coder.lua index 8327b406..e0762262 100644 --- a/.yoi/profiles/coder.lua +++ b/.yoi/profiles/coder.lua @@ -1,7 +1,9 @@ local base = require("_base") +local scope = require("yoi.scope") return base { slug = "coder", description = "Coder role profile: GPT-5.5 with bundled default behavior", model_ref = "codex-oauth/gpt-5.5", + scope = scope.workspace_write(), } diff --git a/resources/models/builtin.toml b/resources/models/builtin.toml index 8f92e20d..010a425f 100644 --- a/resources/models/builtin.toml +++ b/resources/models/builtin.toml @@ -29,25 +29,31 @@ provider = "ollama-local" context_window = 256000 # Codex OAuth (ChatGPT backend via Responses API) +# Codex CLI's model catalog exposes these coding models with a 272k effective +# context window on this route, even when public API docs advertise larger +# model-family windows. [[model]] id = "gpt-5.5" provider = "codex-oauth" -# OpenAI docs advertise GPT-5.5 with a 1.05M context window, but Codex OAuth / -# ChatGPT backend access is effectively limited around 272k tokens; this -# provider-specific entry records that effective route limit directly. context_window = 272000 capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } } [[model]] id = "gpt-5.4" provider = "codex-oauth" -context_window = 1050000 +context_window = 272000 capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } } [[model]] -id = "gpt-5-codex" +id = "gpt-5.4-mini" provider = "codex-oauth" -context_window = 400000 +context_window = 272000 +capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } } + +[[model]] +id = "gpt-5.3-codex-spark" +provider = "codex-oauth" +context_window = 272000 capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } } # OpenRouter