Lightweight coding agent that runs in your terminal
Rust
Use codex-max prompt/tools for experimental models. (#7765)
cassirer-openai80140c6d9d27
diff --git a/codex-rs/core/src/openai_models/model_family.rs b/codex-rs/core/src/openai_models/model_family.rsindex 094fb01370..33a130cb3d 100644--- a/codex-rs/core/src/openai_models/model_family.rs+++ b/codex-rs/core/src/openai_models/model_family.rs@@ -220,22 +220,18 @@ pub fn find_family_for_model(slug: &str) -> ModelFamily {truncation_policy: TruncationPolicy::Tokens(10_000),)- // Internal models.- } else if slug.starts_with("codex-exp-") {+ // Experimental models.+ } else if slug.starts_with("exp-codex") {+ // Same as gpt-5.1-codex-max.model_family!(slug, slug,supports_reasoning_summaries: true,reasoning_summary_format: ReasoningSummaryFormat::Experimental,- base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),+ base_instructions: GPT_5_1_CODEX_MAX_INSTRUCTIONS.to_string(),apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),- experimental_supported_tools: vec![- "grep_files".to_string(),- "list_dir".to_string(),- "read_file".to_string(),- ],shell_type: ConfigShellToolType::ShellCommand,supports_parallel_tool_calls: true,- support_verbosity: true,+ support_verbosity: false,truncation_policy: TruncationPolicy::Tokens(10_000),context_window: Some(CONTEXT_WINDOW_272K),)