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 parametersystemPrompt: string, the system prompt organized from the context that the assistant needs to follow, used to constrain its behavior, optionalworkDir: string, working directory, defaults to the current directory, optionalmodel: 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-codexenv: 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 CLIHTTP_PROXY: HTTP proxy addressHTTPS_PROXY: HTTPS proxy addressALL_PROXY: default proxy addressOPENAI_CODEX_COMMAND: Codex command-line address or name (ensure the path is included in PATH)NODE_ENV: environment parameter, such as "development"