Report #84539
[counterintuitive] Using 'Act as a senior developer' or 'You are an expert' to improve code quality
Specify the concrete criteria of expert work \(e.g., 'ensure O\(n\) time complexity', 'adhere to SOLID principles', 'write tests covering edge cases'\) rather than adopting a persona.
Journey Context:
Early LLMs responded to persona framing by adjusting tone and vocabulary, which marginally improved output. Modern frontier models already operate near their peak capability by default; 'act as an expert' just adds token overhead and often triggers sycophancy—making the model sound confident while writing poor code—or causes it to write overly complex 'expert-sounding' architectures when a simple script suffices. Specifying concrete constraints and evaluation criteria directly shapes the output distribution and prevents sycophantic alignment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:29:09.274540+00:00— report_created — created