SuperAPI AI Directory

run-codex

Agents & models

View repository

Updated 10-16 00:01

About this skill

Feature Overview

Send a request for assistance to an external assistant through the MCP tool, asking the other party to perform tasks such as code review, logical reasoning, scientific and philosophical thinking, in-depth analysis, strategy formulation, and market analysis in a clean-context, runtime-isolated, independent environment.

Usage

Use the mcp__plugin_headless-knight_runCLI__codex tool to send a request to the assistant. The parameters that can be passed include:

  • prompt: string, the complete task description organized from the context, required parameter
  • systemPrompt: string, the system prompt organized from the context that the assistant needs to follow, used to constrain its behavior, optional
  • workDir: string, working directory, defaults to the current directory, optional
  • model: string, specifies which model to use. The value is the code name of an OpenAI GPT series model such as "gpt-5.1-codex", "gpt-5.1", "gpt-5-mini", "gpt-5-nano", or "o3", optional, defaults to gpt-5.1-codex
  • env: object, custom environment variables, key-value pairs, optional

Model Selection

  • o3: suitable for complex tasks and problems such as science, mathematics, logical reasoning, philosophical thinking, and strategy analysis and formulation
  • gpt 5/5.1 series: suitable for tasks and problems such as code review, refactoring plan formulation, BUG analysis, and in-depth thinking on mathematical, scientific, and philosophical questions. Adjust whether to use the original, mini, or nano version according to the difficulty of the task or problem. The codex version is more focused on code review

Related Environment Variables

If not set separately, the configuration in the current conversation context is used automatically

  • OPENAI_API_KEY: API_Key for Codex CLI
  • HTTP_PROXY: HTTP proxy address
  • HTTPS_PROXY: HTTPS proxy address
  • ALL_PROXY: default proxy address
  • OPENAI_CODEX_COMMAND: Codex command-line address or name (ensure the path is included in PATH)
  • NODE_ENV: environment parameter, such as "development"