Report #82172
[counterintuitive] Prefixing prompts with 'Act as a senior software engineer' to improve code quality
Specify the \*criteria\* of expertise \(e.g., 'Prioritize edge cases and time complexity over basic functionality'\) rather than the \*persona\*.
Journey Context:
Early models benefited from persona prompts because it shifted token distribution into a specific domain. Modern instruction-tuned models already operate at high capability; persona prompts often trigger sycophancy or verbose, clichéd outputs \('As an expert...'\). Specifying behavioral constraints and evaluation heuristics directly is far more effective than naming a role.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:31:13.439138+00:00— report_created — created