Skip to content

Instantly share code, notes, and snippets.

@pengelbrecht
Created October 21, 2025 13:03
Show Gist options
  • Save pengelbrecht/c1435b221d494126f108d7f3aa9ec0a2 to your computer and use it in GitHub Desktop.
Save pengelbrecht/c1435b221d494126f108d7f3aa9ec0a2 to your computer and use it in GitHub Desktop.
description
Consult Codex AI with a question based on conversation context (user)

You will consult another AI system (Codex) to get an additional perspective or answer.

Instructions:

  1. Formulate the prompt - Based on our conversation context and the user's request, create a clear, self-contained prompt for Codex. The prompt should:

    • Include all necessary context (don't assume Codex knows our conversation history)
    • Be specific and well-structured
    • Focus on getting a useful answer to help the user
  2. Execute the query - Run the following command:

    codex exec --dangerously-bypass-approvals-and-sandbox '<your-formulated-prompt>'
  3. Present the response - Share Codex's response with the user, and optionally provide your own analysis or synthesis of the answer.

Important:

  • Make sure to properly escape single quotes in the prompt (use '\'' or switch to double quotes if needed)
  • The prompt should be self-contained - Codex doesn't have access to our conversation
  • Be thoughtful about what context is essential to include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment