Skip to content
empremta ES Get started

Plate I Engram · the trace a memory leaves

So your assistant never asks twice.

empremta is memory for your assistants. It holds on to what each person tells them, and to whatever reaches them from elsewhere: emails, appointments, documents. Some things the model should always have in front of it, like who someone's accountant is. Others only need to turn up when the conversation gets there. empremta takes care of both.

We're a European company · your data stays in the EU · or on your own server

Fig. 1 · Move the mouse or click. When two neurons fire at the same time, the link between them gets stronger.

Empremta is Catalan for footprint. Neuroscientists call the trace a memory leaves in the brain an engram.

Plate II Neocortex and hippocampus · two memories

Knowing something isn't the same as remembering it.

You can't fit everything into the context window. Leaving it all to semantic search doesn't work either, because if a fact doesn't come up in the results, as far as the model is concerned it doesn't exist. So we keep what the assistant knows about a person apart from what has happened along the way, a bit like the brain does.

Neocortex · semantic memory

Facts

The things it can't forget. That her accountant is Pedro García, that she won't take meetings before ten, when her insurance renews. They go into every turn, whole, with no searching. Each product has its own fixed list of fact types, so the same thing doesn't end up saved under three different names.

100 % of facts reach the model, every time. They don't depend on a search getting it right.

Hippocampus · episodic memory

Memories

Everything else. How Tuesday's meeting went, that the renovation is behind schedule, a name that came up once. They're kept with their date and searched three ways at once.

  • By meaning, with vectors. It finds what's about the same thing even when it was said differently.
  • By the people and things it mentions, aliases included. Pedro, the accountant and Pedro García are one person.
  • By the exact words, for an unusual surname, a number or a reference code.

Anything unrelated to the question is left out. Each embedding model has its own cut-off, and we measured it.

Underneath it all · the messages as written

We also keep every message exactly as it was written. If the extraction missed something, search still finds it in the original text. Emails, events, tasks, tickets and documents work much the same way. They're stored in versions, so sending the same thing twice doesn't duplicate it, and when something changes the old version stops showing up.

Plate III Reconsolidation · nothing gets overwritten

When something changes, the old version stays.

If someone switches accountants, the new one becomes the current fact and the old one goes into the history with its dates. Every fact keeps the exact sentence it came from, which message that was and who said it. No sentence to back it up, no fact.

  • What happens to a new piece of information (add it, replace something, confirm it or flag it) is decided by code, not by the model.
  • When two versions don't match, both are kept and the assistant asks which one is right now. It doesn't pick one on its own.
  • When a promise is kept, a task is done or a ticket is resolved, it gets closed. It no longer counts as pending, and the date it closed is recorded.
  • Passwords, card numbers, account numbers and ID numbers are never stored.

Fact · the person · her accountant

  1. “Pedro García is my accountant now”

    Current since June 18 · she said it, in a message that day

  2. “Her advisor is still Marta Ruiz”

    Per “alerts@accounting-firm” · doesn't match what she said, so she gets asked

  3. “Marta Ruiz does my books”

    Replaced on June 18 · still in the history (fact_history)

Fig. 3 · How a fact changes over time. What someone else says is filed under their name and can't override what she said herself.

Plate IV Prefrontal cortex · source monitoring

Who said that?

A fact saved wrong gets repeated for years. And remembering something without knowing where it came from is exactly how false memories form. So everything keeps its source, and not everyone gets to create memory.

The person

Everything about themselves. What they say in their own words is the only thing that turns straight into a fact about them.

The assistant

Nothing. Models get things wrong sometimes, and that mistake would be treated as fact for years. We only read what it says to make sense of replies like “ok, five o'clock then”.

A human agent

In support they speak for the company, so what they promise counts as a fact, if the product's schema allows it.

Whoever sent an email

Filed under their name (“per alerts@insurer”). They can say what they like about other people, but about the person only what the schema lets them, like a renewal or a booking. If it clashes with what the person said, it gets flagged.

A document

It tells you things, and it's signed with the file name. If it says what the assistant ought to do, that isn't taken as given until the person confirms it.

