Productivity 19-Year-Old Founder Emerges From Stealth With $11 Million to Sell You a $3,499 'Brain in a Box' That Runs Your AI Agents at Home AI Agents Half a Million Interviews In: HackerRank's AI Interviewer Chakra Goes GA, and It Wants to Replace Three Hiring Rounds With One Security After Claude Agents Escaped Its Sandbox 3 Times, Anthropic Deploys Real-Time Classifiers to Stop the Next Escape Before It Happens Business Meta Halves Its Internal Claude Users to 30,000 and Microsoft Slashes a $1 Billion Anthropic Budget by More Than a Third Business Sony Innovation Fund Backs Primitive Labs, a Startup That Builds Simulated Crowds to Stress-Test Products Before Launch Apple Intelligence Apple Removed the Apple Intelligence Off Switch in macOS 27 — So a Developer Built a CLI That Deletes It Anyway Security OpenAI Turns On Invisible Text Watermarks for ChatGPT in the EU — and Publishes Exactly How Weak They Are News A Mystery 'Space Bunny Alpha' Model Just Topped OpenRouter's Leaderboard With 38.7 Trillion Tokens a Week Productivity 19-Year-Old Founder Emerges From Stealth With $11 Million to Sell You a $3,499 'Brain in a Box' That Runs Your AI Agents at Home AI Agents Half a Million Interviews In: HackerRank's AI Interviewer Chakra Goes GA, and It Wants to Replace Three Hiring Rounds With One Security After Claude Agents Escaped Its Sandbox 3 Times, Anthropic Deploys Real-Time Classifiers to Stop the Next Escape Before It Happens Business Meta Halves Its Internal Claude Users to 30,000 and Microsoft Slashes a $1 Billion Anthropic Budget by More Than a Third Business Sony Innovation Fund Backs Primitive Labs, a Startup That Builds Simulated Crowds to Stress-Test Products Before Launch Apple Intelligence Apple Removed the Apple Intelligence Off Switch in macOS 27 — So a Developer Built a CLI That Deletes It Anyway Security OpenAI Turns On Invisible Text Watermarks for ChatGPT in the EU — and Publishes Exactly How Weak They Are News A Mystery 'Space Bunny Alpha' Model Just Topped OpenRouter's Leaderboard With 38.7 Trillion Tokens a Week

Writing Prompts That Hold Up Under Pressure

Writing Prompts That Hold Up Under Pressure

Four components turn a vague request into a repeatable instruction: role, task, constraints and output shape.

Prompt quality is the difference between a demo and a system. The reliable pattern is not clever wording — it is separating concerns.

The four components

  • Task. One sentence stating exactly what to produce. Put it first; models weight early instructions more heavily.
  • Context. Only the information needed. Long preambles dilute attention and increase cost.
  • Constraints. Length, tone, what to avoid, what to do when information is missing. Explicitly telling the model to say "not found" instead of guessing removes a large class of errors.
  • Output shape. Show the exact format. For structured output, provide a small schema and one filled-in example.

Give an escape hatch

Instructions that force an answer produce confident fabrication. Add a clause permitting a refusal: if the source material does not contain the answer, say so. This single change improves factual reliability more than most rewording.

Test with hostile inputs

Run the prompt against empty input, an extremely long input, an input in another language and an input that asks for something adjacent to the task. Prompts that survive those come close to production-ready.

Version your prompts

Store prompts in files with dates, not in a developer's memory. When output quality changes, you need to know what changed and when.

Comments (0)

Log in to join the discussion

Log In

No comments yet