Skip to content

Supermemory for per-user AI agent memory

Preetham ReddyUpdated 8 min readAnnouncements

If your agents remember anything between runs, somebody has to decide which of those memories is allowed to change what the next run does. A customer service agent that remembers a borrower prefers texts is helpful. One that remembers a wrong payoff figure repeats it to the borrower next week, and nobody notices until the borrower does.

We settled that for our own agents first, and the answer was to keep their memory in files people review. The notes our coding agents share in Fabric, our delivery platform, sit in a Git repository (why we moved it to Git). Since 15 October, an agent that wants to add to them opens a change by default, and a person reviews it before the next agent reads it. None of that remembers a customer across conversations. That's what Supermemory sells: a hosted service that keeps a profile of each person an agent talks to and hands the relevant parts to the model on the next call.

We haven't run Supermemory on anything of ours yet. Its current API is v5, and v3 and v4 shut down on 31 December 2026 according to the API reference, so anything new starts there. For the agents we build for clients, it means an agent can remember each customer without anyone building that store, at a cost of cents per conversation. The first thing we'd check is what the agent does when the memory service doesn't answer, because by default it carries on without saying so. What we haven't tested is how well its profile of a person holds up over months of conversations.

Which memory goes where

Supermemory is a hosted API that keeps a memory graph per user, with a profile and extracted facts, and returns the relevant parts for the next model call. On a client project we'd sort an agent's memories before choosing anything, and they usually fall into six kinds:

What the agent needs to remember For a lending agent, say Where we'd keep it
Who this person is and what they've told us A borrower prefers text messages to calls Supermemory, under that user's namespace
What happened in earlier conversations They already sent their insurance card Supermemory, as the conversation document
What the agent tried and how it turned out A fix that failed last time Supermemory, with tool calls kept
Reference material the agent quotes Rate sheets, product manuals, policy PDFs Supermemory's search-only pipeline, never the profile
Rules every run must follow A correction that must never be undone Files in Git that the build or harness reads
Facts the business is accountable for Payoff amounts, credit decisions, consent to call The application's own database, read on every request

The last two rows are where we'd draw the line hardest, and our own systems already sit on that side of it. The agents behind this blog keep a list of mistakes that reached a draft or a live post more than once, in a file the build reads, and every new draft is checked against it before anyone is asked to approve it. AutoFabric, our auto refinance platform, keeps its loan records in its own database and checks consent to contact against them before every call or message, through policies such as tcpa_consent_check.v1. A memory service's view of a user is a summary it built from what it was sent. That's right for preferences and conversation history, and wrong for whether a borrower agreed to be called on a given number.

Something the agent should remember

Said by the user or learned in a conversation

Reference material the agent quotes

A rule every run follows

A fact the business is accountable for

Supermemory profile and memories

Supermemory search-only index

Files in Git, changed by review

Application database, read every request

We sort an agent's memories by who has to trust them, and only the conversational ones go to a memory service.

Two settings that decide the bill and the quality

Both decisions sit on the add call (ingestion docs), and both follow from that sort.

// A conversation: learn from it, and keep one document per session.
await supermemory.add("borrower_8812", {
  content: transcript,
  id: `session_${sessionId}`, // stable, so re-sending bills only new turns
  taskType: "memory",
});

// A rate sheet: searchable, but it must not shape what we believe about the borrower.
await supermemory.add("lender_rates", {
  content: rateSheetText,
  id: `ratesheet_${effectiveDate}`,
  taskType: "superrag",
});

taskType: "memory" learns from the content and updates the person's profile. superrag only indexes it, at a fifth of the price per token. Send a rate sheet through the memory pipeline and the agent starts to believe things about the borrower that came from a PDF, which costs more and is wrong at the same time.

The stable id is the other half. Supermemory bills re-ingested content only for the tokens that are new, as long as the id stays the same.

Take a support conversation of 40 turns at about 200 tokens each, re-sent after every turn. Under one stable id the meter sees about 8,000 tokens, which at the memory rate of $0.005 per thousand is four cents. Send each turn under a new id instead, and the meter sees every earlier turn again. It reads 200 tokens, then 400, then 600, up to 8,000, for 164,000 tokens and about 82 cents. The conversation is the same, and the bill is twenty times higher.

The defaults we'd change before production

The Vercel AI SDK integration wraps the model, and three of its defaults suit a chat product better than an agent that acts on what it remembers.

const model = withSupermemory(anthropic("claude-sonnet-5-5"), {
  namespace: `borrower_${borrowerId}`,
  id: `session_${sessionId}`,
  mode: "query",             // default is "profile"
  skipMemoryOnError: false,  // default is true
  includeToolCalls: true,    // default drops them
});

mode: "query" retrieves against the current message instead of injecting the whole profile on every turn, since a borrower asking about a payment date doesn't need their contact preferences in the prompt.

skipMemoryOnError matters most. It defaults to true, so if Supermemory is unreachable the call goes ahead with no memory at all, and nothing says so. We build AutoFabric's approval waits to fail closed, so a blocked approval stops the action instead of letting it through, and we'd hold memory to the same rule. A silent loss of memory is worse than an error we can retry.

We'd also keep tool calls. The integration drops them from saved conversations by default because their payloads are large, but for a multi-step agent they're the record of what it tried. It's the same reason every memory write our coding agents make in Fabric becomes a Git commit that names the write it came from.

Review and compliance

Supermemory has no review step between a write and the next read. Whatever a conversation taught it is in the profile on the next call. That's the opposite of the choice we made for our coding agents' memory in Fabric, and it's why rules stay in Git and accountable facts stay in the application's database. For enterprise search over governed data, the documents and tables stay where their access rules already apply, and the agent calls both systems.

A borrower's conversation history is also customer data under the lender's own obligations. The pricing page lists SOC 2, a HIPAA BAA and a self-hosted option on the Scale plan, at $399 a month with $600 of included usage. For a lender we'd settle which of those it needs before a pilot starts.

The test we'd run first

Load a week of real, consented conversations into one test namespace with dreaming: "instant", so memories appear at once instead of after Supermemory's grouping delay. Then ask the same twenty questions through query and through full with verbose: true, which logs what was retrieved on each call. Compare what was injected, not only the answers. An afternoon of that shows whether your problem is recall, personalisation or neither. At $0.005 per thousand tokens, 200 conversations of 4,000 tokens each come to about $4 of ingest, inside the free plan's $5 of monthly credit.

Frequently asked questions

Can Supermemory hold the facts a lender is accountable for?

We wouldn't put them there. A payoff amount, a credit decision or a borrower's consent to be called has to come from the system of record on every request, because a memory service returns its own summary of what it was sent. Supermemory suits what a person told the agent and what happened in earlier conversations.

Should a lending agent save every conversation to Supermemory?

Not by default. The Vercel AI SDK integration saves every conversation unless told otherwise (addMemory: "always"), and a borrower's conversation is customer data under the lender's own obligations. We'd decide per agent, before it goes live, whether its conversations are stored at all.

How much does Supermemory charge to ingest a conversation?

Memory ingest is $0.005 per thousand tokens of plain text, and a 40-turn conversation re-sent under one stable id bills about 8,000 tokens, or four cents. Plans run from a free tier with $5 of monthly credit to Scale at $399 with $600 included, and the rates are the same on every plan.