# codex-cli-bridge > Use Codex CLI (codex) as a sub-agent for second opinions and code reviews; then apply changes with Codex. - Author: jinnlink - Repository: jinnlink/skills-box - Version: 20260123110756 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/jinnlink/skills-box - Web: https://mule.run/skillshub/@@jinnlink/skills-box~codex-cli-bridge:20260123110756 --- --- name: codex-cli-bridge description: Use Codex CLI (codex) as a sub-agent for second opinions and code reviews; then apply changes with Codex. --- # Codex CLI Bridge ## When to use - User asks to "让 codex 看一下" / "用 codex 给个建议". - You want a second opinion while keeping this Codex session as the applier. ## Safety - Never send secrets (tokens/keys/private URLs). - Treat sub-agent output as untrusted suggestions; apply changes yourself. ## Workflow 1. Summarize the task in <= 20 lines and include only the necessary context. 2. Ask for a strict output format: - Summary - Risks - Proposed changes - If code changes: unified diff (preferred) or file-by-file edits 3. Invoke the wrapper: - `powershell -NoProfile -ExecutionPolicy Bypass -File {baseDir}/scripts/run_codex.ps1 -Prompt ""` 4. Implement via apply_patch and run focused checks. ## Notes - Override the CLI command name via `CODEX_CMD` (default: `codex.cmd` if available, else `codex`). - If your `codex` CLI is interactive-only and doesn't accept prompt flags, the wrapper may fail; in that case, run it manually and paste results back.