Skip to content
PKResources
Tools

Agent Builder Quest: 10 missions to master AI agent design

Ten gamified missions, one agent design pattern each: from a single tool-calling agent to an evaluated, observable production agent. Earn XP, climb the ranks.

by Patrick Kamtchueng Kom · Published

Every good agent is a pattern you picked on purpose. This quest gives you ten of them, one small real project each, from a single tool call to a fully observable production agent.

Autonomy →Complexity →1Tool calling2Router3Planner-executor4Reflection5RAG + citations6Memory7Human-in-the-loop8Multi-agent handoff9Agent as a tool10Boss: evals + tracing
The pattern map: each mission adds autonomy, complexity, or both. The boss sits top right.

Missions unlock in order. Tick one off, earn XP, climb a rank; your progress stays in this browser.

🏆 Agent Builder Quest

Prompt Apprentice

0 / 1650 XP

Mission 1 · Pattern: Single tool-calling agent · +50 XP

🕒 Meeting-time finder

A chat agent that finds a meeting slot for people in different cities using three tiny tools. You learn the core loop: the model picks a tool, your code runs it, the result goes back until the model answers.

Tool schemasThe agent loopStop conditions

What you build

  1. Write three pure functions: city_to_timezone(city), convert_time(time, from_tz, to_tz), working_hours_overlap(zones).
  2. Describe each one as a tool with a clear name, description and typed parameters.
  3. Run the loop: send messages plus tools, execute any tool call, append the result, repeat.
  4. Stop on a final text answer or after a max of 6 steps, whichever comes first.
  5. Print every tool call and result so you can read the trajectory.

👾 Boss level: Return tool errors as readable messages (unknown city, ambiguous name) and check that the model recovers by asking the user instead of guessing.

Starter prompt

Build a command-line meeting-time finder agent in [LANGUAGE] using [LLM PROVIDER WITH TOOL CALLING]. Tools: city_to_timezone(city), convert_time(time, from_tz, to_tz), working_hours_overlap(zones, start_hour, end_hour). Implement the agent loop by hand: call the model with the tools, run requested tools, append results, repeat until a final answer or [MAX STEPS] steps. Log each step. Tool errors must be returned to the model as clear messages, never thrown.

Patterns are tools, not trophies. Flip each card to see when it earns its place.

🃏 Pattern cheat sheet

Tap a card to flip it

Now your turn to pick. Start simple: reach for more structure only when the scenario asks for it.

🎮 Which pattern fits?

1 / 8 · Score: 0

Classify each scenario by the simplest pattern that handles it well.

Last checkpoint before you start Mission 1.

🧠 Agent design check

Score: 0 / 4

  1. 1. Your reflection loop keeps rewriting the same draft without improving it. What is the most likely fix?

  2. 2. Where should the 'needs approval' rule for a delete action live?

  3. 3. When is a multi-agent setup worth its extra complexity?

  4. 4. Why check the trajectory and not only the final answer in agent evals?