Bhargava argues that relying on powerful proprietary models and simple harnesses can limit teams’ ability to run agents locally. He points to Harness Bench, which tested 106 tasks across models and harnesses: scores ranged from 52.4% to 76.2% when only the harness changed. He says the harness has an especially large effect with weaker models.
What if the harness mattered more than the model?
Speaker
Aditya Bhargava, staff engineer at Etsy and its IC initiative lead for Agent of Commerce, presents at AI Engineer on building agent harnesses that can improve performance and make local open-source models more useful.
Bhargava demonstrates a coding agent fixing a bug in a median function. A model without tools cannot inspect the files, while adding read and write tools gives it useful capabilities but can expose the file system to unsafe actions. Agency uses interrupts and handlers to request approval, and partial function application can restrict tools to a specific directory so the agent can work without approving every action.
The agent next follows a reason, act, and observe loop: it reads the code and tests, runs the tests, examines the failure, edits the function, and runs the tests again. Bhargava says the agent succeeds once it can verify that the change passes. This adds a feedback loop to the harness, beyond simply generating a proposed fix.
Bhargava shows a main agent using separate coding and Wikipedia sub-agents to fix the test and research Jensen’s inequality for medians. They work in parallel, and each sub-agent has its own tools. He argues that grouping tools this way can reduce unrelated context and help the main agent choose the right capability.
Agency’s Japa optimizer can measure an agent’s baseline performance and revise marked prompts toward a stated goal. Bhargava describes this as a systematic alternative to trial and error. He also highlights Agency’s interrupts, handlers, partial function application, and ability to pause and resume execution, including after serialization.
Takeaways
- A harness can materially change agent performance; Harness Bench scores varied by more than 20 percentage points with the model held constant.
- Limit tool access to the files or actions an agent needs, and use approval for sensitive operations.
- Give coding agents a way to run tests, inspect failures, and check that their changes work.
- Use sub-agents to group distinct capabilities and reduce the unrelated tools and context presented to the main agent.
- Track a baseline and optimize prompts against a clear objective instead of relying only on trial and error.
Mentioned in this talk
Search inside this talk
What was claimed 11
- built
“I wrote Grokking Algorithms, an illustrated book on algorithms”
YouTube Verified2 sources· Talk, Web· archived
- builtAditya Bhargava built
Agency“I've spent a good part of that time building a new language called Agency”
YouTube Verified2 sources· Talk, Web· archived
- works atAditya Bhargava works at
Etsy
Staff Engineer; IC initiative lead for agentic commerce“I'm a staff engineer at Etsy.”
YouTube Verified2 sources· Talk, Web· archived
- metric
Harness Bench: 106 tasks
“It's got 106 tasks”
YouTube Unverified1 source· Talk
- metric
Harness Bench: Scores ranged from 52.4% to 76.2% across harnesses
“Scores range from 52.4% to 76.2%”
YouTube Unverified1 source· Talk
- uses
Claude Code uses
Claude Opus
“Claude Code is an agent. It uses Opus, which is the model”
YouTube Unverified1 source· Talk
- feature
Agency: Functions can automatically be used as tools; Agency generates JSON schemas from them.“Every function can automatically be used as a tool in Agency”
YouTube Unverified1 source· Talk
- feature
Agency: Standard library functions that mutate code, perform destructive actions, or read sensitive data throw an interrupt first.“All the functions in the Agency standard library that mutate code or something else ... throw an interrupt first.”
YouTube Unverified1 source· Talk










