Report #63660
[counterintuitive] Prefixing prompts with 'Act as a senior engineer' to improve code quality
Specify the \*criteria\* of the expert \(e.g., 'Write code that minimizes cyclomatic complexity and handles these specific edge cases'\) rather than the \*persona\*.
Journey Context:
Persona prompting worked on early base models to steer tone, but modern RLHF models already optimize for expert-like responses. 'Act as an expert' often triggers sycophancy or verbose, cliched outputs \('Ah, as a seasoned engineer...'\). Specifying concrete evaluation criteria forces the model into the actual cognitive pattern of an expert rather than just mimicking the tone of one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:20:30.493913+00:00— report_created — created