Expert guidance for OpenAI Codex CLI non-interactive mode operations with Claude Code - running prompts programmatically, parsing output formats, building automation scripts, and CI/CD integration.
- codex - Comprehensive Codex CLI automation expert
/plugin install codex@wookstar-claude-plugins- Direct prompts -
codex exec "query" - Stdin input -
echo "content" | codex exec - - With workspace writes -
codex exec --full-auto "task" - With working directory -
codex exec -C /path "task"
- Plain text (default) - Final message to stdout, progress to stderr
- JSONL event stream -
--jsonfor programmatic event parsing - File output -
-o pathfor downstream scripts - Structured JSON -
--output-schema schema.jsonfor validated output
| Option | Description |
|---|---|
--full-auto |
Workspace-write sandbox + on-request approvals |
--sandbox, -s |
read-only, workspace-write, danger-full-access |
--model, -m |
Model override |
--json |
JSONL event stream |
--ephemeral |
No session persistence |
# Code review automation
"Review my auth module with Codex CLI"
# CI/CD integration
"How do I get structured output from codex exec for parsing in my GitHub Action?"
# Delegated tasks
"Run codex on this diff to generate a commit message"cat src/auth.py | codex exec - --ephemeral "Review for security issues"git diff --cached | codex exec - --ephemeral "Write a concise commit message"codex exec "Extract project metadata" --output-schema schema.json -o result.json --ephemeral