- https://platform.openai.com/docs/guides/reasoning-best-practices
- Type: reference
- Source: OpenAI developer documentation
TL;DR
Reasoning models plan internally, so prompt them with short, goal-focused instructions and clear constraints, and do not ask them to “think step by step”.
What it covers
Guidance for OpenAI’s o-series models. Reasoning models suit ambiguous, multi-step, high-accuracy work (planning, document analysis, code review, LLM-as-judge); GPT models suit fast, cheap, well-defined execution. A common pattern uses a reasoning model as the planner and a GPT model as the doer.
Key takeaways
- Keep prompts simple and direct; the models handle brief instructions well.
- Skip chain-of-thought prompts: reasoning happens internally, so “think step by step” adds little and can hurt.
- Use delimiters (markdown, XML tags, section titles) to separate parts of the input.
- Start zero-shot, add few-shot examples only if needed and make them match the instructions closely.
- State constraints and success criteria explicitly (budget, format, end goal).
- Use developer messages rather than system messages from
o1-2024-12-17; markdown is off by default, re-enable it withFormatting re-enabledon the first line. - For agentic flows use the Responses API, set
storetrue and pass reasoning items back (viaprevious_response_id) between function calls.
When to use
- When choosing between reasoning and GPT models for a task.
- When rewriting prompts that were written for non-reasoning models.
- When building an agent loop that must preserve reasoning items.
Caveats
- Vendor documentation tied to OpenAI model names and APIs of the time, and the docs have moved to a new URL.
Prompt Engineering LLM GPT AI Agents Google - Prompt Engineering 8 Types of Prompt Engineering Prompt-engineering-guide