Deep Agents 0.6: LangChain's five new features, explained

Deep Agents 0.6: LangChain's five new features, explained
5new features: interpreter, harness profiles, streaming, delta channels and Context Hub
52.8 → 66.5%GPT-5.2 Codex on Terminal-Bench 2.0 with harness changes alone, according to LangChain
5.27 GB → 129 MBof checkpoints in a simulated 200-turn session (roughly 42× less)
>20×cheaper, often, open-weight models versus closed frontier models, according to LangChain
Deep Agents 0.6: LangChain's 5 new features, explained
I also explain it in this video, on my channel Articulator EN. The figures in this post are frames from the video.

What's new in 0.6link

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 five new features in Deep Agents 0.6 and their common thread: performance
Five features, one common thread: performance at the model layer, the agent layer, at scale, and over time.

The code interpreterlink

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.
A sandbox acts on the environment; an interpreter acts inside the agent loop
Sandbox and interpreter: both run code, but in different places.

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 codelink

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));
With PTC, intermediate results stay in the interpreter and only the relevant part reaches the model
Intermediate results stay in the interpreter.

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 workflowslink

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 queue of questions: every answer can add a new question at the back
The example's question queue, up to six findings.

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 profileslink

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.
GPT-5.2 Codex goes from 52.8% to 66.5% on Terminal-Bench 2.0 with harness changes alone
Same model, different harness.

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.

Streaminglink

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)
A single typed event stream: messages, reasoning, tools, subagents
Every part of the run, on its own channel.

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 channelslink

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.

A full snapshot at every step versus deltas with a full snapshot every K steps
A full snapshot at every step (O(N²)) versus deltas and a snapshot every K steps.

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:

TurnsWithout deltasWith deltasReduction
1014 MB1 MB11.8×
2584 MB5 MB17.4×
50331 MB13 MB25.8×
1001,300 MB39 MB34.2×
2005.27 GB129 MB41.7×
Checkpoint storage versus turns: without deltas it explodes to 5.27 GB; with deltas, 129 MB
Without deltas the curve explodes; with deltas it barely moves.

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 Hublink

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.

The Context Hub interface: instructions file, skills, latest commit and Prod and Staging environments
An agent in Context Hub: instructions, skills, its latest commit and two environments (redrawn from the article's screenshot).

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 uplink

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.

In one sentence

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?

Sourceslink

Continue reading

Last posts -->

Have you seen these projects?

Gymnasia

Gymnasia Gymnasia
Expo
React Native
TypeScript
OpenAI
Anthropic

Fitness app with two agents that run entirely on the device, with no backend, so the user's data never leaves the phone. A BYOK conversational coach with local tools and a remote system prompt with offline fallback, plus a food estimator that pulls macronutrients out of a photo of the plate, with barcode scanning against OpenFoodFacts.

LangGraph Deep Researcher

LangGraph Deep Researcher LangGraph Deep Researcher
Python
LangGraph
FastAPI
React
TypeScript
Docker

Multi-agent research system built with LangGraph. A supervisor breaks your question down into topics and launches search sub-agents in parallel; each one compresses its findings before handing them to a writer agent that produces the final sourced markdown report. Live streaming over WebSockets, a configurable model per role and bring-your-own API keys that are never persisted server-side.

Tau

Tau Tau
Python
LangChain

Multi-agent tutoring system for secondary school students, with one agent per subject and course material written and validated by a team of teachers. It was used with real students at a private school in Spain and at a secondary school in Colombia.

View all projects -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to watch any talk?

Last talks -->

Do you want to improve with these tips?

Last tips -->

Use this locally

Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.

Flow edit

Flow edit Flow edit

FLUX.1-RealismLora

FLUX.1-RealismLora FLUX.1-RealismLora
View all containers -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to train your model with these datasets?

short-jokes-dataset

HuggingFace

Dataset with jokes in English

Use: Fine-tuning text generation models for humor

231K rows 2 columns 45 MB
View on HuggingFace →

opus100

HuggingFace

Dataset with translations from English to Spanish

Use: Training English-Spanish translation models

1M rows 2 columns 210 MB
View on HuggingFace →

netflix_titles

HuggingFace

Dataset with Netflix movies and series

Use: Netflix catalog analysis and recommendation systems

8.8K rows 12 columns 3.5 MB
View on HuggingFace →
View more datasets -->