And no tool is ever told whose memory it is. That's set by whoever connects, and the model can't change it.

Plate V Sleep · consolidation and reflection

Saving never keeps you waiting.

Your brain sorts out the day while you sleep, and something similar happens here. The message is saved straight away and the rest of the work goes into a queue, which retries when something fails and writes each job in one go. Nothing is left for “later, after I reply”, where it could get lost.

  1. Save

    The message as written, and its job in the queue.

  2. Extract

    Facts with their sentence, and memories, in the person's language, picked up from how they write.

  3. Merge

    With what was already there, following rules written in code.

  4. Embed

    Each vector knows which model made it, so switching models doesn't mix anything up.

Reflection · putting two and two together

Someone who has known you for years notices things. Reflection rereads the memories and writes down patterns, always with their sources: “all three times she said she was exhausted, she'd just come back from a trip”. With fewer than two sources there's no pattern, and it's never passed off as something the person said.

Fig. 5 · Slow waves, the ones of deep sleep. Run the mouse over them.

Plate VI Recall · what reaches the model

What the model sees before it answers.

On every turn, the product adds what we know about the person to the system prompt. Their profile, the people in their life, what's still unclear, what just changed, what's coming up in the next few days and whatever looks like the question. If that isn't enough, the model can ask for more.

recall
search everything it remembers
read_conversation
read a whole conversation
review_period
what happened between two dates
fact_history
how a fact has changed
read_item
read an email or a document
=== WHAT WE KNOW ABOUT LAURA ===
Commitments:
- quarterly return: file it before July 20 (since Jun 18)
Preferences:
- meetings: nothing before ten

=== THEIR PEOPLE AND THEIR WORLD ===
- Pedro García: her accountant (since Jun 18)

=== DISCREPANCIES TO CLARIFY ===
- advisor: “Marta Ruiz” (per “alerts@accounting-firm”)

=== UPCOMING DATES (14 days) ===
- Jul 20: file the quarterly return

=== MEMORIES SIMILAR TO THE QUESTION ===
- (Jun 18) Pedro asked her for the May invoices
  … there is more: use recall

Fig. 6 · A sample context, trimmed. The headings come out in the person's language.

Fewer tokens

Over MCP, the usage guide comes as a skill. A third of it stays in the instructions and the rest only loads when needed. Every result has a size limit and explains how to get the next part.

Look before saying “I don't know”

When the message is a question, the SDK makes the model use a tool in the first round. We measured it: without that, it sometimes answers without looking, even with something close right in front of it.

Marks that change the answer

“Per…” means someone else said it. “Not confirmed since…” means it may have changed. A pattern was worked out by the system and nobody actually said it. The guide tells the model what to do with each.

Plate VII Specialised areas · use cases

Every product talks about different things.

One service can give memory to several products, each with its own schema and keys. The schema says which kinds of fact exist, who they can be about and who's allowed to state them. Three come ready to use. For anything else you write your own, which is just a file.

Personal assistant

For an assistant that handles someone's calendar, tasks and email. It knows the people in their life, what they've promised and what they've been promised, their preferences, important dates, routines and the services they use. Anything from an email is filed under the sender's name.

personal schema

Project management

What was decided and why, who committed to what and by when, and what's still open, which closes once it's done. When the plan changes, you can see what was agreed on Tuesday and what holds today.

your own schema

Coding

Each repository gets its own memory, in Claude Code or any agent over MCP. Conventions, past decisions, mistakes you've already made once, how to get it running, what's left to do, and an index of the code.

coding schema

Business operations

Support and customers. Tickets until they're resolved, what each customer was promised, their account and how they've set things up. People at the same company share one memory, and what a real human agent promises commits the company.

support schema

Health

What the person says about themselves, in their words and with the date. Nothing is treated as said unless they said it, what someone else adds is filed under that person's name, and when something changes the previous value stays in the history.

your own schema

Health data gets special protection under the GDPR. empremta gives you the tools: every person kept separate, export and erasure, a log that never stores text, and the option to run it on your own server. Complying with the law is up to the product that uses it.

