# The Agent Development Lifecycle 101 by Harrison Chase <!-- ref: @content/youtube/langchain/2026-07-22-the-agent-development-lifecycle-101-by-harrison-chase tags: [agent-development-lifecycle, agent-evals, agent-observability, agent-frameworks, agent-harnesses, agent-runtimes, context-management, agent-governance] version: 2 updated_at: 2026-11-21T20:22:55.607Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=ZUjijNrg5sQ)** *Synthesized from Harrison Chase's talk on LangChain, 2026-07-22.* Harrison Chase, co-founder and CEO of LangChain, gives a webinar talk on the agent development lifecycle (build, test, deploy, monitor, govern), then takes audience questions. *Notes: the transcript has a few garbled words in the captions, including a co-founder's first name and one evaluation technique's name; those are not used. The Q&A answers are also the presenter's.* ## Core Thesis Harrison Chase argues that teams that ship agents well ship early and then iterate in a systematic way, because the hardest part of agents is getting them to behave reliably at scale. He frames the lifecycle as build, test, deploy, monitor, with governance wrapping all four, and says traces sit at the center of the whole cycle. ## Key Insights - **Build:** the main choice is the level of abstraction. Frameworks provide abstractions for model inputs and outputs, tools, prompts and retrieval, but can hide what happens under the hood; the example given is a chain that made five LLM calls without that being obvious. Runtimes cover state, durable execution and human intervention. Harnesses sit higher and bundle context management, file-system access, summarization and compaction, human-in-the-loop, sub-agents and skills. Coding agents are treated as harnesses. - **Less code over time:** the presenter notes that much of an agent can be written as files: a prompt as a markdown file, tools as MCP server connections in a JSON file, and skills as markdown plus optional scripts. - **Test:** testing measures the agent against inputs and scores the results. There are two user journeys: regression testing, where the expected pass rate is near 100%, and benchmark hill-climbing, where a score is improved over time. Datasets and metrics are usually application-specific. Coding benchmarks score by running unit tests against the result, not by reading the changed files. - **Sandboxes for test and deploy:** agent evals run for roughly 15 to 30 minutes and produce artifacts, so they need per-task sandboxes. The Harbor framework runs benchmark tasks that way. - **Deploy:** durable execution (resume from the failed step), thread-level and cross-thread memory, streaming of tokens, thinking and tool calls, and human-in-the-loop pauses are the hard production concerns. Sandboxes are needed when an agent writes untrusted code. Virtual file systems keep context in a database or object store but expose it to the agent through read, write, edit, glob, grep and ls. - **Monitor:** start with tracing of every step, its inputs and outputs, and the context the LLM saw, since most failures come from missing context. Then collect user feedback and run online evals on production traces without ground truth. The presenter's example is "perceived error" (a user saying "you messed up" or pasting back an error), detected by a small trained model. Dashboards aggregate latency, time to first token and feedback. - **Govern:** cost controls, tool access (on whose behalf an agent acts), audit trails, human approval for specific tools, and discoverability of agents and tools. At scale, shared frameworks, shared evaluation suites and a central platform team prevent each team from rebuilding the same things. - **Context and token count:** a tool response over a size threshold is written to a file, and the agent sees only the tail with a pointer to the file. Summarization runs at a threshold, and old long write inputs are removed once they are saved to file. These changes are made carefully so they do not break prompt caching. - **Auto-improvement:** an agent runs in the background over traces roughly every six hours, clusters failing traces into issues on a board, proposes code or prompt changes, and adds dataset examples and online evals. A human accepts each change. - **Evals without a ground truth:** the presenter suggests generating semantically identical inputs and checking for drastically different outputs. Stateful environments such as ticket systems need resettable synthetic copies for evals. Annotation queues let subject-matter experts label outputs, and their criteria can then run automatically. - **Guardrails versus online evals:** guardrails run during the agent's run and can slow it, while online evals run after and do not slow it, but they can be costly across all traces, which is why a small model was trained for them. ## Actionable Takeaways 1. Ship early, and iterate on agent behavior with a repeatable loop rather than one-off demos. 2. Start with tracing every step with its inputs, outputs and the exact context the LLM saw, before going to production. 3. Build application-specific datasets and metrics, and separate regression tests (expect near-100% pass) from benchmark hill-climbing (track a score over time). 4. Run long agent evals in per-task sandboxes, and keep state resettable for evals that touch external systems. 5. Move large tool outputs to files and show the agent only the tail, and summarize at a token threshold, without breaking prompt caching. 6. Add governance from the start: cost controls, per-tool access on whose behalf, audit trails and human approval for sensitive tools. ## Notable Quotes > "The hardest part of building agents and shipping agents is getting them to behave reliably." — Harrison Chase > "Human in the loop uh easy to do locally, hard to do when you're running in production at scale." — Harrison Chase > "Storing one trace is easy. Storing billions of traces is hard." — Harrison Chase --- *Related: `@content/youtube/david-ondrej/2026-04-27-this-ai-agent-can-actually-self-evolve-just-watch` · `@content/youtube/cole-medin/2026-04-08-the-next-evolution-of-ai-coding-is-harnesses-here` · `@content/youtube/david-ondrej/2026-05-13-harness-engineering-is-the-future-trust-me` · `@content/youtube/david-ondrej/2026-05-17-why-this-dev-ships-100x-faster-than-99-of-engineer` · `@content/youtube/latent-space/2026-06-05-making-deepseek-v4-outperform-opus-47-with-taste-ahmad-awais`* --- *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).*