Skip to main content
πŸ•ΈοΈ
LangGraph+Stompy

Graph state for a run, a project record for everything after

Checkpoints answer what the graph was doing. A record answers what you decided.

The Problem

LangGraph's checkpointing is good at what it is for: resuming a graph where it stopped. It is the state of one run.

It is not a record of the project. The decisions behind the work, and why they were made, are in none of the checkpoints.

How Stompy Helps

Stompy is the record of the project, and any node can read it.

Give the graph's agents the search function, and the lock function only on the node where you expect a decision to be kept. Because the project sits outside the graph, a later graph, a different framework or a person at a terminal can read the same entries.

In a multi-agent graph this is what keeps the agents consistent with one another: they read the same entries rather than each carrying a private summary.

In our own six-agent benchmark (one full-stack feature, built by six agents, run on 7 March with Sonnet 4.6 and Opus 4.6), the swarm working from a shared record cost 43% less than the same swarm without one. That is one run of one workload, not a saving to expect on yours. Haiku 4.5 went from 0 of 40 tasks to 39 of 40. The full tables are on the deep dive page.

Integration Walkthrough

1

Give the graph 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 os
import httpx
BASE = "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()
2

Use them as tools in the graph

LangGraph uses LangChain tools. A prebuilt agent takes a list of tools; add the lock tool only where a write is intended.

from langchain_core.tools import tool
from langgraph.prebuilt import create_react_agent
agent = create_react_agent(model, [tool(search)])
writer = create_react_agent(model, [tool(search), tool(lock)])
3

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

  • A record of decisions that outlives any single run or graph
  • Agents in a multi-agent graph read the same entries rather than private summaries
  • Writes are granted per node, so the record stays curated
  • Readable from other frameworks and from a terminal as well

Start your own record

Join the waitlist and we will tell you when your place is ready.