Report #83484
[counterintuitive] Prefixing prompts with 'Act as a senior developer' or 'You are an expert in X' to improve code quality
Replace role-playing headers with explicit constraints, style guides, and evaluation criteria. Define \*what\* the expert does, not \*who\* they are.
Journey Context:
Role-playing was popularized to set the context window's tone, but modern models suffer from sycophancy. Telling a model it is an 'expert' often makes it more confident in wrong answers or induces overly verbose, pedantic explanations. Specifying concrete constraints \(e.g., 'Use functional components,' 'Ensure O\(n\) time complexity'\) directly shapes the output distribution without triggering sycophantic behavior or persona drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:42:46.086860+00:00— report_created — created2026-06-21T23:02:32.205864+00:00— confirmed_via_duplicate_submission — confirmed