LangChain Labs: agents that learn from their own work

LangChain Labs: agents that learn from their own work
LangChain Labs: the lab that wants agents to learn on their own
I also explain it in this video, on my Articulator EN channel. The figures in this post are frames from the video.

What LangChain Labs islink

LangChain Labs is a new applied research effort focused on something very specific: continual learning for agents. Their goal, they say, is to advance open, applied research for every agent, working alongside companies from different industries so that whatever comes out of it is useful to the whole agent-building community.

What continual learning meanslink

An agent improving from what it already generates while it works. The post names four sources:

  • Traces, which record every step the agent takes.
  • Feedback from users.
  • Eval results.
  • Its real behavior in production.

The idea isn't to stop at looking at that data, but to use it so the agent does better next time.

The four data sources of continual learning: traces, feedback, evals and production.
The four data sources of continual learning: traces, feedback, evals and production.

Capture, transform, applylink

The starting point is one line from the post: every agent run contains useful signal. The open problem, according to LangChain, has three steps:

  1. Capture that signal.
  2. Transform it into usable data.
  3. Apply the improvements to the agent.
The open problem, in three steps: capture the signal, transform it into usable data and apply the improvements.
The open problem, in three steps: capture the signal, transform it into usable data and apply the improvements.

LangSmith, the head start they believe they havelink

This is home turf for LangChain. Capturing, transforming and storing data is exactly what they built LangSmith for, their platform to trace and evaluate agents. That's why they believe it gives them and their customers a head start on continual learning. Keep in mind: that's their bet about their own product, not something proven yet.

Where the improvements golink

What an agent learns can go into different layers of the stack:

  • The harness: the code and instructions wrapped around the model, which can be optimized.
  • The model: you can switch to one that fits the task better.
  • Training: you can fine-tune the model itself on its data.
The three layers where improvements go: the harness, the model and fine-tuning.
The three layers where improvements go: the harness, the model and fine-tuning.

The partnerslink

They're not starting alone. The first research partners are Harvey, NVIDIA, Prime Intellect, Fireworks and Baseten. The post doesn't say what each one does; it only includes a quote from Niko Grupen, head of applied research at Harvey (an AI company for lawyers):

We're excited to work with the LangChain Labs team to push applied research on efficient, self-improving agents for the most complex legal work.

The four research directionslink

All of them aim at agents that are better, cheaper and easier to evaluate.

LangChain Labs' four research directions.
LangChain Labs' four research directions.

1. Mining information from large-scale agent datalink

Agents are being built into software at a rapid rate. According to LangChain, very soon they'll produce more data in months than humans have ever produced in total. That's a prediction, not a measurement. That volume is a gold mine, but pulling useful signals out of it is still hard. The post names three uses for those signals:

  • generating evals and test environments;
  • improving the agent's harness (harness engineering);
  • post-training models.

The source of all of it is traces, the step-by-step record of what each agent did, and they want any team to be able to use its own traces to build better agents.

A trace mine: lots of volume, but pulling out useful signals is hard.
A trace mine: lots of volume, but pulling out useful signals is hard.

2. Efficient agents at the Pareto frontierlink

In a company, getting the answer right isn't enough for an agent: it also has a budget and a limit on how long it can take. Cost, latency and performance pull in different directions. The Pareto frontier is the set of options where you can't improve one thing without making another worse.

According to the post, for many of the world's most important tasks, nobody has yet found the most efficient combination of harnesses, models and feedback loops that lets agents improve themselves. That combination is what they want to find.

The Pareto frontier between cost and performance (illustrative chart, not from the post).
The Pareto frontier between cost and performance (illustrative chart, not from the post).

3. Evaluation and simulation environmentslink

To evaluate an agent properly, you often have to run it end to end, in an environment that looks like how it will be used in production; checking isolated answers isn't enough. The problem is that these environments are hard and slow to build.

So they're researching ways to make them easier to create and run, and not just for evals: the same environments can be used for simulation and for reinforcement learning, where the agent practices and gets a reward based on how well it does.

An environment that looks like production: the agent is evaluated end to end.
An environment that looks like production: the agent is evaluated end to end.

4. Prompt optimizationlink

A prompt that works well with one model family won't necessarily work as well with another. Moving from one family to the next means rewriting and tuning prompts by hand, which the post calls annoying and time consuming.

LangChain believes in a multi-model future, where each team can easily pick the right model for each task. For that, migrating has to be cheap: optimizing prompts across models would make those switches easier and cut down on manual tuning.

Moving a prompt to another model family means reworking it by hand: annoying and slow.
Moving a prompt to another model family means reworking it by hand: annoying and slow.

What they're already doing with partnerslink

The post describes three early projects, all in progress:

  • Measuring how agents generalize between vertical domains, like legal services.
  • Harness engineering and fine-tuning open models, like NVIDIA's Nemotron, to use them as cost-efficient subagents. That's what they're testing, not a result.
  • Building evals and environments so teams can turn their trace data into data that improves their agents.

In the openlink

LangChain points out that its open source ecosystem has always been how builders learn from each other, and it wants the lab to follow that same path: they'll keep publishing research, evals and open integrations. And they're looking for more teams that want to explore how agents learn, adapt and improve.

To sum uplink

LangChain Labs wants agents to learn from their own work. Every run leaves signal in the traces, and the challenge is to capture it, turn it into data and apply it, whether in the harness, in the choice of model or through fine-tuning. For now these are research directions and work in progress; we'll see what they publish.

In one sentence

Every agent run leaves signal; LangChain Labs wants to turn it into better agents.

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 -->