Prompting · 2026-11-03

Your prompt is just “write code.” What improves it the most?

  1. AAdd the word “please”
  2. BAdd a role, the context, and the expected format/constraints
  3. CMake it much longer
  4. DWrite it in ALL CAPS

Answer: B

Add a role, the context, and the expected format/constraints

Why

Specificity wins: who the model is, the context, and exactly what output you want (format + constraints). Length or politeness alone don’t.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path