code-mate-codex
它能做什么
这个工具可以帮你分析代码并实现功能。它会运行一个名为 Codex 的程序,在你的编程项目上完成任务。
适用场景
- ✓当你想让 AI 分析你的代码时。
- ✓当你要求 AI 修改代码时。
- ✓当你想听听另一个 AI 对你代码的看法时。
技能链接
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-codex/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析一下这段代码,看看有没有错误。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会为 Codex 程序设置好运行环境,发送你的指令,并等待结果。最后它会展示最终结果,如果出现问题,也会告诉你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Codex CLI
Run
- Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
- Check availability with
command -v codex. If it is missing, stop and ask the user to install Codex CLI in Code Mate. - 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.
常见问题
什么是 Codex?
Codex 是一个帮助程序员分析和编写代码的程序。
我需要安装什么吗?
需要。你要先在 Code Mate 中安装 Codex CLI,才能使用这个工具。
这个工具会修改我的文件吗?
只有当你明确提出要求,并且工具已配置为允许修改时,它才会改动你的文件。大多数情况下,它只是分析代码,不做修改。
详情
作者的原始描述
Runs Codex CLI non-interactively for code analysis and implementation tasks. Use when the user asks to delegate repository work to Codex or obtain a second coding-agent result.
repo: CherryHQ/cherry-studio
热度
- GitHub 星标
- 53k
- 排名
- #3375
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/15
评论
- …