@@ -18,18 +18,18 @@ class CodexHostAdapter(BaseHostAdapter):
1818 """Adapter for OpenAI Codex CLI / OpenAI-native environments."""
1919
2020 MODEL_MAP : dict [CapabilityClass , str ] = {
21- CapabilityClass .DEEP_REASONING : "o3 " ,
22- CapabilityClass .CODING : "codex-mini " ,
23- CapabilityClass .BALANCED : "gpt-4.1 " ,
24- CapabilityClass .FAST : "gpt-4.1 -mini" ,
21+ CapabilityClass .DEEP_REASONING : "gpt-5.5 " ,
22+ CapabilityClass .CODING : "gpt-5.3-codex " ,
23+ CapabilityClass .BALANCED : "gpt-5.4 " ,
24+ CapabilityClass .FAST : "gpt-5.4 -mini" ,
2525 }
2626
2727 AVAILABLE_MODELS = [
28- "o3 " ,
29- "codex-mini " ,
30- "gpt-4.1 " ,
31- "gpt-4.1-mini " ,
32- "gpt-4.1-nano " ,
28+ "gpt-5.5 " ,
29+ "gpt-5.4 " ,
30+ "gpt-5.4-mini " ,
31+ "gpt-5.3-codex " ,
32+ "gpt-5.3-codex-spark " ,
3333 ]
3434
3535 def detect (self ) -> HostDetectionResult :
@@ -80,6 +80,7 @@ def get_capabilities(self) -> HostCapabilities:
8080 notes = [
8181 "Codex supports OpenAI-family models only." ,
8282 "Model can be set via CLI flags or environment." ,
83+ "GPT-5.5 is current top-end when available; GPT-5.4 is the broad fallback." ,
8384 "AGENTS.md repo instructions are supported." ,
8485 ],
8586 )
@@ -93,7 +94,7 @@ def _detect_current_model(self) -> str | None:
9394 model = os .environ .get ("CODEX_MODEL" ) or os .environ .get ("OPENAI_MODEL" )
9495 if model :
9596 return model
96- return "codex-mini "
97+ return "gpt-5.4 "
9798
9899 def get_available_models (self ) -> list [str ]:
99100 """Get available OpenAI models."""
@@ -134,13 +135,16 @@ def resolve_capability_class(self, capability: CapabilityClass) -> str | None:
134135 def apply_prompt_strategy (self , task : TaskNode ) -> dict :
135136 """Generate Codex-specific prompt strategy."""
136137 model = self .resolve_capability_class (task .preferred_capability_class )
138+ hints = [
139+ f"Use { model } for { task .type .value } tasks." ,
140+ f"Codex supports switching to this model via --model flag." ,
141+ ]
142+ if model == "gpt-5.5" :
143+ hints .append ("If GPT-5.5 is unavailable in your account, fall back to gpt-5.4." )
137144 return {
138145 "task_id" : task .id ,
139146 "task_type" : task .type .value ,
140147 "strategy" : "model_switch" ,
141148 "target_model" : model ,
142- "hints" : [
143- f"Use { model } for { task .type .value } tasks." ,
144- f"Codex supports switching to this model via --model flag." ,
145- ],
149+ "hints" : hints ,
146150 }
0 commit comments