--- name: codex description: Start an OpenAI Codex CLI session for deep reasoning and code analysis user-invocable: true allowed-tools: - mcp__owlex__start_codex_session - mcp__owlex__resume_codex_session --- # Codex Session Start a Codex CLI session for deep reasoning, code review, and analysis. ## Instructions 1. Take the user's prompt from: $ARGUMENTS 2. If no argument provided, ask what they want Codex to help with 3. Determine if new or continuation: - New topic: Use `start_codex_session` - Follow-up: Use `resume_codex_session` 4. Return immediately with the task_id 5. Tell the user: - "Codex started (task: )" - "Check results with: `/codex-result `" **Do NOT call wait_for_task. Return immediately.** ## Usage - `/codex Explain how the auth flow works` - `/codex Find bugs in this function`