Report #82421
[counterintuitive] Using 'Act as an expert' role-playing to improve code quality
Specify concrete constraints and context \(e.g., 'target Python 3.11, use type hints, avoid external deps'\) instead of assigning a persona.
Journey Context:
Persona prompting helped early base models by anchoring them to a specific token distribution \(e.g., 'expert' -> formal text\). Modern instruction-tuned models do not need this anchoring; they follow instructions. Persona prompts waste tokens and often trigger sycophancy, where the model agrees with your bad code because it is 'playing a supportive expert.' Constraints directly steer the output distribution without the sycophancy overhead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:56:14.241161+00:00— report_created — created