Codex Review

Send content to codex for a second opinion. Report the feedback verbatim. Don’t change anything until the user approves.

Process

  1. Resolve the content. Three modes:
    • File path(s) given: Read and concatenate them.
    • Content in conversation context: The user has been working on something in-context (e.g., a draft, a plan, a code block). Gather it.
    • Nothing clear: Ask the user what to send.
  2. Build the prompt. Compose a single prompt that includes:
    • A direct review request tailored to the content type (prose, code, plan, etc.)
    • All the content, clearly delimited.
  3. Send to codex. Pipe the prompt via stdin to avoid shell quoting issues:
cat <<'PROMPT_EOF' | codex exec -
Review the following. What works, what doesn't, what to cut, what to strengthen. Be direct — no preamble, no praise sandwich.

---

<content here>
PROMPT_EOF

For multiple files, include each with a filename header:

cat <<'PROMPT_EOF' | codex exec -
Review the following files together. What works, what doesn't, what to cut, what to strengthen. Be direct — no preamble, no praise sandwich.

--- file: path/to/first.md ---
<contents>

--- file: path/to/second.md ---
<contents>
PROMPT_EOF
  1. Report the feedback to the user exactly as codex returns it. Don’t summarize, reframe, or editorialize.
  2. Wait for the user to say what to act on. Don’t apply changes unprompted.

Rules