()
| 48 | } |
| 49 | |
| 50 | func NewCodexEngine() *CodexEngine { |
| 51 | return &CodexEngine{ |
| 52 | BaseEngine: BaseEngine{ |
| 53 | id: "codex", |
| 54 | displayName: "Codex", |
| 55 | description: "Uses OpenAI Codex CLI with MCP server support", |
| 56 | experimental: false, |
| 57 | ghSkillAgentName: "codex", |
| 58 | capabilities: EngineCapabilities{ |
| 59 | ToolsAllowlist: true, |
| 60 | MaxTurns: true, // AWF max-turns is supported for Codex runs |
| 61 | MaxContinuations: false, // Codex does not support --max-autopilot-continues-style continuation mode |
| 62 | WebSearch: true, // Codex has built-in web-search support |
| 63 | NativeAgentFile: false, // Codex does not support agent file natively; the compiler prepends the agent file content to prompt.txt |
| 64 | }, |
| 65 | dedicatedLLMGatewayPort: constants.CodexLLMGatewayPort, |
| 66 | }, |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // GetModelEnvVarName returns an empty string because the Codex CLI does not support |
| 71 | // selecting the model via a native environment variable. Model selection for Codex |
no outgoing calls