Everything is always tied to one person in one product. We only keep a hash of each key, and a person's id never goes in a URL, because URLs end up in every proxy's logs.

Plate VIII Procedural memory · for coding

Claude Code and Codex remember every project.

One plugin, the same for both, loads the repository's memory when the session opens and saves what's new at the end of each turn. No more explaining again what you decided a month ago, the mistake you made last time or how you like to work. And since it's the same memory, what you talked through with one of them yesterday, the other knows today.

In Codex the commands are skills: $empremta:index, $empremta:import and $empremta:global.

  • /empremta:index maps the code without going through any model, from what each file declares, and updates it after every turn. find_code searches by what the code does and gives you the lines, not the whole file.
  • /empremta:global keeps your rules for every project. Only what you type yourself goes in.
  • /empremta:import brings in the repository's docs, with each file as the source. What a document says is taken into account, but it doesn't give orders.
  • history brings in what you talked about in that repository before installing it, in Claude Code and in Codex. You run it from a terminal, it tells you how much there is and what it will cost, and nothing is sent until you confirm.
  • It strips out secrets before sending anything, and a new folder doesn't join an existing memory until you confirm it in a terminal.
$ claude
<empremta-memory project="shop">
=== WHAT WE KNOW ABOUT SHOP ===
How they want to work:
- commits: push every one
Decisions:
- payments: partial refunds go through the dashboard, not the API (since Nov 12)
Known pitfalls:
- migrations: never edit one that was already applied
Setup and commands:
- local server: port 8080
</empremta-memory>

Fig. 8 · What Claude Code gets when the session opens, in a sample project.

Plate IX Synapse · connect your agent

Tell one agent, and the other one knows.

It works over MCP, at /mcp. Whatever you explain to Claude Code today, Codex will know tomorrow. Each person connects with their own token, which only opens their memory. And where you can't paste a token, like claude.ai or ChatGPT, you sign in with OAuth.

Paste this into your agent

Read https://empremta.bauber.xyz/agente.md and follow its steps to connect to my empremta memory.

The agent works out which agent it is, asks you for the service address and gives you the command on the right. It never sees the token, because you type it in yourself.

Or in your terminal

curl -fsSL https://empremta.bauber.xyz/instalar.mjs | node --input-type=module - --url https://empremta.bauber.xyz/mcp

It sets up the agents it finds, or the ones you name (claude codex grok antigravity). It asks for the token without showing it and checks it before touching anything. --dry-run tells you what it would do, and --remove disconnects it.

The most complete option. The repository's memory comes in by itself at the start of each session, what's new is saved at the end of each turn and the code gets indexed. When you enable it, it asks for the service URL and the key, which goes into the system's credential store.

# inside Claude Code
/plugin marketplace add /path/to/empremta/connectors
/plugin install empremta@empremta

# then, in the repository
/empremta:index

The same as in Claude Code, in Codex and its app. Codex doesn't ask anything when you install a plugin, so you give it the address and the key once in a terminal, and the key goes into the system keychain. Then approve the three hooks in /hooks, and again after every update.

# in the empremta repository
npm install && npm run build:sdk && (cd connectors && npm install && npm run build:codex)
codex plugin marketplace add /path/to/empremta/connectors
codex plugin add empremta@empremta

# the service address; the keychain asks you for the key
node connectors/claude-code/main.ts key https://empremta.bauber.xyz

# in Codex: approve the hooks and, in the repository
/hooks
$empremta:index

Just the tools, without the plugin. The agent searches the memory when it needs to, and gets the usage guide as a skill (/empremta:memory). The token goes in through standard input rather than the command line, so no other process on the machine can see it.

# paste the token (it stays hidden) and press enter
read -rs EMPREMTA_TOKEN
printf '{"type":"http","url":"https://empremta.bauber.xyz/mcp","headers":{"Authorization":"Bearer %s"}}' "$EMPREMTA_TOKEN" \
  | claude mcp add-json --scope user empremta -

In Codex's config.toml. The token is read from an environment variable, so it never sits in the file.

