Preserve spoken instructions verbatim in post-processing prompt#195
Conversation
The default cleanup prompt told the model not to execute the transcript as an instruction, but the model still occasionally generated the requested message, email, or content instead of transcribing the literal words. Examples like "write a message to John saying X" got turned into a drafted message rather than the spoken sentence. Mirror the existing "Self-corrections are strict" pattern and add an "Instruction preservation is strict" section with concrete before/after examples covering the common failure modes (messages, emails, AI/LLM asks, content generation). Models follow concrete examples far more reliably than abstract rules. Bump defaultSystemPromptDate so users with customized prompts see the "default has changed" indicator. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughPostProcessingService system prompt is clarified with a new instruction-preservation block specifying that when the transcript describes actions or instructions directed elsewhere, the service outputs the spoken words verbatim without generating referenced content. The prompt version date is updated to 2026-05-13. ChangesSystem Prompt Enhancement
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I'm not seeing a big improvement on instruction preservation running the eval, but no big regression either https://github.com/marcbodea/freeflow-eval/blob/main/eval/results/v24-vs-v25-pairwise-hybrid-concurrency25-throughput-all-cases-2026-05-20-5run-aggregate.md Will merge but might be good to check the eval and see if there are some other failure cases we should add. |
Problem
When dictating a sentence that describes an action — e.g. "write a message to John saying I'm running late", "ask Claude to refactor the auth module", "send an email to the team asking about Friday" — the post-processing LLM occasionally generates the requested message/email/content instead of transcribing the literal words. So the user gets a drafted message pasted instead of what they actually said.
This is the exact failure mode the existing "Hard contract" rule was meant to prevent:
But abstract rules alone aren't enough — the model still drifts on natural "tell X to do Y" phrasing, especially when the speaker is using FreeFlow to dictate prompts to another LLM, which is increasingly common.
Fix
Mirror the existing
Self-corrections are strict:pattern and add anInstruction preservation is strict:section with concrete before → after examples. Models follow examples far more reliably than abstract rules.Bumped
defaultSystemPromptDateto2026-05-13so users with customized prompts see the "default has changed" indicator.Test plan
Tested locally on a signed dev build of this branch (Apple Silicon, macOS 26, Groq + default
openai/gpt-oss-20bmodel).No new settings, no new UI, no behavior change to the cleanup path itself — just a stricter prompt.
Summary by CodeRabbit