Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Write a task an agent can finish

What this lesson is about

Name the finished result, the limits, and the point at which it should come back and ask you.

A coaching centre asks you to set an agent on its admissions work this week. What do you write down first?

Why this matters

Most first runs fail on the task, not on the agent. Anthropic's own engineering note says to include stopping conditions. One is a limit on how many times the loop may run. A task with no finished shape has no reason to end and no way to be checked.

Lesson 2 of 9 on Running and checking AI agentsnextWatch one run from end to endPart 1 ends in a work sample you can send

Read the primary or official source: Anthropic · Building effective agents