How LangChain built the memory system for LangSmith Agent Builder
Task-specific agents that execute the same workflow repeatedly need persistent memory across sessions; without it, users must repeat their preferences to the agent in every session, which would be a fundamentally poor experience. Most AI products launch without memory, but LangSmith Agent Builder's design made it a necessity.
During development, the agent failed in multiple ways: not remembering when it should, remembering when it should not, routing memory to the wrong file type, generating files with invalid schemas, and failing to generalize specific learnings into compact rules.
LangChain shipped a file-based memory system backed by Postgres, with human-in-the-loop approval and schema validation, enabling agents to build their own AGENTS.md through natural-language corrections without any upfront manual configuration.
Frequently asked questions
What did this team achieve with this AI workflow?
LangChain shipped a file-based memory system backed by Postgres, with human-in-the-loop approval and schema validation, enabling agents to build their own AGENTS.md through natural-language corrections without any upf…
What tools did this team use?
LangSmith Agent Builder, Postgres, MCP, AGENTS.md, LinkedIn.
What results were reported?
candidates sourced per LinkedIn search: ~50 candidates; Prompting effort for memory system: one person working full time on prompting for memory; User instruction repetition eliminated: No reminder needed (source-reported, not independently verified).
What failed first in this deployment?
During development, the agent failed in multiple ways: not remembering when it should, remembering when it should not, routing memory to the wrong file type, generating files with invalid schemas, and failing to gener…
How is this back office ops AI workflow structured?
Builder creates task-specific agent → Agent executes task → User corrects agent in natural language → Agent edits its own memory files → Schema validation of updated files → Human approves memory update → Agent reads memory and applies preferences.