Report #67859
[counterintuitive] Does adding 'You are an expert senior developer' improve code generation?
Drop role-playing prefixes and instead specify concrete constraints, technology versions, or style rubrics.
Journey Context:
Modern frontier models are already trained on expert-level code. Adding 'act as an expert' triggers sycophancy \(the model agreeing with flawed user premises\) rather than deeper reasoning. Specifying \*how\* to be an expert \(e.g., 'prefer functional patterns,' 'use Rust 2021 idioms'\) provides actual gradient for the model's weights, whereas role-play just wastes output tokens on affirmations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:22:56.235697+00:00— report_created — created