call-codex
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCall codex to perform a task
调用codex执行任务
Call codex to perform a task.
调用codex执行任务。
Checking for the Existence of codex
检查codex是否存在
bash
undefinedbash
undefinedCheck 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
undefinedwhich codex
if [ $? -ne 0 ]; then
echo "codex未安装"
fi
undefinedRequesting 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