# "How to Build Agents That Improve Over Time: Model, Harness, Context | Interrupt London" <!-- ref: @content/youtube/langchain/how-to-build-agents-that-improve-over-time-model-harness-context tags: [agent improvement, harness, context engineering, evals, traces, fine-tuning, red teaming, observability] version: 2 updated_at: 2026-11-22T09:16:42.729Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=xy_7SzwsIjM)** # How to Build Agents That Improve Over Time: Model, Harness, Context | Interrupt London *Synthesized from LangChain, 2026-10-27; speakers are not named in the source.* A single presenter, speaking for LangChain at its Interrupt London event, gives a roughly 20-minute talk on how agents can be made to get better over time. ## Core Thesis The presenter argues that an agent is three things (a model, a harness and context) and that each can be improved separately, with traces and evals as the shared foundation of any improvement loop. Full automation of that loop is described as a North Star rather than a present reality. ## Key Insights - **Three parts of an agent.** The model does reasoning and decisions (peripheral models handle guardrails and evals). The harness decides what the model sees, executes its actions, verifies results and persists state; Deep Agents, Claude Code and Codex are examples. Context is text, files, knowledge and tools. - **Three modes of improvement.** Manual (an AI engineer drives the cycle, today's norm), human-in-the-loop (a background process proposes, a human approves), and fully automated. - **Improving the model.** Usually human-initiated because it is costly. Supervised fine-tuning takes filtered good traces and suits narrow tasks such as classification, extraction and summarization; LangChain's smithtune CLI pulls and filters LangSmith trajectories and hands them to providers such as Fireworks or Baseten. RL runs rollouts over tasks, scores them live and updates weights; it has a higher ceiling, is harder, and has no good managed offering. - **Improving the harness.** Look at traces, find issues, change code, prompts or tools. A human should review because changes propagate to all users. LangSmith Engine is a background deep agent in a sandbox that clusters trace issues, then proposes fixes, PRs, tests and eval data points. - **Improving context.** Easiest because it is just text, and can be updated at agent, user or org level. Hex runs a Review Agent that finds context gaps; Profound builds company-level Brand Records and user-level Personal Records. LangChain's open source OpenWiki builds an agent knowledge base from a repo and from Codex or Claude Code traces. - **Trace vocabulary.** A run is one model or tool step; a trace is a sequence of runs; a thread is a conversation of traces; a trajectory is a standardized view over a thread. Exact inputs, outputs and event order are required. SmithDB is the purpose-built database for this data, with an AI Search that scores each trajectory against a semantic filter. - **Evals as the new PRD.** They define what good looks like and act as guardrails during iteration. Hard parts: realistic inputs, defining good answers (exact match, positive or negative criteria on the final answer, environment end state or tool-call sequence), and simulation environments that avoid hitting production. - **Red teaming.** There is no universal correctness judge, so probing algorithms are used, for example sending two semantically similar queries and flagging semantically different answers as evidence one is wrong. - **The flywheel.** Run the agent, collect human or online-judge feedback, inspect the trace, add it as an eval data point, then change weights, harness code or context. ## Actionable Takeaways 1. Treat model, harness and context as three separate improvement targets, and start with context since it is cheapest. 2. Keep a human reviewing harness and prompt changes that affect every user. 3. Use SFT only for narrowly defined tasks; reach for RL only for the core driving model. 4. Turn every observed failure trace into an eval data point to avoid regressions. 5. Run evals in a simulated or dev environment, never against production writes. 6. Have domain experts define what a good answer looks like. ## Notable Quotes > "You can't improve it if you don't define what it is." — LangChain presenter > "they're the new PRD" — LangChain presenter > "We think traces are a new type of data." — LangChain presenter --- *Related: `@content/web/huggingface/2026-11-23-cua-see-self-evolving-evals` · `@content/web/huggingface/2026-11-23-acap-async-coding-agents-robot` · `@content/web/github/2026-11-20-opencomputer` · `@content/web/github/2026-11-23-claude-code-v2-1-331` · `@content/web/claude-dev/2026-11-09-safely-scaling-multi-agent-teams-fable-5-2`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*