Codex Prompt Enhancer
Prompt Enhancer is a desktop tool that rewrites a rough coding request into a structured prompt for Codex and GitHub Copilot. Select your draft anywhere, press one global hotkey (⌃⌥⌘P on Mac, Ctrl+Alt+P on Windows), and it’s replaced in place with a structured prompt — task, language/framework, constraints and the exact output you expect — in under four seconds.
No window switching. No copy-paste. The cursor stays exactly where it was.
Why structure a coding prompt
Code models follow explicit structure far better than a vague sentence. “Write a function to parse this” leaves the language, the framework, the edge cases and the output shape to a coin flip — so you re-prompt, or you get Python when you wanted TypeScript.
A structured prompt states the task, the language and framework, the constraints, and whether you want a single function, a full diff, or tests alongside. That is exactly what the Codex preset adds automatically, so the model stops guessing and you stop re-prompting.
For the underlying method, read How to structure Claude prompts with XML.
How it works
- Write a rough coding request anywhere — your editor, a terminal, Codex, or GitHub Copilot Chat.
- Select it and press the hotkey.
- In under four seconds the selection is replaced with a structured coding prompt:
Before: make a function that retries a failed request
After:
Task: Implement a retry wrapper for failed HTTP requests.
Language/framework: TypeScript, native fetch (no axios).
Constraints: exponential backoff with jitter, max 3 attempts, configurable base delay, abort on 4xx (retry only 5xx + network errors).
Expected output: one exported async function `fetchWithRetry`, fully typed, plus a short usage example.
It works system-wide — macOS uses the Accessibility API, Windows uses UI Automation, Electron/web apps fall back to clipboard automatically — so there’s no per-tool extension to install.
One app, the right structure per target
The same app carries presets for other targets too. The Claude Code preset covers agentic editors like Claude Code and Cursor; the Codex preset targets Codex/Copilot-style completions where you want a tight, explicit instruction. Pick the target, get the matching structure.
Honest caveats
- It structures the input — it does not write or run the code for you; Codex/Copilot still does that.
- The macOS DMG is Apple-notarized since June 2026 — installs without Gatekeeper warnings.
- Free tier: 3 free enhancements, no signup, then a 7-day free trial; BYOK is a Pro feature. Needs internet.