What it is

StateWeave makes an agent’s memory a causal graph instead of a chat transcript. Every fact, tool result, and answer becomes a small node. Nodes that build on each other are linked. Nothing is deleted. Each model prompt is a bounded view of that graph, not the whole graph.
The provider still gets a linear stream of tokens, because transformers need one. StateWeave treats that stream as a temporary view. The graph stays the truth.
The one principle

The graph is truth. The prompt is a view.

Who owns what

StateWeave owns

Nodes, projection, action parsing, tool evidence, validation, traces.

You own

The model, tools, persistence, policy, user interface, deployment.

Provider sees

One bounded prompt and a system instruction per call.

StateWeave is not a model, database, vector store, or hosted memory product. It is the state machine under an agent.

What you should know

  • One public class: Agent.
  • Durable object: AgentState.
  • Only 10 kinds of node (see Nodes).
  • No LangChain, no LangGraph, no graph database.
TypeScript SDK · Causal Weave v3 · source preview
Source preview. The public Agent engine, deterministic projection, provider token events, and recognized verification nodes are implemented in the development SDK. The npm package is not yet published, so the Quickstart builds the SDK from source. The remaining boundaries—provider choice, persistence, policy, and deployment—belong to your application.