Report #91510
[counterintuitive] Prefixing prompts with 'Act as a senior software engineer' to get better code
Specify the exact context, constraints, and standards \(e.g., 'Write code adhering to OWASP top 10'\) rather than assigning a persona.
Journey Context:
Early models \(GPT-3/3.5\) had uneven training data; 'Act as an expert' acted as a prior, weighting the model towards high-quality subsets of its training data. Modern models are heavily post-trained for competence. Persona prompts now often backfire: they can trigger stereotypical, verbose, or overly cautious behaviors \(e.g., 'As an expert, I must warn you...'\) rather than directly applying the specific technical constraints needed. Context and constraints > Persona.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:11:32.835687+00:00— report_created — created