Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Agent Benchmarks and Simulations

Free · sign in to start and track progress

1 · Simulated worlds

  • 1Stateful environments and end-state grading
  • 2Building user simulators

    Exercise answers

    • Answer: Simulate customers against Claude Code
    • Answer: Measure the cost of difficult customers
  • 3Validating user simulators

2 · Running benchmarks

  • 4Task specs, harnesses and sandboxes
  • 5Noise, reproducibility and eval infrastructure

3 · Benchmarks you can trust

  • 6Contamination, saturation and broken tasks
  • 7Auditing benchmarks for exploits
  • 8Item analysis, difficulty and time horizons
  • 9Reporting results and reading model cards
CapstoneA benchmark for the account-support agent you'd defendReference implementation

Module 1 · Simulated worlds · Lesson 2

Building user simulators

Design the second model in the loop, a simulated user with a persona, a hidden goal, limited knowledge and a stop rule, and drive it turn by turn against a headless agent, including dual-control tasks and deliberately difficult users.

75 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvMCP servers in Claude CodeGet an OpenRouter keyOpenRouter or a local model?Local models with Ollama

By the end of this lesson you can

  • Write a simulator prompt that separates what the user wants, knows and will reveal, with an explicit stop token
  • Implement a conversation driver that alternates simulator and agent turns with session resumption and a turn budget
  • Give the simulated user its own tools for dual-control tasks, and explain why dual control lowers agent success
  • Add non-collaborative behaviours while holding the goal fixed, and measure their effect on pass^k
  • Estimate the model-call budget of a simulated benchmark and decide where each model should run

On this page

  • A user with a script and a secret
  • Anatomy of a scenario card
  • The conversation driver
  • Dual control: when the customer has to act
  • Customers who don't cooperate
  • Worked example: what a simulated suite costs and says
  • Misconceptions and limits
  • Where this goes next
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01A user with a script and a secret
  2. 02Anatomy of a scenario card
  3. 03The conversation driver
  4. 04Dual control: when the customer has to act
  5. 05Customers who don't cooperate
  6. 06Worked example: what a simulated suite costs and says
  7. 07Misconceptions and limits
  8. 08Where this goes next
  9. 09Summary

Sources & further reading

  • τ²-Bench: Evaluating Conversational Agents in a Dual-Control EnvironmentPaper · Victor Barres, Honghua Dong, Soham Ray, Xujie Si, Karthik Narasimhan · 2025Dual control modelled as a Dec-POMDP, a user simulator constrained by its own tools and observable state, and the drop from no-user to dual-control. Read the introduction and the user-simulator and ablation sections.
  • τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World DomainsPaper · Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan · 2024The design this lesson follows: a language-model user with a hidden instruction, talking to an agent with tools and a policy, graded on the end state.
  • Non-Collaborative User Simulators for Tool AgentsPaper · Jeonghoon Shim, Woojung Song, Cheyon Jin, Seungwon KooK, Yohan Jo · 2025Four non-collaborative behaviours (unavailable services, digressions, impatience, incomplete utterances) that still supply every fact the task needs, tested on MultiWOZ and τ-bench. The behaviour definitions are the useful part.
  • LLMs Get Lost In Multi-Turn ConversationPaper · Philippe Laban, Hiroaki Hayashi, Yingbo Zhou, Jennifer Neville · 2025Over 200,000 simulated conversations: a 39% average drop from single-turn to multi-turn, mostly from unreliability rather than lost capability. The case for testing agents in conversation at all.
  • User Simulation in the Era of Generative AI: User Modeling, Synthetic Data Generation, and System EvaluationPaper · Krisztian Balog, ChengXiang Zhai · 2025A survey that frames user simulation as its own discipline, with evaluation as one of its uses. Good for vocabulary and for the older work this builds on.
  • τ-bench source: user simulator guidelinesDocs · SierraThe simulator prompts τ-bench actually uses, with and without user tools: progressive disclosure, no invented facts, no premature endings, and the ###STOP###, ###TRANSFER### and ###OUT-OF-SCOPE### tokens. Compare them with your own card.
  • Claude Code docs: Run Claude Code programmaticallyDocs · AnthropicContinuing a conversation with --resume and a captured session_id, and how JSON output reports cost across resumed turns.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks