Conversation
I prefer quiet areas in Kyoto.
My budget is ₹1.5 lakh.
Lifecycle-managed memory for AI agents
Structured memory that evolves, adapts, and stays useful across conversations.
npm install memo-grafterPrefers quiet areas
Interested in Kyoto
Budget: ₹2 lakh
Prompt “Plan a calm 7-day Japan trip.”
How it works
A focused pipeline turns raw dialogue into structured memory that can evolve without losing its history.
I prefer quiet areas in Kyoto.
My budget is ₹1.5 lakh.
Processing updated budget…
Actually, my budget is now ₹2 lakh.
Matches existing budget factBudget: ₹1.5 lakh
v1 · SupersededBudget: ₹2 lakh
v2 · ActiveThe new message updates the existing budget memory while preserving the previous version.
Plan a quiet Kyoto trip within my current budget.
Destination: Kyoto
Preference: Quiet areas
Budget: ₹2 lakh
Favourite language: TypeScript Excluded
The difference
Two updates enter the system. Only one approach knows which fact the agent should trust.
My budget is ₹1.5 lakh.My budget is now ₹2 lakh.Traditional memory
MemoGrafter
TypeScript first
import { MemoGrafterAgent, OpenAIEmbedAdapter, OpenAILLMAdapter } from "memo-grafter";
// Set DATABASE_URL and OPENAI_API_KEY in your environment
const agent = new MemoGrafterAgent({
db: { connectionString: process.env.DATABASE_URL! },
llm: new OpenAILLMAdapter("gpt-4o"),
embedder: new OpenAIEmbedAdapter("text-embedding-3-small"),
});
// Initialize the agent and its memory store
await agent.initialize();
// Add memory from a conversation
await agent.invoke("I prefer quiet areas in Kyoto. My budget is ₹2 lakh.");
// Search for relevant memories
const memory = await agent.recall("Japan travel preferences");
console.log(memory.facts);MemoGrafter Studio
Search topics, review facts, inspect lifecycle history, resolve conflicts, and preview exactly what reaches the model.
Memory detail
User prefers quiet areas, is interested in Kyoto, and has a ₹2 lakh budget.
Start building
Start with TypeScript, keep every update inspectable, and recall only the context your agent needs.
npm install memo-grafter