Skip to content
mentoor

Writing agent system prompts

For engineers

Instructions for agents that run many turns: heuristics at the right altitude, tool guidance, eagerness, final reports and testing changes

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

A system prompt lists 40 if-then rules, and the agent stalls on a case none of them covers. What is the most likely cause?

Choose one answer

Check yourself · 2 of 5

An agent has two search tools with similar descriptions and picks between them at random. What helps most?

Choose one answer

Check yourself · 3 of 5

Which action should an agent normally do without asking?

Choose one answer

Check yourself · 4 of 5

Which line in a final report is the most useful for a reviewer?

Choose one answer

Check yourself · 5 of 5

You changed a system prompt to fix one failing task. What should you do before shipping it?

Choose one answer

Topics

  1. Instructions at the right altitude4 min read · Between brittle if-else rules and vague goals: heuristics and principles an agent can apply to cases nobody listed
  2. Guiding tool choice in the system prompt5 min read · When to use which tool, parallel calls, looking before acting, and the actions that are never allowed
  3. Setting how eagerly an agent acts4 min read · Telling an agent when to act and when to ask, how far to go, and how much to explore before answering
  4. Final reports and output contracts4 min read · What the agent returns at the end: format, evidence of checks, what was not done and an honest status
  5. Testing agent prompt changes on a task set5 min read · Running the same tasks before and after a prompt change and reading transcripts for regressions

Start here

110 questions · last verified 2026-12