# Inside the Agent Engine: A LangChain and Traversal Fireside Chat
<!--
ref: @content/youtube/langchain/2026-07-24-inside-the-agent-engine-a-langchain-and-traversal-fireside-chat
version: 2
updated_at: 2026-10-31T20:02:34.792Z
-->

From LangChain, 2026-07-24: Agentic troubleshooting of production systems is at the frontier of what agents can do. It is high-stakes and time-boxed, there's no labeled data, LLMs weren't trained on telemetry, and the data is too big to fit in any context window.

**[Watch on YouTube](https://www.youtube.com/watch?v=U5PkKt_uJys)**


*Synthesized from Anish Agarwal and Raj Agrawal (Traversal), hosted by Harrison Chase, on LangChain, 2026-07-24.*

LangChain co-founder and CEO Harrison Chase talks with Traversal co-founders Anish Agarwal (CEO, and a professor at Columbia) and Raj Agrawal about building an AI SRE agent that troubleshoots production incidents across petabyte-scale telemetry. The two met as MIT PhD students working on causal ML and reinforcement learning.

## Core Thesis
Agentic troubleshooting of production systems is at the frontier of what agents can do. It is high-stakes and time-boxed, there's no labeled data, LLMs weren't trained on telemetry, and the data is too big to fit in any context window. Anish and Raj argue that once you go past a single team's scope, the problem is as much about data as about AI. You need a precomputed "production world model" that re-indexes telemetry and system knowledge so it can be searched, a single core agent harness (sub-agents, file systems, sandboxed code) built alongside that data engine, and evals pointed at the hardest task you can verify.

## Key Insights
- **Origin story.** Anish says the team's research covered causal machine learning (learning cause and effect, not just correlation) and reinforcement learning (searching large spaces efficiently). Around January 2024 they were looking for where those ideas met agents. Their fourth co-founder, Ahmed, came from Citadel Securities, where uptime is critical, and pitched incident response as the problem. The bet: coding agents will write much more code that fewer people understand, so tooling that keeps production reliable becomes unavoidable.
- **Why AI SRE is unusually hard (Anish):**
  1. Troubleshooting happens under stress, so mistakes aren't tolerated.
  2. There is no good labeled data, and LLMs weren't trained on this kind of telemetry.
  3. Copying humans doesn't work, because humans are bad at troubleshooting. That's why war rooms fill up with 50–60 people.
  4. Large customers produce about **a petabyte of data per day**. It can't fit in context, and if it could, one investigation would cost about "the GDP of a small country."
  5. Users expect an answer in about **2 minutes**, and it has to be right.
- **Observability APIs aren't built for agents.** Raj says agents are good at grep-style searching, but observability platforms' query languages are hard for them. Much of Traversal's work is re-indexing and owning parts of the data layer so agents can effectively "Ctrl-F all of your observability."
- **Naming fragmentation.** Raj notes that different systems name the same things differently, so correlating across sources only works if the agent has deep system context.
- **The production world model** is built offline. It ingests large streams of error logs, crawls code and Slack, and builds a rich representation of how everything connects, which tells the agent where to look. Harrison compared it to Cognition's DeepWiki. Raj said it's partly that kind of non-telemetry system knowledge, but it also ties that knowledge to live telemetry and makes the telemetry searchable.
- **Search is an offline/online continuum (Anish).** Offline precomputation lets you search more data per unit of time, but at coarser granularity. Live queries (for example, straight to Datadog) are granular, but you can only cover a little data at once. The design question is which data structures cover each scale, plus an intelligence layer that decides when to use which.
- **Cardinality decides what goes online vs. offline (Raj).** High-cardinality, fast-changing fields like session IDs and correlation IDs need efficient exact-match search. Low-cardinality, stable entities like service names benefit from fuzzy matching and precomputed external knowledge about what they mean.
- **From workflow to agent-first.** Traversal started as a workflow tuned for incident RCA. That couldn't answer general questions about production, so they moved to an agent-first design. Optimizing for RCA still pays off, because doing RCA well forces you to get system knowledge and retrieval right, and those carry over to other tasks.
- **Architecture: one core agent plus sub-agents.** The harness includes file systems, code generation to manage context, and sandboxing. Raj said all of these are critical and pointed to LangChain's open-source **Deep Agents** harness as having them built in.
- **Why file systems (Raj).** Context is finite (Raj cites a current limit of about **1M tokens**). The agent should see a summary of whether something is useful, then drill into details on demand. Models are trained to be good at grep, so a file system gives them a natural way to search. Raj says the choice is empirical: file-system-based context management did well on their benchmarks.
- **Interaction model has evolved:** manual triggers → rules/decision trees → an LLM deciding when to run → what Traversal calls **proactive agents**, which show up when they have something to say. This needs a separate harness layer (possibly its own agent) that decides when to call the core agent. That layer also behaves differently in an incident channel, an alert channel, or the UI.
- **Run time is a continuum.** Some agents run 24/7 updating the production world model. Live investigations track **time to first insight, which must be under 2 minutes**, while **time to last insight can reach about an hour** as the incident goes on.
- **Memory is kept separate from the world model.** The production world model synthesizes telemetry, code, and GitHub. User-interaction memories and a customer-editable **knowledge bank** are stored elsewhere. With strong feedback, the agent can index past trajectories that match a new question. Anish explains the separation: the LLM finds more relationships in the system than any one human knows, and constant human edits could "taint" it with false tribal knowledge. Memory is better for learning an individual user's taste. Traversal is still working out how much of the agent's memory to show users for auditing.
- **Evals are hard at this scale.** Some trajectories reach **5 million tokens**, compared with about **2 million** for the entire Harry Potter series. Failures can come from logic, broken tools, or timeouts. RCA is verifiable, since you can check the final answer against what the war room found. Raj says they use agents to triage trajectories into failure categories before engineers fix them.
- **Eval the hardest task (Anish).** As with math and science benchmarks for reasoning, doing well on the hardest verifiable task tends to carry over to easier ones. Incidents are both the hardest part of the SRE job and where the best labels exist. Spending effort on everyday chat questions because they seem easier is a trap: the data is worse and the gains don't carry over.
- **Model choice is loyal to evals, not vendors.** Traversal has gone from favoring OpenAI to favoring Anthropic and now evaluates every new model as it comes out ("less religious and more scientific"). Cost used to be ignored, but heavy usage and 5M-token trajectories have made it a real economic constraint. Open-source models are tempting, but investing in them risks wasted work if closed models get much better and cheaper.
- **Cost controls are becoming a product category.** Anish expects per-user token budgets and credit allocation, with more tokens for highly effective engineers and limits for those still learning. Harrison mentioned that LangChain released an **LLM gateway** about a month earlier with cost controls, which they use internally on all their Claude Code and Codex sessions.
- **Autonomy levels for production, modeled on self-driving cars (Anish):**
  - **L0:** fully manual troubleshooting.
  - **L1:** runbooks or rules, executed by an LLM or an ML system.
  - **L2:** you're still driving, but an LLM handles painful subtasks such as writing a Splunk query or a series of them, or drafting a postmortem.
  - **L3:** a team-specific agent (for example, a database team or checkout-UI team with **10–20 microservices**). The most forward-looking teams can build this themselves.
  - **L4:** reasoning across the whole production environment (**about 1,000 microservices, petabyte scale**). This is where it becomes a data problem and where DIY stops working; Anish describes about **two years** of work building a data engine together with the harness.
  - **L5:** fully self-driving production.
- **Coding agents changed how the team builds.** Raj says engineers ship much more. The team cleaned up startup-era mess to make the codebase agent-friendly, which also improved development practices. PMs and designers can now ship code, which opens up collaboration.
- **Single agent first, then split (Harrison).** A good harness and a simple loop with the right tools and skills goes further than people expect. A common mistake is breaking things into a complex multi-agent system too early. Harrison finds programmatic sub-agent calling interesting and cites the RLM paper from the DSPy authors.
- **Swarms fit needle-in-a-haystack problems.** Raj says incident search means trying many hypotheses in parallel and drilling into some, which suits swarms. He's less sure they fit other problems.
- **Skill vs. sub-agent rule (Raj):** pick the simplest option. First try the main agent. If that fails, try a skill. If the agent thrashes, meaning it over-indexes on one source, put that capability behind a sub-agent and accept a bit more latency.
- **Onboarding data.** Core telemetry types are the same across customers: JSON logs with timestamps, and metrics as time series (label set, timestamps, floats). When customers push raw telemetry, the source doesn't matter. When Traversal pulls via APIs, the platform's query language richness and **rate limits** matter most.
- **Runbooks go stale.** Runbooks are ingested into the world model, but incidents are hard because they're new. What transfers across customers is the first-principles approach: making raw observability data searchable and linking it to Slack and code.
- **Reinventing the SOP.** Anish contrasts Traversal with incident-management tools like PagerDuty and incident.io, which coordinate people. The goal is for humans to verify findings instead of hunting for the root cause.
- **Beyond SRE.** Anish says the same needle-in-a-haystack shape appears in security (his likely next target, with different false-positive and false-negative rates), networking, product analytics, and business operations in tools like Looker and Amplitude. The underlying data is the same: time series, logs, change events, code.
- **What they're excited about.** Raj points to routine health checkups by AI that understands health. Anish points to professors writing single-author papers with AI doing grad-student-level proof work, which raises questions for PhD programs. He also wants AI, including Claude Code, used in new ways in enterprise sales, which is still very people-driven.

## Actionable Takeaways
1. **Rank autonomy on the L0–L5 scale before building it yourself.** A team-scoped agent over about 10–20 microservices (L3) is realistic to build in-house. Cross-environment reasoning over about 1,000 services and petabytes of data (L4) needs a dedicated data engine built alongside the harness.
2. **Split search by offline vs. online and by cardinality.** Precompute indexes for broad, coarse coverage. Query live for granular, fast-moving data. Use exact-match structures for high-cardinality fields (session or correlation IDs) and fuzzy matching plus precomputed knowledge for low-cardinality entities (service names). Add a layer that decides which to query.
3. **Build an offline "world model" of the system** by crawling code, Slack, and logs, so the agent knows where to look before a live incident starts.
4. **Use a file system for context management.** Show the agent summaries first and let it grep or drill into details on demand. Use generated code and sandboxing to manage context (LangChain's Deep Agents has these built in).
5. **Start with one agent loop with good tools and skills.** Escalate in order: main agent → skill → sub-agent. Move to a sub-agent only when you see thrashing, and accept the latency cost.
6. **Set a time-to-first-insight SLA** (Traversal uses under 2 minutes) separate from time to last insight (up to about an hour), and precompute enough to meet the first one.
7. **Keep system knowledge separate from user memory.** Let the LLM learn system relationships without human "tribal knowledge" edits. Store per-user preferences and customer documentation in a separate memory or knowledge bank.
8. **Eval the hardest verifiable task** (for Traversal, incident RCA checked against war-room findings). Use an agent to triage long trajectories into logic, tool, or timeout failures before fixing them.
9. **Re-run evals on every new model release** and pick by results, not vendor loyalty. Once usage scales, track cost next to accuracy and add per-user token budgets or gateway cost controls.
10. **Make the codebase agent-friendly** by cleaning up iteration debt, so coding agents and non-engineers (PMs, designers) can ship safely.

## Notable Quotes
> "A single investigation is probably going to cost you the GDP of a small country." — Anish Agarwal

> "Humans are really bad at troubleshooting." — Anish Agarwal

> "For an agent you want to be able to effectively control-F all of your observability." — Raj Agrawal

> "Some of our trajectories can be 5 million tokens and the entire Harry Potter series is 2 million tokens." — Raj Agrawal

> "You should eval the hardest thing because if you start doing well there it tends to generalize." — Anish Agarwal

> "The gap from L3 to L4 is where DIY stops working." — Anish Agarwal

> "Start with a simple agent loop and that actually goes a lot further than people maybe think." — Harrison Chase

---

*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).*