Does Your Agent Always Seem to Be on Its First Day? LangChain Built a Knowledge Factory
When an Agent does work inside a company, its biggest headache is not understanding the internal rules. LangChain has disclosed how it sets this up internally: working Agents flag errors while they work, and a curator Agent in the background periodically updates the knowledge base. Metric definitions, data-table locations, document headers—someone is finally taking care of this know-how.
When you put an Agent to work for real inside a company, what often holds it back is not that the model is dumb, but that it doesn’t know the internal rules.
Which definition should be used for a given metric, which table the data should be queried from, which version of the page header a document should use. This know-how is scattered across veteran employees’ heads and chat logs, and no one has written it down systematically. Every time an Agent starts work, it feels like its first day on the job.
LangChain disclosed how it sets this up internally. They call it a knowledge factory. The core idea is to split the management into two sides: the Agents doing work during the day report errors as they go, while a curator Agent in the background periodically updates the knowledge base.
The reason for splitting it is straightforward. If you let the working Agent casually update the knowledge base, it is focused on delivering the immediate task, and as it keeps editing, the rules get chaotic and contradict each other; maintaining it manually is also a bottomless pit. Putting each side in charge of its own part actually makes things run more smoothly.
When the working Agent encounters something like a column that has been renamed or a rule that doesn’t line up, it flags where it is wrong and suggests how to fix it, as if filing a ticket, then continues and finishes the task at hand. The background curator Agent runs on a fixed cadence, reviews these error flags and the Agent’s execution traces, then cross-checks against source materials in Slack and Notion to correct the skills and documents.

The original article gives the example of writing a revenue report. During the day, the Agent discovers that a column in BigQuery has been renamed, flags it, and then continues to finish the report. After the report is done, the finance lead works with it to adjust the format and requests that all future documents use a new page header. That night, the background Agent reads the flag and this conversation and updates both skills—data retrieval and report writing—so that they take effect directly on the next job.

For storage, you don’t need to move all data into the knowledge base. Data platforms such as Snowflake and Databricks already contain the complete, up-to-date source of truth; just query it in place. The knowledge base accumulates only three things: skills for how to do things according to company rules, core business knowledge, and data retrieval guides that specify where the data is and how to query it.

This loop is already running inside LangChain. A sales Agent edits email drafts in Slack; when an edit is substantial enough, the system distills preferences per person and compresses the memory once a week. Content Studio, which creates design materials, distills at most five evidence-backed lessons after each completed job; subsequent work is scored against these lessons, and each week the background system merges the ones proven useful into skills and the wiki.
A netizen added one point: the hardest part of this approach is the error-reporting step. The working Agent has to make clear where it got stuck—which table it cannot find, which definition does not match—so that the curator Agent has something to fix. If it only reports “task failed,” the knowledge base can never be fully filled in. After the curator makes changes, it would also be best to leave a change record, so that if a definition is changed incorrectly someday, you can still trace which change did it. Some people also think that tacit knowledge in the business is the hardest thing to deal with, and that relying on Agents to automatically accumulate a mistake log and update documentation is a very coherent approach.
You don’t need to wait for all the company’s documentation to be written before starting. Pick one repeatedly performed job, hook up the loop of runtime error reporting and background curation, and it can start running. The article does not say how much labor cost or rework time this approach saves; the numbers are still missing.
By the way, this is a vendor article from LangChain. Context Hub and LangSmith Engine mentioned in the article are their own products. But where knowledge is stored was never the main issue to begin with; the error-reporting tool, the background curator Agent, and reading execution traces—these things can also be done with other tools.
发布时间: 2026-11-25 16:45