- Introduction to AI Harnesses
- Why we use harnesses: Reliability and control
- Defining an agent harness from first principles
- Key components of an agent harness (Tooling, Context, Guardrails)
- Starting the demo: Building a browser agent
- Inspecting the initial agent loop
- The problem: Agent failure and hallucination
- Adding guardrails and context management
- Refactoring into a formal harness
- Implementing a verify step to catch lies
- Implementing a login handler for programmatic access
- Final demonstration: Successful autonomous upvoting
- Summary and the future of dynamic harnesses
I watched this talk by Tejas Kumar on harnesses in AI and I found it an accessible and insightful introduction to the topic.
The demo builds a browser agent on GPT-3.5 Turbo (consciously choosing a VERY old model to show how good harness eng can improve it a lot) against Hacker News and layers in a harness without touching the prompt once. Guardrails cap iterations and compact context. A verify step reads the tool call history to catch the agent lying about what it did. A login handler watches the browser URL each loop and injects credentials programmatically when it hits the login page. By the end the cheap old model reliably logs in and upvotes the post.
Tejas - Infoshare - linkedin - github - twitter
Citation
@online{bochman2026,
author = {Bochman, Oren},
title = {Harnesses in {AI}},
date = {2026-05-17},
url = {https://orenbochman.github.io/posts/2026/05-17-harnesses-in-ai-a-deep-dive-tejas-kumar/},
langid = {en}
}