WhoBuilt

Harnesses in AI: A Deep Dive

May 17, 2026· 20 min· 320K views·Watch on YouTube

Speaker

Tejas Kumar, an AI developer advocate at IBM, explains agent harnesses and demonstrates how they make AI agents more reliable at AI Engineer.

Why agents need harnesses

Kumar says a harness improves reliability when teams depend on rented models with limited context and little control over how they behave. It anchors an agent in a stable environment, even when the model is a black box.

The parts of an agent harness

He distinguishes agent harnesses from machine learning test suites. An agent harness surrounds the model with tools, context management, guardrails such as maximum steps, an agent loop, and a way to verify results.

Build reliability around a browser agent

Kumar demonstrates a browser agent asked to upvote a Hacker News story using GPT-3.5 Turbo without changing its prompt. Initially, it reaches a login screen, reports success, and fails to verify what happened. He adds iteration and message limits, then deterministic checks that detect failed logins and confirm whether the upvote succeeded.

Use deterministic steps to recover

A login handler checks the browser URL during the agent loop and, when needed, submits credentials programmatically before returning control to the agent. The demo then logs in and upvotes a story after six iterations. Kumar says the harness changed the outcome without changing the prompt.

Apply harnesses to real systems

Kumar argues that harnesses can help teams get more from less expensive models because models are non-deterministic. He points to IBM's OpenRAG project, which uses a harness to support secure retrieval from siloed enterprise data, and imagines agents creating task-specific harnesses in the future.

Takeaways

  • Treat an agent harness as the system around the model, including tools, context, limits, and verification.
  • Check the result with deterministic signals instead of trusting the agent's report of success.
  • Handle sensitive or repeatable actions, such as login, in controlled code where possible.
  • Set iteration and context limits to bound agent runs and manage growing histories.
  • Improve the harness before assuming a task failure requires a more elaborate prompt.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • works at
    Tejas Kumar works at IBM
    AI Engineer (AI Developer Advocate)
    “Today, I'm an AI developer advocate at IBM”
    YouTube
    Verified4 sources· Talk, Web, GitHub· archived
  • feature
    Claude Code: Can be considered an agent harness and has tools to read from the file system, write, and execute Bash commands
    “Claude Code, for example, can be considered an agent harness.”
    YouTube
    Unverified1 source· Talk
  • feature
    Codex: Has tools to read from the file system, write, and execute Bash commands
    “Claude Code, Cursor, and Codex have tools to read from the file system, write, and execute Bash commands.”
    YouTube
    Unverified1 source· Talk
  • feature
    Cursor: Has tools to read from the file system, write, and execute Bash commands
    “Claude Code, Cursor, and Codex have tools to read from the file system, write, and execute Bash commands.”
    YouTube
    Unverified1 source· Talk
  • built
    “At IBM, we created an open-source project”
    YouTube
    Verified2 sources· Talk
  • feature
    Open RAG: Provides enterprise-level security for asking questions about siloed internal data
    “OpenRAG has a hell of a harness that provides enterprise-level security for asking questions about very siloed internal data.”
    YouTube
    Unverified1 source· Talk

Related talks