Source note: Adapted from my original write-up on X. You can also download the packaged prompt-optimizer Skill on Boloop, read the follow-up domain-term translation write-up, or check github.com/TinkCarlos/prompt-optimizer.
"Make a deck introducing the new product." That one sentence is enough to get an AI moving. Only after it hands back ten slides do you realize it had no idea who the audience was, what decision the deck should drive, or which claims lacked supporting numbers.
I still wanted to type just that one sentence. So I built prompt-optimizer to turn casual requests into a brief task spec you can review in seconds before work starts. Once I used it in real daily chats, though, I noticed a catch: even a good rewrite adds a confirmation round-trip—and that extra round is only worth asking when it changes what happens next.
Turning Vague Wishes Into Actionable Tasks
The rewriter keeps your deliverable and constraints intact while adding concrete execution details. For debugging, it names the real logs to inspect and how to verify the fix; for a slide deck, it clarifies the audience and decision goal. For the prompt above, the rewrite looks like this:
Draft the structure and slide-by-slide copy for a new-product deck based on existing product materials, so busy decision-makers can grasp in a few minutes what problem it solves, what evidence backs it, and how to try it next; mark missing numbers as blanks.
The assistant shows only a short title, one rewritten paragraph, and an approve / edit / use original line—and starts only after confirmation. Already-clear edits like "change the button to blue" proceed straight away.
The First Version Turned One Sentence Into a Report
Early drafts appended "Key improvements" and "Optional stretch ideas." I would type one casual sentence and get stuck reading a whole mini-report—trading one hassle for another. I cut the commentary and kept only the decision paragraph and confirmation line.
Shrinking the output also forced a sharper filter on what actually carries signal. Once I pasted a raw API error: the rewrite caught the failure message, yet told the assistant to infer causes from generic HTTP headers and copied long trace IDs that were already in the chat. The current rules keep only diagnostic error lines, point the assistant to verifiable sources, and drop duplicate IDs not needed in the same turn.
"You Decide" Already Said Enough
Reviewing 24 real trigger logs showed "好了" ("done/OK") being treated as a brand-new task and "你决定" ("you decide") triggering another confirmation round. Worse, sometimes the assistant decided correctly to skip rewriting—and then explicitly announced that it had skipped.
I split handling into two stages. With the optional hooks installed, common confirmations, short approvals, and messages starting with raw: pass straight through locally. Everything else goes to the assistant to judge in context; when skipping, it simply answers normally with zero routing chatter in the chat. If a rewrite misses your intent, replying "按原话" ("use original") bypasses it immediately.
Hooks Must Check What the Last Turn Actually Sent
Once, local state said "waiting for user confirmation," even though the previous turn had already gone straight to work without ever showing a confirmation prompt—so my next message got misread as an approval. Now, whenever session transcripts are readable, the hook inspects the last reply actually sent to the user and detects confirmation prompts by their short heading and blockquote structure instead of hardcoding one language.
Long Antigravity tasks uncovered another bug: around 525 KB of tool output in a single turn pushed the user's message past the 512 KB log tail the hook used to read. When a background job woke the agent up, the same request could fire again. Antigravity hooks now expand their tail read on demand up to 16 MiB.
Codex has its own easy-to-miss gotcha: new hooks must be approved under /hooks first. After approving, if you test with an already-clear request, the right behavior is a silent skip—which looks like nothing happened. Testing with a vague multi-step ask confirms the hook is wired up. The repository ships optional auto-hooks for Antigravity, Claude Code, and Codex, while Cursor and Grok invoke the Skill manually.
What Can Be Verified Right Now
In daily use, the clearest shift is turning vague requests into short specs grounded in evidence and verification checks, while short confirmations and clear edits pass straight through. Existing hook tests cover routing, confirmation state, and long sessions. There is still no quantitative benchmark proving how much better final answers get after rewriting, and the model occasionally intercepts a prompt you already felt was clear.
Locally filtered messages add 0 routing tokens. Remaining messages carry a few hundred tokens of routing instructions so the assistant can judge whether a rewrite helps—the token cost of enabling auto-hooks.
If you want to try it, paste a real note you would normally drop straight from a bug report or meeting doc, and check whether the next diagnostic check and verification step become clearer. Related reference: prompt-optimizer repo and commit `5f792ab`.