call-codex

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Call codex to perform a task

调用codex执行任务

Call codex to perform a task.
调用codex执行任务。

Checking for the Existence of codex

检查codex是否存在

bash
undefined
bash
undefined

Check if codex is installed. Exit code 0 means success, 1 means failure.

检查codex是否已安装。退出码0表示成功,1表示失败。

If not installed, skip the subsequent steps of the skill.

如果未安装,请跳过该skill的后续步骤。

which codex if [ $? -ne 0 ]; then echo "codex is not installed" fi
undefined
which codex if [ $? -ne 0 ]; then echo "codex未安装" fi
undefined

Requesting a Task to codex

向codex请求执行任务

This task may take a long time. If the timeout value of the Bash tool can be set, please specify the maximum timeout value.
bash
codex exec --sandbox danger-full-access <<EOT
{task_description}
EOT
该任务可能需要较长时间。如果可以设置Bash工具的超时时间,请指定最大超时值。
bash
codex exec --sandbox danger-full-access <<EOT
{task_description}
EOT