Chains and agents that read what you chose to keep
Conversation buffers end with the process. A project record does not.
The Problem
LangChain memory classes are tied to the process that created them. When the process ends, so does what they held, unless you persist it yourself.
Persisting a transcript is not the same as keeping a decision. Replaying everything makes the prompt long without making it clearer.
How Stompy Helps
Stompy holds the part you decided was worth keeping, in a project that outlives any chain.
Wrap two functions over the REST API as LangChain tools, one to search and one to lock, and give the agent whichever it needs. Or connect an MCP client to https://mcp.stompy.ai/mcp and use the Stompy tools as they are.
The distinction matters. A buffer holds what was said. A Stompy project holds what you decided, each entry named, versioned and findable by meaning. Nothing is stored unless it is locked, and a lock tool is one you give the agent on purpose.
Integration Walkthrough
Give LangChain two plain functions
Two plain functions over the project's REST API. A project API key is minted by the project's owner while signed in, and works for that one project only. Read the project's own contexts and search with it; managing the project still needs a signed-in user.
import osimport httpxBASE = "https://api.stompy.ai/api/v1/projects/my-project"HEADERS = {"Authorization": f"Bearer {os.environ['STOMPY_PROJECT_KEY']}"}def lock(topic: str, content: str) -> dict:"""Keep a decision. Only called when the person asked for it."""r = httpx.post(f"{BASE}/contexts", headers=HEADERS,json={"topic": topic, "content": content})r.raise_for_status()return r.json()def search(query: str) -> dict:"""Find what the project already holds, by meaning."""r = httpx.get(f"{BASE}/search", headers=HEADERS, params={"query": query})r.raise_for_status()return r.json()
Wrap them as tools
The tool decorator from langchain_core turns each function into something an agent can call. The docstring becomes the description the model sees.
from langchain_core.tools import toolsearch_tool = tool(search)lock_tool = tool(lock)tools = [search_tool] # add lock_tool only where you want the agent to write
Start from the brief
project_brief compiles the project's locked contexts and ticket summary into a short overview a new session can read. It is a summary of what you chose to keep, not a transcript.
project_brief(project="my-project")
What You Get
- What is kept is what you decided, not a replay of everything that was said
- Reads and writes are separate tools, so you grant each on purpose
- Search by meaning finds an entry without knowing its topic name
- The record is outside the chain, so any other tool can read it too
Start your own record
Join the waitlist and we will tell you when your place is ready.