Harrison, co-founder and CEO of LangChain, delivered a presentation focusing on the critical roles of AI agent "harnesses" and "evaluations" (evals) in achieving "owning your own intelligence" with AI. He defined an agent as comprising three main parts: the model, the context, and the harness, stressing the importance of controlling all three.
The **harness** is paramount, serving to orchestrate and bring the right context to the model at the right time. At its core, an agent architecture involves a Large Language Model (LLM) running in a loop, making generations, calling tools, and processing observations back into the loop. This seemingly simple structure is highly customizable. Harnesses can be extended through "middleware," "hooks," or "plugins" that modify behavior before or after model and tool calls. Examples include integrating a sandbox, accessing file systems, managing sub-agents, handling memory, performing summarization, or offloading context. For highly specific or predictable tasks, more explicit "cognitive architectures" with defined, sequential steps can be built.
Regarding **when to build a custom harness versus using an off-the-shelf solution**, Harrison advised starting with general harnesses (like Deep Agents, Claude Code, or Codex) for quick initial value. Customization becomes essential as an agent's task deviates further from the model's training distribution. Even within general tasks like coding, different model labs (e.g., OpenAI and Anthropic) might have optimized their models for distinct methods of file editing, necessitating "model profiles" in custom harnesses to adapt.
**Evaluations and Observability** are crucial for continuous agent improvement. Harrison cited Satiya's insights, highlighting that custom evals define organizational success, preserve institutional knowledge, and establish a "continuous learning loop" that compounds AI investments.
**Evals** involve building benchmarks for mission-critical agents to catch regressions and drive improvement. Harbor, an open-source eval runner, is emerging as an industry standard. It defines tasks, each with its own environment (often Dockerized), a golden solution, flexible "test scripts" (which can be code, unit tests, or even LLMs as judges), and clear instructions. Platforms like LangSmith allow users to visualize and compare eval results across different agent harnesses and models, tracking not only accuracy but also latency and cost.
**Observability** is vital for debugging agents, as failures often stem from insufficient or poorly managed context rather than inherent model weaknesses. Effective observability tools must reveal what enters the model's context window, how context accumulates, and which steps and tools are invoked. LangSmith provides both high-level "trajectory" views (like conversational turns) and detailed "trace" views for in-depth debugging.
These elements feed into a **data flywheel for continuous improvement**: build an agent, run it, collect traces, curate the trace data (via user feedback or synthetic evaluators like fine-tuned SLMs or LLM-as-a-judge), and then run experiments. This iterative process allows for updates to any of the three core agent components: the harness (harness engineering), the model (fine-tuning), or the context (memory management).
Harrison demonstrated **LangSmith Engine**, an automated agent that embodies this flywheel. Engine analyzes traces, identifies issues, generates an "issue board," and suggests specific code changes for harness improvements, aiming to automate the iterative refinement process.
In summary, Harrison emphasized that while general-purpose harnesses are a good starting point, the need for custom harnesses grows with task specificity and the demand for predictability. Evals and observability are not just tools but foundational practices that enable organizations to navigate the evolving AI landscape, understand agent performance, and continuously compound their AI investments through systematic improvement.