{"slug": "same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why", "title": "Same model, 29.9 points apart: build a tiny agent eval to see why", "summary": "A developer built a small Python simulator to demonstrate how agent harnesses, not just models, drive benchmark scores, citing a Hugging Face guide that found Terminal-Bench accuracy varied by up to 29.9 percentage points when the model was held fixed and only the harness changed. The toy eval models task difficulty, model skill and a harness bonus across 40 seeded tasks, showing that a single rollout is one sample rather than a stable result.", "body_md": "*An audit kept the model fixed, changed only the agent harness, and saw scores move by up to 29.9 points. Build a small Python eval that shows why.*\n\n*A note on how this was written: an AI writing assistant drafted it from the source listed at the end, and every claim was checked against that source before it went out.*\n\n**At a glance**\n\nIf two agents get different scores on the same benchmark, how much of that gap comes from the model? I used to assume most of it. Then I read a new guide from Hugging Face on building agentic evaluations, and one line stuck with me.\n\nIn an audit of Terminal-Bench, researchers kept the model fixed and changed only the agent harness, which is the software that wraps the model and its tools. Accuracy varied by up to 29.9 percentage points. The model was the same and only the wrapper was different. A gap that size could swap the order of a leaderboard.\n\nSo today I want to build one small thing: a toy agentic eval in Python that you can run in a notebook. It doesn't measure any real model. It's a simulator that shows two effects the guide points at. The harness moves the score, and a single run is one sample, not a fact.\n\nThe guide describes three eras of evaluation. Question and answer benchmarks like MMLU (2020) and GPQA (2023) check a response against a key. Agentic benchmarks like SWE-bench and WebArena check what an agent changed in an environment. Team and swarm benchmarks score what a group of agents produced. The guide focuses on the middle one, and so will I.\n\nHere are its parts in plain words. A task gives the agent its instruction. The agent harness wraps the model and its tools and lets it work inside a pinned environment. One rollout is one attempt at the task. A grader checks the result, and the scores across tasks become the number you see in a release post.\n\nThe guide's point is that once an agent uses tools, each part of that surrounding software can change the score. It also notes that research groups don't use the same words for these parts, and it ends with a glossary. I'll stick to task, harness, rollout and score.\n\nOne more thing I'd keep in mind: a benchmark score pools a lot together. That single number hides which tasks failed, how much a rerun would move it, and how much of it belongs to the wrapper and not the model.\n\nI start with a set of made-up tasks, each with a difficulty between 0 and 1. A fixed seed means you get the same tasks I do.\n\n``` python\nimport numpy as np\nimport pandas as pd\n\nrng = np.random.default_rng(7)\nn_tasks = 40\ntasks = pd.DataFrame({\n    'task': [f't{i:02d}' for i in range(n_tasks)],\n    'difficulty': rng.uniform(0, 1, n_tasks),\n})\nprint(tasks.head())\nprint('mean difficulty:', round(tasks['difficulty'].mean(), 3))\n```\n\nOutput:\n\n```\n  task  difficulty\n0  t00    0.625095\n1  t01    0.897214\n2  t02    0.775686\n3  t03    0.225207\n4  t04    0.300166\nmean difficulty: 0.471\n```\n\nThis prints the first few tasks and the average difficulty. Look at the spread. Some tasks are easy, and some are close to impossible for an agent of middling skill.\n\nNext comes a rollout. Each attempt passes or fails at random. The pass chance goes up with the model's skill plus a harness bonus and goes down with the task's difficulty.\n\n``` python\ndef rollout(skill, harness_bonus, difficulty, rng):\n    # chance the agent finishes each task in one attempt\n    logit = 6 * (skill + harness_bonus - difficulty)\n    p = 1 / (1 + np.exp(-logit))\n    return rng.random(len(difficulty)) < p\n\nd = tasks['difficulty'].to_numpy()\none_run = rollout(0.55, 0.0, d, rng)\nprint('tasks passed in one run:', one_run.sum(), 'of', n_tasks)\nprint('score:', round(one_run.mean() * 100, 1), '%')\ntasks passed in one run: 25 of 40\nscore: 62.5 %\n```\n\nThis is the kind of number a single benchmark run gives you. Remember it, because the next step runs the exact same setup again.\n\nNothing changes here except the dice. The model skill, the harness and the tasks all stay the same. Only the random draws differ from run to run.\n\n``` python\ndef scores(skill, harness_bonus, runs, rng):\n    d = tasks['difficulty'].to_numpy()\n    return np.array([rollout(skill, harness_bonus, d, rng).mean() * 100\n                     for _ in range(runs)])\n\nsame = scores(0.55, 0.0, runs=20, rng=rng)\nprint('20 runs, same model, same harness')\nprint('lowest:', same.min(), 'highest:', same.max())\nprint('mean:', round(same.mean(), 1), 'sd:', round(same.std(ddof=1), 1))\n20 runs, same model, same harness\nlowest: 45.0 highest: 67.5\nmean: 57.6 sd: 6.1\n```\n\nLook at the gap between the lowest and highest run. That gap is pure noise, since nothing about the model or the harness moved. If a release post compares two models on one run each, a difference smaller than this range tells you very little.\n\nThis is the part I check first in any comparison now. One run per option is one sample each. Before I read a gap as real, I want repeated runs or a stated spread for a single run.\n\nNow for the Terminal-Bench idea. The model's skill stays the same as in step 2. I try three harnesses: a bare one that hurts a little, a default one, and a tuned one with better tools and prompts. In the simulator, each one just has a different bonus.\n\n```\nharnesses = {'bare': -0.10, 'default': 0.0, 'tuned': 0.12}\nrows = []\nfor name, bonus in harnesses.items():\n    s = scores(0.55, bonus, runs=20, rng=rng)\n    rows.append({'harness': name, 'mean': s.mean(), 'sd': s.std(ddof=1)})\ntable = pd.DataFrame(rows).round(1)\nprint(table)\ngap = table['mean'].max() - table['mean'].min()\nprint('gap, tuned minus bare:', round(gap, 1), 'points')\nharness  mean   sd\n0     bare  49.5  6.2\n1  default  56.2  5.5\n2    tuned  66.2  5.1\ngap, tuned minus bare: 16.7 points\n```\n\nCompare the gap between harnesses with the spread you saw in step 2. The bonuses are values I made up, so the size of this gap says nothing about any real system. What matters is the shape: the wrapper alone can move the mean by more than the noise does.\n\nThe guide's audit found the real version of this. My toy only shows why it can happen. Anything that changes the agent's chance of finishing a task (tool access, retries, prompts, time limits) ends up in the score, and the score carries the model's name.\n\nThis is where the problem shows. Model A is stronger and model B is weaker (see the skill values in the code). Suppose A was tested in the bare harness and B in the tuned one, and both numbers land in the same table.\n\n```\na_bare  = scores(0.60, harnesses['bare'],  runs=20, rng=rng)\nb_tuned = scores(0.55, harnesses['tuned'], runs=20, rng=rng)\na_tuned = scores(0.60, harnesses['tuned'], runs=20, rng=rng)\nprint('model A (stronger) in bare harness: ', round(a_bare.mean(), 1))\nprint('model B (weaker) in tuned harness:  ', round(b_tuned.mean(), 1))\nprint('model A in tuned harness:           ', round(a_tuned.mean(), 1))\nmodel A (stronger) in bare harness:  52.9\nmodel B (weaker) in tuned harness:   69.6\nmodel A in tuned harness:            70.6\n```\n\nLook at which of the first two lines is higher, then compare B with the third line. The fair comparison puts A and B in the same harness. Mixing harnesses can make the weaker model look better.\n\nThe last block asks a different question. Even with the same harness, how often does a single run of each pick the wrong model?\n\n```\nflips, trials = 0, 200\nfor _ in range(trials):\n    a = scores(0.60, 0.0, runs=1, rng=rng)[0]\n    b = scores(0.55, 0.0, runs=1, rng=rng)[0]\n    flips += b >= a\nprint('single-run comparisons where weaker B tied or beat A:', flips, 'of', trials)\nprint('share:', round(flips / trials, 2))\nsingle-run comparisons where weaker B tied or beat A: 68 of 200\nshare: 0.34\n```\n\nThe printed share is how often a one-run head to head gets the order wrong in this toy setup. If it isn't close to zero, one run each is not enough to pick a winner.\n\nMake one change to the last block. In both lines, replace `runs=1` with `runs=5` and replace `[0]` with `.mean()`. Each side is now the average of several runs instead of one.\n\nRun the block again and compare the new share with the old one. It should drop, because averaging pulls each score toward its true mean. If it barely moves, raise the number of runs and watch where the share levels off.\n\nThen try the same three questions on a real eval you care about. Did every model in the table use the same harness? How many rollouts went into each number? Is the gap bigger than what a rerun of the same setup would give?\n\nMy simulator treats every task as independent and the harness as a flat bonus. A real harness probably helps on some tasks and hurts on others, and real tasks can contain errors. The guide has a whole section on this. It says errors in tasks and graders are common and looks at how they get found and fixed. My toy grader is always right, and no real grader is.\n\nThe guide also argues for sharing how an evaluation was built, including what went wrong, so others can find mistakes and reuse the work. It says Hugging Face hosts around 3500 eval leaderboards and saw about a 16X growth in eval datasets on the hub in the past year, to about 17000. More evals is good. More evals that write down the harness and the run count is better.\n\nWhere I've landed: when I read an agent benchmark now, I treat the harness as part of the result and a single run as a single sample.\n\nWhen you compared two agents on your own tasks, how many runs did it take before the order stopped flipping?", "url": "https://wpnews.pro/news/same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why", "canonical_source": "https://dev.to/kestrelfield/same-model-299-points-apart-build-a-tiny-agent-eval-to-see-why-j2d", "published_at": "2026-11-27 15:40:33+00:00", "updated_at": "2026-11-27 15:45:33.242423+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models", "ai-research"], "entities": ["Hugging Face", "Terminal-Bench", "SWE-bench", "WebArena", "MMLU", "GPQA"], "also_reported_by": [], "takeaway": "In a Terminal-Bench audit, holding the model fixed and changing only the agent harness moved accuracy by up to 29.9 percentage points, so benchmark scores should be attributed to the harness-model pair, not the model alone.", "recommendation": {"advice": "Report the harness version alongside any agent benchmark score and rerun with multiple seeds, since a single rollout is one sample and harness changes alone can shift accuracy by up to 29.9 points.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why", "markdown": "https://wpnews.pro/news/same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why.md", "text": "https://wpnews.pro/news/same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why.txt", "jsonld": "https://wpnews.pro/news/same-model-29-9-points-apart-build-a-tiny-agent-eval-to-see-why.jsonld"}}