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

    Exercise answers

    • Answer: Build the Quillmoor environment and grade Claude Code on end state
    • Answer: Where action matching and state matching break
  • 2Building user simulators
  • 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 1

Stateful environments and end-state grading

Why multi-turn agents need an environment rather than tool stubs, and how to grade the world an agent leaves behind with gold-action replay, state hashes, targeted assertions and collateral-damage checks.

75 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvMCP servers in Claude Code

By the end of this lesson you can

  • Model an agent evaluation as agent, environment and policy, and say which state and rules each one owns
  • Derive a target end state by replaying a reference trajectory on a fresh environment, and compare end states by hash
  • Split a failed end state into missing changes and collateral damage with a cell-level diff against the initial state
  • Combine database, communication and assertion checks into a product reward, and explain why benchmarks rarely grade action sequences
  • Design an environment whose writes are deterministic and canonical enough to hash

On this page

  • From fixtures to a world
  • Agent, environment, policy
  • Grading the end state
  • Gold-action replay
  • What goes into the hash
  • Missing changes and collateral damage
  • Assertions and communication
  • The product reward
  • Why not grade the actions?
  • Worked example: one task, six trajectories
  • Running the agent under test
  • Misconceptions and limits
  • Where this goes next
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01From fixtures to a world
  2. 02Agent, environment, policy
  3. 03Grading the end state
  4. 04Worked example: one task, six trajectories
  5. 05Running the agent under test
  6. 06Misconceptions and limits
  7. 07Where this goes next
  8. 08Summary

Sources & further reading

  • τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World DomainsPaper · Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan · 2024The seminal stateful benchmark: domain policy, API tools over a database, a simulated user, and grading by comparing the final database with the annotated goal state. Section 3 has the design; section 5 the results.
  • AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding AgentsPaper · Harsh Trivedi et al. · Stony Brook University and Ai2 · 2024Nine simulated apps behind 457 APIs, graded by state-based unit tests that accept different solutions and check for collateral damage. The evaluation section is the model for the diff in this lesson.
  • SABER: Small Actions, Big Errors -- Safeguarding Mutating Steps in LLM AgentsPaper · Alejandro Cuadron, Pengfei Yu, Yang Liu, Arpit Gupta · 2025Shows that errors in state-changing steps decide most τ-bench failures, and releases τ-Bench Verified after finding that annotation errors and underspecified tasks capped scores. Read the analysis sections.
  • Establishing Best Practices for Building Rigorous Agentic BenchmarksPaper · Yuxuan Zhu et al. · 2025The Agentic Benchmark Checklist. Its abstract notes that TAU-bench counted empty responses as successful: the do-nothing problem you measure in the core exercise.
  • Demystifying evals for AI agentsLab research · Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares, Jiri De Jonghe · Anthropic · 2026Outcome as the state of the environment, grading what the agent produced rather than its path, and isolating each trial in a clean environment.
  • τ-bench docs: EvaluationDocs · SierraThe primary source for this lesson: reward_basis and the product rule, gold-action replay compared by hash, ENV_ASSERTION, NL_ASSERTION, COMMUNICATE and why ACTION is rarely used. Short; read all of it.
  • Claude Code docs: Run Claude Code programmaticallyDocs · Anthropicclaude -p, JSON output, --mcp-config, permission modes for unattended runs, and why bare mode can't use a subscription login.
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.

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