Report #74490
[counterintuitive] Prefixing prompts with 'Act as a senior developer' or 'You are an expert' to improve code quality
Define exact constraints, tech stacks, and evaluation criteria instead of relying on persona adjectives.
Journey Context:
Persona prompting helped align base models by anchoring the output distribution. In modern RLHF-tuned models, 'Act as an expert' often triggers sycophancy—the model agrees with flawed user premises more readily to maintain the 'helpful expert' persona. It also adds no concrete information to the context window. Modern models respond better to explicit system prompts defining exact constraints \(e.g., 'Use Python 3.12, avoid global state, prefer composition over inheritance'\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:37:49.051833+00:00— report_created — created