08. Case Study: Berkeley's Green Agent and White Agent Project#
Level: Practitioner · Reading time: 15 min · Exercise: 30 min Prerequisites: Evaluating Agents: Trajectories and Environments
In one sentence: After this chapter you can describe Berkeley's Fall 2025 course project as its lecturers defined it: a green agent that hosts an evaluation, a white agent that attempts the tasks, and a grading scheme that rewards testing the evaluator itself.
Why this matters#
Everything in this part is practice for one role: the team that builds the evaluator. Berkeley's Agentic AI course makes that role the first half of its project. Students do not build an agent first. They build the thing that will judge agents.
The project is a compact specification of what an evaluator must do. This chapter is the reference for it.
The project in one paragraph#
The course is CS 294/194-196, Agentic AI, Fall 2025, taught by Dawn Song. In the lecture of October 6, 2025, the course staff introduced Phase 1 of the project: building a green agent. Their analogy: math exams are written by math teachers, and physics exams by physics teachers (64:00). Each subject has its own examiners. Each evaluation should have its own hosting agent.
| Term | Meaning in the course |
|---|---|
| Green agent | The hosting agent. It defines the assessment, prepares the environment, hands out tasks, and reports the metrics. |
| White agent | A participant agent: the one being tested. The lecture also calls it the competition agent. |
| AgentBeats | The platform that hosts assessments, where green agents and white agents meet. |
| A2A | The Agent2Agent protocol, an open convention for agents to exchange tasks and messages over the network. |
| MCP | The Model Context Protocol, an open convention through which a server exposes tools to a model. |
The colors have a history, which the lecture gives. In early work on safety benchmarks the team used red-team and blue-team setups, attackers against defenders. To name the judges and the other participants it introduced more colors, green and gray. Green agent stayed as the name of the host, and all the others were folded into white agents (slide 66).
One point of precision. In this lecture the white agent is the agent under test. It is not an attacker, and it is not a monitor. The only link to adversarial testing is the naming history.
What the green agent must do#
The lecture lists five responsibilities (66:00):
- Prepare the environment.
- Distribute the test tasks to the participant agents.
- Collect their results.
- Verify the environment.
- Report back to the platform.
The lecturer's image is the technician at a repair shop, who runs the whole evaluation. The green agent also designs and implements the metrics. It talks to the platform through MCP, A2A or plain APIs, can request permissions and resources, and submits results at the end (68:00).
An assessment runs in four steps (68:00):
- The platform checks that every agent taking part, the green agent included, is online and has been reset.
- It hands the green agent a task together with the addresses of the white agents to be assessed.
- The green agent runs the session: it hands out the tasks, watches what happens, supplies tools and environments, and keeps the platform informed.
- The green agent sends back the scores, computed the way its own implementation defines them.
Figure 1. One assessment: the platform starts it, the green agent runs it, and only the white agent is being tested.
sequenceDiagram
participant P as Platform
participant G as Green agent
participant W as White agent
P->>G: Confirm that every agent is online and reset
P->>G: Task and the addresses of the white agents
G->>W: Test task
W-->>G: Result
G->>P: Progress updates
G-->>P: Scores
The green agent is the hub: it receives from the platform, hands tasks to the white agents and reports back.
A green agent is built from three parts (72:00):
- A dataset of test tasks.
- A predefined testing process: the order in which agents are tried and tasks go out, and how tools are supplied.
- The environment where tasks run: extra tools or MCP modules, and instructions that tell white agents how to use them.
AgentBeats offers a prompt-based toolkit for a quick prototype. Stricter workflows and custom environments are hand-coded. The staff expected students taking two or more units to hand-code their green agents. Any web service that complies with A2A can serve as one.
What the white agent must do#
The white agent receives tasks over A2A and attempts them with the tools and environment the green agent provides. Students build white agents in Phase 2, after the green agent is finished. In the course's worked example, which integrates τ-bench, the white agent is prompt-based and built with Google's Agent Development Kit.
Two kinds of project#
| Type 1: integrate an existing benchmark | Type 2: build a new benchmark | |
|---|---|---|
| Goal | Adapt a published benchmark into a green agent on AgentBeats | Create a benchmark where none exists |
| Examples named | SWE-bench Verified, Terminal-Bench | Organizing a calendar, scheduling meetings, managing to-dos |
| Metrics | Reuse the benchmark's own | Design them; automatic checks or light human checks |
| Scope for one unit | Often a prompt-based agent from the toolkit | Prompt design and simple data generation |
| Scope for more units | Mostly hand-coded (72:00) | Also evaluation rubrics and multi-round setups |
| Distinctive demand | A quality analysis of the original benchmark | Realistic tasks that need reasoning; multi-agent tasks encouraged |
Type 1 has three steps (74:00):
- Integration. Convert the problem format to A2A, implement dataset loaders and interfaces, and add quality checks for correctness and reproducibility.
- Benchmark quality analysis. Sample tasks and check correctness, clarity and difficulty by hand. Confirm that the metrics and judges match real task success. Write down biases and limitations (76:00).
- Correction and expansion. Fix errors you found, and extend the benchmark where its coverage is thin (78:00).
The lecture's proof that step 2 matters is SWE-bench Verified, described in the first chapter: most of the original tasks were filtered out on review, and the cleaned set gave a different picture of model ability (78:00).
Type 2 asks for useful, realistic daily tasks that showcase reasoning. Students were encouraged to build multi-agent benchmarks, for instance one agent that proposes solutions and another that analyzes them (84:00).
How submissions are scored#
The project rubric has two variants. Several criteria are shared.
| Criterion | New benchmark | Existing benchmark |
|---|---|---|
| Goal and novelty | Important, novel, covers new capability space | |
| Analysis | Find the original benchmark's quality issues | |
| Faithfulness | Reproduce the original results, apart from the flaws fixed | |
| Correction and expansion | Fix flaws and extend coverage | |
| Scope and scale | Large and diverse enough for reliable results | |
| Evaluator quality | Metrics clear, judge consistent | Same |
| Validation | Manual spot checks of the green agent's outputs | Same |
| Reliability | Scripts and green agent run robustly on AgentBeats | Same |
| Bias and contamination checks | Included | Included |
| Realism | Real-world workload, not a toy setting | |
| Impact | Reusable, well documented, clearly presented | Same |
The lecturer's summary of the difference: for a new benchmark the staff care about goal and novelty. For an existing one they care about faithfulness, meaning that the implementation reproduces the original results apart from the flaws you fixed (92:00).
The course page gives the weights for the course grade, as published for Fall 2025:
| 1 unit | 2 units | 3 or 4 units | |
|---|---|---|---|
| Participation | 40% | 30% | 20% |
| Quizzes | 20% | 10% | 10% |
| Article | 40% | ||
| Project, Phase 1 (green agent) | 45% | 50% | |
| Project, Phase 2 (white agent) | 15% | 20% |
Phase 1 splits into a proposal (5%), an early demo with a milestone report (10%), and the final green agent submission (30% for two units, 35% for more). Phase 2 splits into the white agent implementation (10% or 15%) and a report of one to two pages (5%). Students taking one unit could replace the article with Phase 1, with minimal coding. Participation in the AgentX-AgentBeats competition earned a bonus.
The timeline ran as follows: proposal released September 27 and due October 8; demo and short report October 7 to October 20; final green agent submission, with documentation and a recording, November 7 to December 17; white agent submission, with its report, November 24 to December 17.
What makes it hard#
The lecture's last slides cover the course's own τ-bench integration, shown around 92:00. The lecturer did not walk through them. The checklist was too concrete for the time left, he said, and the platform's creator would give a live example instead (84:00). The slides still show where the difficulty sits.
The interface has to serve two masters. A human should be able to solve the task when it is presented the same way. The procedure should also be as agent-friendly as possible. The staff's examples: give a browsing agent a URL rather than raw actions; give a coding agent an environment rather than only a repository.
Tools do not travel well across agents. In the original benchmark, tools are handed straight to the model's completion interface. Over a standardized agent protocol, the lecture lists three options, none clean:
- Build special white agents that have tool access.
- Explain the tools to any white agent and ask it for tool names and arguments. This is less standardized and cannot use the agent's own tool-calling mechanism.
- Provide an MCP server and require the agent to discover it at run time.
The evaluator loses sight of the calls. The tool trace is not directly visible to the green agent, so the scoring has to be migrated.
The last stretch is packaging. Once the kickoff script, the green agent and the white agent exist, the slide reads "90% DONE". The rest makes the work reproducible on the platform: obtain the remote agent URL or MCP server URL, access the model API, report results and add traces, and package the repository for hosting.
The evaluator has to be tested too. The lecture's four-step checklist for building a green agent ends with test cases for the green agent itself (88:00): white agents that succeed and fail in different ways, each with the verdict you expect, with as many edge cases as possible. For a ticket-booking agent: one agent books the ticket, one books a ticket that is too expensive, one never finds the booking site.
This chapter's reading of all that: the hard part is not the tasks. It is that the evaluator must be standardized, must be validated against known outcomes, and must define its own metrics, all at once.
Pitfalls#
- Building the agent first. Fix: build the evaluator, then the agent.
- Reusing a benchmark without checking it. Fix: the three Type 1 steps, including the quality analysis.
- No verdicts for the evaluator. Fix: test cases with known outcomes, including edge cases.
- Metrics designed last. The checklist puts them third of four. Fix: write them down right after the environment.
- Stopping at the demo. Fix: packaging and traces before the deadline.
- A toy environment for a new benchmark. Fix: realistic daily tasks.
Try it#
Deliverable: a miniature green agent, with three fake white agents.
- Use the harness as your green agent, with ten tasks of your own.
- Write three scripted white agents, each a class with a
complete(prompt, seed)method likeStubModel: one that succeeds, one that reaches the right outcome by a forbidden route, and one that fails. - Write the verdict you expect for each, then run them.
You are done when your evaluator returns the expected verdict for all three, including the forbidden-route case, and you have written one paragraph on a fourth white agent that you expect to fool it.
Stretch goal: wrap the evaluator behind a small HTTP service that accepts a white agent's answers, so that the white agent can live in another process.
Key takeaways#
- The green agent hosts the evaluation. It prepares the environment, hands out tasks, verifies, and reports metrics that it defines itself.
- The white agent is the participant under test. Students build it second.
- There are two project types: integrate an existing benchmark, with a quality analysis, or build a new one, with rubrics and realistic tasks.
- The rubric rewards the evaluator's quality, validation, reliability, and bias checks, in both types.
- The hard parts are standardizing tool access, migrating scoring, packaging, and testing the evaluator with known verdicts.
Self-check#
- In the course project, what is the green agent? A. The agent that is being tested on the benchmark B. The sponsor of the AgentBeats competition C. The hosting agent that defines tasks and reports the metrics D. The model that plays the customer in a simulation
- What does the platform send to the green agent to start an assessment? A. A task and the URLs of the participant agents B. The model weights of every agent C. The course grading rubric D. A dataset of simulated users
- Which criterion is specific to teams that integrate an existing benchmark? A. Goal and novelty: opening a new capability space B. Realism: tasks drawn from a real-world workload C. Scope and scale: enough tasks for reliable results D. Faithfulness: reproducing the original results apart from fixed flaws
- In the τ-bench example, what makes it hard to move tools behind a standardized agent protocol? A. The tools become much slower over the network B. The original code hands tools straight to the model, and the tool trace is not visible to the green agent C. The benchmark has too few tasks D. The user simulator has to be removed
- What does the fourth step of the checklist ask for? A. Choose the task that the green agent will assess B. Design the environment with its tools and feedback C. Design the metrics for the task, early D. Design test cases with known verdicts, to test the green agent itself
- For students taking two units, how much of the course grade is the final green agent submission? A. 5% B. 10% C. 30% D. 60%
Show answers
1. C. The white agent is the participant. 2. A. The platform first checks that all agents are online and reset. 3. D. Goal and novelty belong to the new-benchmark track. 4. B. The lecture lists three ways to expose tools across agents and names the lost tool trace as the second challenge. 5. D. The evaluator needs tests with known outcomes, including edge cases. 6. C. The project is 60% for two units: 45% for Phase 1 and 15% for Phase 2.Sources#
- Lecture: Berkeley course staff, "LLM Agent Evaluations & Project Overview", UC Berkeley Agentic AI MOOC, Fall 2025: video · guide, used at green and white agents, the two project types, the checklist, the grading rubric.
- Reading: UC Berkeley, "CS294/194-196: Agentic AI, Fall 2025", course page: syllabus, grading and project timeline.
Next#
Evaluation never stands alone. Continue with planning for operations to see where monitoring and rollback sit in a production plan, or start the capstones in part 11, which build on this case study.