技能 编程开发 Codex命令行执行器

Codex命令行执行器

v20260927
code-mate-codex
以非交互方式运行Codex CLI,用于代码分析和实现任务。将仓库工作委托给Codex,并通过JSONL输出获取编码代理结果。支持沙箱模式和身份验证检查。
获取技能
83 次下载
概览

Codex CLI

Run

  1. Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v codex. If it is missing, stop and ask the user to install Codex CLI in Code Mate.
  3. Run one task and exit:
codex exec "<prompt>" --json

Pass the prompt as one quoted argument. Parse stdout as JSONL, preserve event order, and use the final agent message as the result. Treat an error event or nonzero exit as failure. Never start interactive codex or codex login.

Authentication And Permissions

If Codex reports missing login or API configuration, stop and ask the user to finish Codex setup in Code Mate. Never request, read, print, or copy credentials.

Use --sandbox read-only unless the user explicitly requested workspace changes. For an approved edit, use only the narrowest suitable sandbox and working directory; never add --dangerously-bypass-approvals-and-sandbox. Add --skip-git-repo-check only when the user intentionally selected a non-Git directory.

Example: for a review request, append --sandbox read-only, ask Codex not to modify files, and summarize the final JSONL message plus any reported errors.

信息
Category 编程开发
Name code-mate-codex
版本 v20260927
大小 1.42KB
更新时间 2026-09-28
语言