Prompting GPT-6.2 and Codex
Choose GPT-6.2 Sol or Astra, use current Responses settings, and brief Codex with verifiable completion criteria.
Model selection
| Model or service | Use case | Model ID or access |
|---|---|---|
| GPT-6.2 Sol | Everyday coding and agent workloads | gpt-6.2-sol |
| GPT-6.2 Astra | Difficult, sustained projects | gpt-6.2-astra |
| GPT-6.1 Terra | Visual reasoning and computer use | gpt-6.1-terra |
| GPT-6 Luna | Focused, high-volume tasks | gpt-6-luna |
Which model to choose
Start with Sol for routine project work. Use Astra when difficult cases fail your acceptance checks, Terra for visual interaction, and Luna for narrowly scoped repeated tasks.
Using the chat or local app
Select an available model in your app, then provide the actual material, audience and deliverable. For a repository task, identify the allowed edits and the command that verifies them.
Using the API
For GPT-6.2, use Responses when calling tools. Put reusable rules in the first developer message in input; top-level instructions applies to the current request and is appended after input. Keep earlier conversation items unchanged when continuing a task. Start reasoning effort at medium; use low instead of unsupported none or minimal. Omit temperature, top_p and top_logprobs.
POST /v1/responses
{
"model": "gpt-6.2-sol",
"reasoning": {
"effort": "medium"
},
"input": [
{
"role": "developer",
"content": "Preserve source facts and identify missing information."
},
{
"role": "user",
"content": "Rewrite this customer update: {{text}}"
}
]
}Prompting advice
- Describe the deliverable, intended reader and observable acceptance checks; avoid prescribing every intermediate step.
- For authorized work, say which reversible decisions it may make and where your approval is required. Ask for a final check against the requested outcome.
- For visual work, supply an existing screen or design reference and concrete criteria such as readable text at the target size.
Agent usage
Codex CLI
GPT-6.2 is the model family; 0.172.0 is the CLI stable-release snapshot. Desktop app and extension builds use their own versions. Choose Sol for everyday work or Astra for difficult investigations from the models your account exposes.
- Provide the repository or file, required behavior, allowed edits and a check that demonstrates completion. Put lasting repository conventions in AGENTS.md.
- Match reasoning effort to investigation depth. Ask explicitly for subagents when independent work should run in parallel; include visual references when appearance matters.
codex --model gpt-6.2-sol
# In a session: /modelExample prompt template
Fix {{failure}} in {{repository}}. Reproduce it with {{reproduction steps}}, inspect the relevant code and make the smallest complete change. Preserve {{required behavior}} and follow existing project conventions. Verify with {{acceptance checks}}. Continue through reversible choices within this scope; ask before changing the scope or taking irreversible actions. Report the change, actual verification and any unresolved issue.Example prompt template
Rewrite the customer update below in 100 words. Preserve the delivery date and every commitment. Flag any missing fact needed for the message. Customer update: {{text}}