code-mate-codex
Run Codex CLI non-interactively for coding tasks. Use when the user asks to delegate work to Codex.
来源信息
- 仓库
- CherryHQ/cherry-studio
- 最近来源活动
- 2026年10月20日 02:55
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 53,060
- Forks
- 5,136
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- code-mate-codex
- description
- Run Codex CLI non-interactively for coding tasks. Use when the user asks to delegate work to Codex.
# 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:
```bash
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.
在 GitHub 查看