Prompt Coding Limited info

Codex: Metaprompt to Speed Up Slow Replies

A follow-up prompt from OpenAI's Codex guide: after a good but slow reply, ask the model to edit its own instructions so the next reply is as good and faster.

  • 🤖 GPT-5 Codex
  • 🗂️ Coding

Prompt by OpenAI (openai-cookbook) · Original source (opens in a new tab)

Codex: Metaprompt to Speed Up Slow Replies — prompt preview

The prompt

prompt
That was a high quality response, thanks! It seemed like it took you a while to finish responding though. Is there a way to clarify your instructions so you can get to a response as good as this faster next time? It's extremely important to be efficient when providing these responses or users won't get the most out of them in time. Let's see if we can improve!
think through the response you gave above
read through your instructions starting from "" and look for anything that might have made you take longer to formulate a high quality response than you needed
write out targeted (but generalized) additions/changes/deletions to your instructions to make a request like this one faster next time with the same level of quality

What it is

A metaprompt from the "Troubleshooting & Metaprompting" section of OpenAI's Codex guide. The source used it to get instruction changes that cut time-to-first-action for a coding agent.

Who it's for

  • Developers tuning a coding agent's instructions

Requirements

Requirements

  • A coding agent whose instructions you can edit
  • Review of the proposed changes before you adopt them

رسالة متابعة من دليل Codex من OpenAI: بعد رد جيد لكنه بطيء، اطلب من النموذج تعديل تعليماته بنفسه ليكون الرد التالي بالجودة نفسها وأسرع.

Examples

From the source

Prompt
prompt
write out targeted (but generalized) additions/changes/deletions to your instructions to make a request like this one faster next time with the same level of quality

Expected output: Last step of the metaprompt in the source.

Pros & cons

Pros

  • Pro:Short, reusable pattern for fixing slow starts
  • Pro:Asks for generalized changes rather than one-off fixes

Cons

  • Con:The model's proposed edits need human review
  • Con:Not tested by us

Tips

  • The source says to generate responses a few times and keep only changes that recur, so one run's fixes are not overfitted
  • The source recommends an eval to check whether an instruction change helps