# ~/.codex/config.toml
[mcp_servers.empremta]
url = "https://empremta.bauber.xyz/mcp"
bearer_token_env_var = "EMPREMTA_TOKEN"

With Grok's own command, which saves it in ~/.grok/config.toml. Add --scope project to keep it to one project, and grok mcp doctor empremta tells you whether it connects.

grok mcp add --transport http empremta https://empremta.bauber.xyz/mcp \
  --header "Authorization: Bearer ${EMPREMTA_TOKEN}"

Works for both the editor and its CLI. It goes in your account's mcp_config.json, or in .agents/mcp_config.json if you only want it for one project.

// ~/.gemini/config/mcp_config.json
{
  "mcpServers": {
    "empremta": {
      "serverUrl": "https://empremta.bauber.xyz/mcp",
      "headers": { "Authorization": "Bearer emps_…" }
    }
  }
}

For clients that won't let you set a header, like a claude.ai connector (on the web, Desktop or mobile), a ChatGPT one or Cursor. You only give them the address. An empremta page opens saying who's asking for access and where it sends you back, you paste your token once and the client gets its own tokens, which stop working as soon as you revoke yours. The hosted version already has it; on your own server it needs its public address (EMPREMTA_PUBLIC_URL).

# claude.ai: Settings › Connectors › Add custom connector
# ChatGPT: a connector in developer mode
https://empremta.bauber.xyz/mcp

# Claude Code too, with no token in the command
claude mcp add --transport http empremta https://empremta.bauber.xyz/mcp

Any client that speaks Streamable HTTP and lets you set headers will do, like Claude Desktop, an IDE or an agent of your own. It keeps no session, and understands the 2026-07-28 protocol revision as well as the 2025 ones.

{
  "mcpServers": {
    "empremta": {
      "type": "http",
      "url": "https://empremta.bauber.xyz/mcp",
      "headers": { "Authorization": "Bearer emps_…" }
    }
  }
}

The token (emps_…) belongs to a single person. The product requests it with POST /v1/subject-tokens, it already knows whose memory it is, it expires after 90 days and you can revoke it whenever you want. With OAuth, the client never even sees it. The product key is never given to anyone.

Then just talk to it as usual

  • “What did we decide about refunds?” recall
  • “When did we switch databases?” fact_history
  • “What did we do last week?” review_period
  • “Remember that the payments API changes on Monday” remember

Plate X Afferent pathways · connectors

Their email, their calendar, their documents.

Each connector is a separate program that saves through the SDK. The service doesn't even know they exist, so you can add or remove them without touching it. A repeating event comes in once, with its next date.

  • Files

    PDF, DOCX, text, images

  • Gmail

    email, with its sender

  • Google Calendar

    events and series

  • ICS calendars

    iCloud, Outlook…

  • Telegram

    a bot

  • Any MCP

    whatever another server offers

Email

Gmail, read-only, with a Google Cloud desktop OAuth credential. What the person sends is theirs, and what they receive is filed under the sender's name. Spam, trash and drafts stay out.

google/main.ts auth · sync

Calendar

Google Calendar with the same credential, or any calendar through its private ICS link (iCloud, Outlook, Fastmail, Proton). Anything that repeats comes in once, with its rule and its next date.

ics/main.ts sync

Telegram

Your own bot, made with @BotFather. Whatever you write or forward to it goes into your memory. It only listens to the chats on its list, and forwarded messages are filed under whoever wrote them.

telegram/main.ts run

Tasks

The product sends them itself as task items, with their status, through the API or the SDK. If they live in a task manager with an MCP server, the MCP connector brings them in with whichever tool or resources you point it at.

POST /v1/items · mcp/main.ts sync

Documents

PDF, DOCX, text, Markdown, HTML, and images through a vision model, which can also run locally. Import them once or keep watching a folder, and documents by someone else are filed under their name.

files/main.ts import · watch

They all strip out secrets before sending anything and never resend what they've already sent. Run them from cron (--once) or leave them running (--every).

Plate XI Substrate · with the model you choose

