
What's new in 0.6
There are five pieces, and each one goes after performance from a different angle:
- Code interpreter: a lightweight runtime where the agent composes tools in a program, keeps state, and controls what reaches the model's context, without the overhead of a full sandbox.
- Harness profiles: per-model tuning to get the most out of each model, including open-weight ones like Kimi, Qwen, or DeepSeek.
- Streaming: typed events for messages, tool calls, subagents, and your own application events. You subscribe to exactly what you need.
DeltaChannel: much smaller checkpoints for agents that run for a long time and accumulate context.ContextHubBackend: a versioned home, in LangSmith, for the agent's skills, policies, and memories.
The code interpreter
Deep Agents now ships an installable interpreter that gives the agent a programmable workspace. The agent writes code to express what it wants to do, and an in-memory runtime executes that code and returns the results that matter. That way it can transform data, coordinate tool calls, and keep intermediate work out of the model's context.
So how is that different from a sandbox? Both work through code, but they act in different places:
- A sandbox acts on the environment: it runs commands, installs dependencies, and edits files.
- An interpreter acts inside the agent loop: it composes tools, preserves state, and decides what information goes back to the model.
The article's example is a small JavaScript program: for each of three topics (retrieval, memory, and evaluation) it launches a subagent, all three at once, asks for three concise findings, and finally joins the reports into a single text.
// Agent can write code like this:
const topics = ["retrieval", "memory", "evaluation"];
const reports = await Promise.all(
topics.map((topic) =>
tools.task({
description: `Research ${topic} in Deep Agents and return three concise findings.`,
subagent_type: "general-purpose",
}),
),
);
reports.join("\n\n");To turn it on, install deepagents[quickjs] from PyPI or @langchain/quickjs from npm and add it as middleware. In the article's example, the agent runs an open model, GLM-5, served on Baseten:
from deepagents import create_deep_agent
from langchain_quickjs import REPLMiddleware
agent = create_deep_agent(
model="baseten:zai-org/GLM-5",
middleware=[REPLMiddleware()],
)Calling tools from code
The first thing the interpreter enables is programmatic tool calling (PTC). To understand it, think about the usual loop: there, the model is the traffic controller for every step. It asks for a tool, receives the full result in its context, reasons over it, and repeats. Even when a result is only needed to compute the next input, it still has to go through several model calls.
With PTC, the model writes code that calls tools from inside the execution runtime, so the workflow runs without a round trip to the model for every call. Intermediate results stay in the interpreter's state, which can filter noisy outputs, process data, retry failures, and return only the relevant context.
In the example, the agent fetches several pages at once, keeps the ones that mention "interpreter", takes the first three, and trims each one to 500 characters. That's all the model gets:
const pages = await Promise.all(
urls.map((url) => tools.fetchUrl({ url })),
);
const relevant = pages
.filter((page) => page.includes("interpreter"))
.slice(0, 3);
relevant.map((page) => page.slice(0, 500));
According to LangChain, this way of calling tools uses fewer tokens, cuts down on round trips to the model, and makes each reasoning step smaller. The idea isn't new: Anthropic popularized it as an API behavior for its own models. The difference is that, with an interpreter, any agent can do it with any model, open source models included.
Recursive workflows
The second capability is recursive workflows. Because tools and subagents can be called from code, the agent can take one subagent's output, inspect it, transform it, and feed it into the next step, without routing every intermediate result back through the main model.
The article's example is a queue of questions. The agent takes the next one, hands it to a subagent, and stores the answer; if the subagent suggests a follow-up question, it goes into the queue. It repeats until it has six findings or the queue is empty.
const frontier = ["What changed in interpreter middleware?"];
const findings = [];
while (frontier.length && findings.length < 6) {
const question = frontier.shift();
const report = await tools.task({
description:
`Answer this question. If there is a useful next question, ` +
`include it as "Follow-up: ..."\n\n${question}`,
subagent_type: "general-purpose",
});
findings.push(report);
const next = report.match(/Follow-up: (.*)/)?.[1];
if (next) frontier.push(next);
}
findings.join("\n\n");
The point isn't "call another LLM on the full context". It's keeping the working state outside the model and controlling what goes into each call. This is close to the idea behind Recursive Language Models (RLM), and LangChain is careful here: in Deep Agents, the interpreter is the runtime for that pattern, not an implementation of RLM as originally defined.
Harness profiles
The second feature starts from a fact. According to LangChain, open-weight models like Kimi K2.6, GLM 5.1, and DeepSeek V4 are now viable for production agents, often at more than twenty times lower cost than closed frontier models.
But there's a catch. Each model is post-trained on its own tool-calling format and prompt conventions, and most harnesses are tuned for the closed model their authors built against. Drop an open model in cold and you may see only a fraction of what it can do: it's speaking a dialect the harness doesn't understand.
And the gap is measurable. In LangChain's tests, harness changes alone:
- Moved GPT-5.2 Codex from 52.8% to 66.5% on Terminal-Bench 2.0: from the top 30 to the top 5.
- On tau2-bench, lifted GPT-5.3 Codex by 20% and Opus 4.7 by 10% (the article doesn't say whether these are points or relative gains).
- On tau2-bench, prompts and middleware can move scores by 10 to 20 points without changing the model.
The harness is everything around the model: the base system prompt, the tools and their descriptions, and the middleware that shapes each turn. A harness profile captures those overrides for a specific model as a named, versioned unit. In 0.6, profiles become a first-class abstraction: you can diff, version, and swap them along with the model, so tuning work carries forward. LangChain ships built-in profiles for the major models, so strong performance is the default, and the same machinery lets you write your own.
Streaming
An agent does a lot of work before it returns a final answer. For a good experience you want to show that work as it happens and let the user steer along the way. Streaming is what makes that possible, and in this release it becomes a core primitive.
With stream_events(..., version="v3"), agents and graphs emit a single unified event stream, with projections for the things you actually want to render: message text, reasoning blocks, tool calls, state updates, subgraphs, subagents, custom channels, and the final output. Every event is typed, so the UI no longer has to guess whether a chunk is text, reasoning, or tool-call data. It all follows the new Agent Streaming Protocol.
stream = agent.stream_events(
{"messages": [{"role": "user", "content": "Research LangChain streaming"}]},
version="v3",
)
for message in stream.messages:
for delta in message.text:
print(delta, end="", flush=True)
for subagent in stream.subagents:
print(f"\n[{subagent.name}] {subagent.status}")
for message in subagent.messages:
for delta in message.text:
print(delta, end="", flush=True)
This model also travels over the wire: there are new Agent Server endpoints, and the LangGraph SDK exposes remote streaming through client.threads.stream(...), with multimodal content, reconnect and replay, over SSE or WebSockets. Because local and remote streams follow the same protocol, an application can subscribe to just what it needs: one subagent's messages, a custom channel, or the events in a namespace.
On the frontend there are v1 integrations for React, Vue, Svelte, and Angular, so you don't hand-roll event parsers, plus a Streaming Cookbook with runnable examples.
Delta channels
Deep Agents runs on LangGraph, which saves a checkpoint of the agent at every step. That's what makes observability, human-in-the-loop, and failure recovery possible: you always know where the agent is, and you can resume it from any point.
The problem is that agents run longer, with histories that grow over dozens or hundreds of steps, and use more context, relying on the filesystem to store and offload it. In Deep Agents, messages and files live in agent state, and with a full snapshot at every step, storage grows as O(N²).
Delta channels change that: instead of a full snapshot at every checkpoint, they store only the diff, plus a full snapshot every so many steps. This applies to message histories and files. You still get the agent's complete history at a fraction of the storage, and the write bottleneck on the checkpoint database eases too.
LangChain estimates that, depending on conversation length and context size, switching to delta channels can bring 10 to 100× reductions in checkpoint storage. In their experiment, a simulated multi-file coding session of 200 turns, the agent piles up 5.27 GB of checkpoints without deltas and 129 MB with them: roughly 42 times less. The gap widens with every turn:
| Turns | Without deltas | With deltas | Reduction |
|---|---|---|---|
| 10 | 14 MB | 1 MB | 11.8× |
| 25 | 84 MB | 5 MB | 17.4× |
| 50 | 331 MB | 13 MB | 25.8× |
| 100 | 1,300 MB | 39 MB | 34.2× |
| 200 | 5.27 GB | 129 MB | 41.7× |
For LangChain, long-running agents with deep context are where the field is heading, and delta channels are how its runtime scales to meet them.
Context Hub
Context Hub is a LangSmith-backed filesystem for Deep Agents. It gives a versioned home to the files that shape how the agent behaves (prompts, skills, policies, and memories), so what it learns in one run can improve the next.
Under the hood, the agent reads from a Hub repo and can also write to it. Those writes land as commits, with history, review, and environment tagging, so you can iterate in staging and promote to production without wiring up a separate storage layer.
To use it as the agent's filesystem, pass it as the backend:
from deepagents import create_deep_agent
from deepagents.backends import ContextHubBackend
agent = create_deep_agent(
model="google_genai:gemini-3.1-pro-preview",
backend=ContextHubBackend("my-agent"),
)Or scope just /memories/ to the Hub and keep the rest of the filesystem scoped to the thread:
from deepagents.backends import CompositeBackend, StateBackend, ContextHubBackend
agent = create_deep_agent(
model="google_genai:gemini-3.1-pro-preview",
backend=CompositeBackend(
default=StateBackend(),
routes={"/memories/": ContextHubBackend("my-agent")},
),
)Reads are served from a cache, and writes are committed back to the repo. If the repo doesn't exist yet, the first write creates it; from then on you can diff, review, and tag changes like any other piece of versioned context. You just need to set LANGSMITH_API_KEY first.
To sum up
Deep Agents 0.6 is all about performance. Harness profiles get the best out of each model, open ones included. The interpreter lets the agent combine tools with code and protect its context. Streaming shows its work as it happens. Delta channels make checkpoints cheap for agents that run for a long time. And Context Hub carries what was learned into the next run. The numbers come from LangChain's own tests, and the measured delta savings reach about 42× in a simulated session; the "up to 100×" is their estimate.
The same agent performs better when the harness fits the model, intermediate work stays out of context, and only what changes gets stored.
Which feature will you try first?
Sources
- "New in Deep Agents v0.6", by Sydney Runkle (LangChain blog, May 13, 2026).
- The video, on my channels: English and Spanish.