Skip to content

LangChain proposes a way to keep AI agents’ notes up to date

News
Blank index cards and colorful dividers in a sunlit wooden library drawer.
LangChain describes a way to keep the shared notes that agents use current. AI-generated editorial illustration.
LangChain has shared a plan for keeping the facts and steps used by AI agents up to date. The company gives that job to a second agent. It reads the source material and looks for trouble in the records of past jobs, then updates the shared notes that future jobs use.
LangChain co-founder Harrison Chase calls the setup a knowledge factory. His post describes work at LangChain and with a few customers. It sets out a method for teams that run the same kinds of jobs often.

Why useful notes go stale

Think of an agent that writes a weekly sales report. It needs to know where the data lives, what each column means and which numbers the team uses. A change to one column can break the report. A change in the way the team counts sales can cause a much less obvious error.
LangChain separates rules that rarely change from notes that can go stale fast. A team can keep its definition of a sales metric in a shared wiki. Fast-changing details, such as where to find a table, need a place where someone can update them when the work changes.
Agents often find those changes because a job breaks or a person has to correct the answer. That fix can sit in one chat, out of reach the next time someone runs the same job. LangChain suggests keeping a record of the issue so the team can use it again.

What LangChain gives the curator to do

The working agent can flag a gap and suggest a fix. A separate agent, which LangChain calls the curator, reads the flag and checks the source. It can also look at records of what people corrected during a run. The goal is to use that work to keep a shared note or set of steps current.
In LangChain’s example, a data column has a new name. During the same job, a finance lead asks for a new heading. Those are two types of change. One belongs in notes on how to find the data. The other can go in rules for how to write the report.

Who should approve a change to shared notes

The post gives teams a pattern to try. Its value will depend on what the curator can read and change. A bad edit to a shared rule can affect every future job that uses it. Teams can keep a way to review the proposed change and record why they accepted it.
For a report, a change to the look of a heading might need a quick review. A change to the way the report counts sales deserves a check by the person who owns that number. Giving every note the same approval rule can hide those differences.
Our guide to agent permissions covers the difference between reading a source and altering it. The METR tests on AI judgment also give a reason to look at what an agent missed, even when it completed a task.
A useful first trial can track the same job before and after one approved change to its shared notes.
loading

Loading