You pick the model, including one that runs on your own machine.

The model that extracts and the one that makes the vectors are chosen separately. They can come from the same provider or from two different ones.

OpenAI or compatible

The OpenAI API or any server that speaks it, like LM Studio, Ollama, vLLM, llama.cpp or OpenRouter. If a server doesn't support something, it notices and stops sending it.

Gemini

Through Vertex AI with your gcloud credentials, or with an API key. Works for extraction and for vectors.

Claude

Through the Anthropic API or Vertex AI, for extraction. The vectors have to come from another provider.

Checked answers. Every reply from the model is validated against its schema, and if it comes back broken there's one attempt to fix it. Same with vectors: they have to be sound and the right size.

Vectors of any size. Each vector records which model it came from. If you switch models, they're rebuilt in the background without mixing old and new.

All on your machine. With LM Studio or Ollama serving a chat model and an embedding model, nothing leaves your computer.

Tested for real. Extraction, search, following a conversation, reflection and the code index are measured with real models, not just toy tests.

Plate XII Neuroimaging · the dashboard

See what it remembers.

The dashboard shows each memory piece by piece. Facts with their sentence and the ones that no longer hold, memories (the ones told and the ones worked out), documents, the code index and conversations. Its search box uses the same search as the assistant, and you can see the context it would get, block by block.

The graph can be flat or a sphere, with the person in the middle, recent things on the surface and the oldest further in. The dashboard only reads. It doesn't write, doesn't delete and doesn't load anything from outside.

Fig. 12 · A slice of a memory, with the old stuff inside. Drag it to spin it.

Plate XIII Deliberate forgetting · rights and privacy

It only forgets when you ask.

Nothing gets deleted along the way. The only thing that deletes is erasure, and someone has to ask for it explicitly.

Export and erase

Everything about one person, in one go. Erasing them also removes their trail from the log.

A log with no text

For each request we note the kind, how long it took and how it ended, never what was said or searched for. It clears itself after 30 days.

Personal tokens

So someone can connect their own MCP client without being able to see anyone else's memory. They expire and can be revoked.

European, in the EU or at home

It's made by a European company. The hosted version keeps everything in the EU and only uses models in EU regions. If you'd rather, install it with Docker and Postgres on your own server, and with local models nothing leaves your network.

Plate XIV Homeostasis · limits and usage

Each product has its own limits.

  • · requests per minute
  • · people
  • · messages per month
  • · documents per month
  • · tokens per month

Incoming data is reserved atomically before it's written, so with several instances running at once exactly what fits gets in. Once a limit is reached, reading still works, and whatever was already queued finishes being filed. If you don't set limits there aren't any, which is the usual case when you run it yourself.

Plate XV First stimulus · getting started

Three calls per turn, or one with the SDK.

The code, on GitHub

In TypeScript, the whole turn with any model

const memory = new Empremta({ baseUrl, apiKey: 'emp_…' });
const chat = claudeChat(new Anthropic(), { model: 'claude-sonnet-5-5' });
// or openaiChat(…), geminiChat(…)

const { text } = await memory.subject('laura').turn({
  text, conversation: { externalId: 'chat-1' }, chat,
});

From any language, with the API

# 1. the context, for the system prompt
POST /v1/context
# 2. whatever tools the model asks for
POST /v1/tools/recall
# 3. once it's done; filed in the background
POST /v1/messages

Or as an MCP server, for Claude Code, Claude Desktop or an IDE

# paste the token (it stays hidden) and press enter
read -rs EMPREMTA_TOKEN
printf '{"type":"http","url":"https://empremta.bauber.xyz/mcp","headers":{"Authorization":"Bearer %s"}}' "$EMPREMTA_TOKEN" \
  | claude mcp add-json --scope user empremta -

License

The server is under the Business Source License 1.1. It's free in production for non-commercial use, or if your company makes less than a million dollars a year. The one thing you can't do is offer it as a memory service. Each version becomes Apache 2.0 after four years.

SDK

MIT. No runtime dependencies other than the SDK of whichever provider you use.