About this video
AI harness explained: my coding agent said DONE while its code crashed on every test.
Same model, a different harness, and it fixed the bug itself.
The test: Qwen3.5 4B, 16 coding tasks, three harnesses: pasted into a chat with the rules: 11/16. An agent loop that reads files: 11/16. The same loop that can run the tests: 14/16, at about 9x the chat's tokens (1.3k vs 12.3k a task). Half the model (Qwen3.5 2B): 8, 9, 9.
A harness is everything around the model: its tools, the loop, what it reads and the checks before it may say done. Published numbers show the same: on SWE-bench Pro, Claude Opus 4.5 scored 45.9% under the SEAL scaffold and 55.4% in Claude Code; on Terminal-Bench 2.0, Gemini 3.1 Pro scored 59.4% in Gemini CLI and 80.2% in TongAgents. The model still matters too: newer models score higher in the same harness.
Episode 18 of Learn AI in Under 3 Minutes, level 3: AI agents.
Measured on an M1 MacBook Air (16 GB): Qwen3.5 4B and 2B (4-bit, llama.cpp, thinking off, greedy). A made-up Zephyra Air bag-desk repo: 16 empty Python functions and a rules file with made-up numbers. Chat: the rules pasted in, one reply. Agent: list/read files and write a function, up to 16 model calls. Agent + tests: the same plus run_tests on 2 visible tests per function, and the harness runs those tests before it lets the model stop. A task counts only if the function passes all its tests, visible and hidden (123 in all), run in a sandbox. Without tests the 4B agent said DONE on 5 tasks that failed; with tests, all 16 passed their visible tests and 2 failed hidden ones. One small model, 16 tasks: an example, not a benchmark.
Comment HARNESS and I'll send you the checklist, my 3 test harnesses and the 16 tasks.
Sources: "Stop Comparing LLM Agents Without Disclosing the Harness" (arXiv 2605.23950, May 2026); "From Question Answering to Task Completion: A Survey on Agent System and Harness Design" (arXiv 2606.20683, June 2026).
0:00 Said DONE
0:29 Not just my laptop
0:43 The laptop test
0:56 Why tests win
1:14 Quiz
1:38 The catch
2:07 The checklist
Music: Special Spotlight by Kevin MacLeod, CC BY 3.0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Special_Spotlight_(ISRC_USUAN1600067).mp3)
Follow @PranavInnovates for the tech story that matters, every day.
What the video says
My AI coding agent said DONE while its code crashed on every test. Same model, a different harness, and it fixed the bug itself. Sixteen coding tasks, one small model. Pasted into a chat: eleven. As an agent reading files: still eleven. The same agent allowed to run the tests: fourteen. That's the harness: everything around the model. The tools it gets, the loop that keeps it going, what it reads, and the checks before it's allowed to say done. And it's not just my laptop. On SWE-bench Pro, Claude Opus 4. 5 scored forty-six percent under SEAL and fifty-five in Claude Code. On Terminal-Bench 2, Gemini 3. 1 Pro went from fifty-nine to eighty. My test: Qwen3.5 4B on my laptop, sixteen functions for a made-up airline bag desk, whose rules no model could know, graded by hidden tests. Every harness got the same rules. Here's what the tests changed. Writing the delivery date, its code crashed on the first test run. Then again. And again. On the fourth try, it read the error and fixed it. Without them, the agent said DONE five times on code that failed. With them, it never once said done on code that crashed. Quick quiz: same three harnesses, but a model half the size, two billion parameters. Does running the tests still win? Barely: eight, nine, nine. It read the error, even said what was wrong, then wrote the same kind of bug five more times. A harness can only help a model that can act on what it shows it. And the catch: tests only check what they test. Two functions passed every test the agent could see, then failed hidden ones, like a phone number with brackets. It also costs more: about nine times the tokens of the chat, and four times the time. One small model, sixteen tasks: an example, not a benchmark. My take: when you compare coding agents, the score belongs to the model and the harness together. Pick the harness that runs your tests, and keep a few it can't see. Here's the checklist I use before trusting a coding agent: name the harness with every score. Give it a way to run the tests. Keep hidden tests. And check what changed, not what it says. Comment HARNESS, and I'll send you this checklist, my three test harnesses and the sixteen tasks. Next: why agents forget. Episode nineteen.