Codex Desktop: Add a one-click “Enhance Prompt” action to the composer

Open 💬 0 comments Opened Aug 3, 2026 by yiduancang-design

Feature request

Please add a one-click Enhance Prompt action to the Codex Desktop composer, similar to the prompt-refinement button available in some agentic development tools.

Desired workflow

  1. The user types a rough, fragmented, or conversational instruction in the composer.
  2. The user clicks a sparkle button or presses a configurable keyboard shortcut.
  3. Codex rewrites the unsent draft into a clearer, structured coding task.
  4. The optimized text replaces the current draft in the composer.
  5. The user reviews or edits the result before sending it.

Requirements

  • Operates on the current unsent composer draft.
  • Does not create a conversation turn or pollute thread history/context.
  • Preserves file paths, project names, commands, code snippets, and technical terms.
  • Does not invent requirements that were not present in the original text.
  • Can use lightweight project context such as AGENTS.md when helpful.
  • Provides Undo / Restore Original.
  • Supports a configurable keyboard shortcut.
  • Optionally offers concise, standard, and detailed refinement modes.
  • Works in Codex Desktop and ideally the IDE extension.
  • Shows a preview or diff before replacing the original draft.

Why this is useful

Many users enter development instructions in short, fragmented natural language. A lightweight refinement step before submission would reduce ambiguity, reduce back-and-forth, and help lower-cost models execute tasks more reliably.

This is especially useful for users who alternate between high-capability and lower-cost models: prompt refinement can improve execution quality without requiring every task to use the most expensive model.

Related prior request

  • #2443 — “Optimize Your Input” for Codex TUI, closed as not planned in 2025.

This request focuses specifically on the current Codex Desktop composer UX, including a visible one-click action, preview/diff, and undo behavior.

View original on GitHub ↗