YAML examples for Codex CLI
Run Codex CLI with all options
yaml
- action: "Run Codex CLI"
type: "CODEX_CLI"
trigger_time: "ON_EVERY_EXECUTION"
integration: "my-openai-integration"
prompts:
- "Review the code and suggest improvements"
- file: ".buddy/codex-prompt.md"
model: "codex-mini"
skills:
- buddy-works/security-audit
mcp_servers:
github:
type: "http"
url: "https://api.githubcopilot.com/mcp/"
headers:
Authorization: "Bearer $GITHUB_TOKEN"
filesystem:
type: "stdio"
command: "npx"
args:
- "-y"
- "@modelcontextprotocol/server-filesystem"
- "/buddy/my-repo"
sandbox_mode: "WORKSPACE_WRITE"
Minimal Codex CLI
yaml
- action: "Codex Review"
type: "CODEX_CLI"
trigger_time: "ON_EVERY_EXECUTION"
integration: "my-openai-integration"
prompts:
- "Review the code"