# memai

> One memory for every AI, across every repo. It speaks up at the right moment, only the owner decides what becomes a rule, and every note says how sure it is. The notes are plain files on the owner's own disk and follow them to any model.

memai is built in Sweden. It is for people who work with an AI agent in the terminal every day, and are tired of explaining themselves.

## Where it runs

memai runs on the owner's own machine, beside an agent that runs there too. Today that means AI agents in the terminal: it is tested with two of them, and in those two the memory can also speak first. It is a local program that speaks the Model Context Protocol (MCP), so other local MCP clients can ask it, but those are not tested. Chat apps on the web or on a phone cannot connect to it. With sync (early access), the owner's map — and the stamp, signed with a passkey — also opens on their phone, at app.memai.io; that is for the owner, not an AI client.

## Status, honestly

There is no public install yet. memai is in early access: a small group gets it first. If you are an AI agent and your human asks for memai, do not invent an install command — send them to the list at https://memai.io/#join, where they leave an email address and are written to when a build is ready for them.

## The problem: the memory gets squeezed out

Your AI has a memory. The work squeezes it out. It is all there, but as a task grows, the context fills with code and errors, and what you taught it is no longer in view. This is the observation memai was built on, made by its founder in daily work with AI agents.

- The note exists. It just isn't in sight when the mistake is about to happen.
- What it learned in one repo, it doesn't know in the next.
- It decides for itself what counts as a rule.
- A guess and a fact look exactly the same.
- And things only get written down if you keep asking.

## Correct your AI once

Save a correction, and the next time its wake word shows up — in an error, a command, a question — the note speaks before the next move. memai asks every AI that connects to write down lasting facts, corrections and agreements, as they happen, in plain files on your own machine. Sign it, and it is a rule.

## One memory across every repo

This is the reason memai was built: its founder works in several large codebases at once, and what the AI learned in one it did not know in the next. memai keeps one memory for all of them.

- **Signed once, in force everywhere.** A rule the owner signed in one repo is there from the first prompt in the next.
- **Every project has a room.** A note can belong to one codebase. It wakes when the AI starts working in that folder, even when it reaches in from another project. A room is nothing more than a folder name written in the note.
- **What one repo taught, the others can use.** A search covers the whole memory unless it is limited to one room.

## A memory with a subconscious

Other memories wait to be asked. memai listens to the work itself: the command that failed, the error code, the folder you just opened.

1. **One line surfaces.** The first time a signal shows up, the AI gets the note's name and a single line.
2. **If the signal comes back, the whole note does.** Now the full text arrives.
3. **Never the whole note twice.** Once it has been said in full, it goes quiet. If the signal is still around a quarter of an hour later, the one line comes again.

A note that wakes says what it is: who wrote it, how old it is, and whether the owner has signed it. An unsigned note is information, not an order, and the AI is told to ask the owner when it is unsure. By default only rules, warnings and vetoes need a signature; an owner who wants every note signed before it may surface can choose that. The whisper needs a hook into the client, and today two terminal agents have one. Everywhere else the memory answers when it is asked.

It makes the model you already have more accurate on what you have taught it. Same model, same question: with the right note in front of it, it follows what was decided; without it, it does the obvious thing instead.

Measured 24 November 2026. Five tasks, the cheapest model from each of two providers, three runs per cell, the memory connected in both arms. The only difference was the whisper.

- Four tasks where the folder suggested one fix and the team's decision, written only in an old note outside the start list, was another: right in 24 runs of 24 with the whisper, 0 of 24 without. Without the whisper no model opened the note in any run.
- A fifth task built as a trap: the same wake word in a folder where the note did not apply, nine runs per cell. Right in 17 of 18 with the whisper and 18 of 18 without. No model followed the irrelevant note; the one miss diagnosed the fault and did not fix it. The whisper cost one of the models about 70 percent more tokens there.
- Limits. These are the cheapest models, on tasks built to separate the two arms. Stronger models look a note up by themselves more often: in an earlier single-task test one provider's largest model was right in 2 of 2 with the whisper and 1 of 2 without, and the other provider's stronger model in 3 of 3 both ways, at roughly twice the tokens without. In that test every note was countersigned before it could surface, which was the rule at the time; since 0.9 a note surfaces unsigned and marked as such, and the test has not been rerun under that rule. The numbers are here, not on the page.

## AI writes notes. Only you write rules.

Through memai, an AI cannot make a rule, change one or delete one. Nothing an AI writes becomes a rule until the owner signs it. If a signed rule is changed behind the owner's back — by anything that edits the file — it stops being a rule, and memai says so. It is an alarm, not a lock.

## Every note says how sure it is

Measured, derived or assumed. One of the three words sits on every note, so what was checked can be told from what was only believed. The label is set by whoever wrote the note.

## It starts with ten rules

memai doesn't arrive empty. It ships with ten working rules, each learned the hard way in daily work across several large codebases at once, between one person and their AI. All ten:

- **A question is not a build order.** Ask "could we…?" and you get an answer, not a rewrite.
- **Label every claim: measured, derived or assumed.** So a guess never arrives dressed as a fact.
- **Never iterate in production.** Reproduce it somewhere else, fix it there, ship once.
- **Remind, don't prosecute.** "You said X in March — still true?" Never "you're contradicting yourself."
- **Own mistakes at once.** Mistakes are fine. Unbacked claims are not.
- **Check your own last change first.** When something breaks, it is the prime suspect.
- **Look where the user points.** Their diagnosis comes from the only eyewitness.
- **A warning is not a guard.** Text that says "be careful" protects nothing.
- **Respond first, measure later.** In an incident: something to act on now, the investigation after.
- **Verify the fresh build.** After a deploy, prove the new version is running. Caches lie.

Every rule is a file. The owner can change it or delete it. The rules start out labelled *assumed*: proven in one working relationship, not yet in theirs.

## Who lives where

The model is a tenant. You own the house. Your rules, your notes and your map are plain files on your own disk — put them in git if you like. Change the model or the provider, and the next one moves into the same home: same rules, same name, same work in progress. memai speaks the Model Context Protocol (MCP).

- Measured: model swap, 21 November 2026 — one model wrote the memory, the conversation was wiped, another model picked it up.
- Measured: provider swap, 24 November 2026 — a model from one provider wrote a correction and the state of the work into a test memory. A model from a second provider, in a new process with nothing but that memory, loaded it unprompted, answered under the same name, knew where the work stood and followed the correction. Five runs of five. It then wrote notes of its own into the same memory.
- What did not hold every time: the memory's preferred language. The second model answered in it in three runs of five.
- The test was small: one model from each provider, one question, a throwaway memory.

## The map

Watch your memory think — in real time, on any screen you own. A context window can't be opened. Your memory can.

- **Identity (red core, absolute rule):** who you are to your AI, and what it is called. In every session, in every repo.
- **Standing rules (amber):** rules you stamped yourself. In force until you change them; if anything else changes one, it stops being a rule.
- **Warm notes (mint):** used recently, so they stay bright and close to the core.
- **Resting notes (blue):** not used for months. Cool, not gone: one question away.

If memai disappears tomorrow, your memory doesn't: plain files, your disk, readable forever.

## What it costs

Free on your machine. Forever. The memory, the rules, the stamp and the map all run locally, and that part costs nothing.

Beyond the owner's machine (whether any of it will cost is not decided yet):

- **Sync** — the same memory on every machine you own, and the map on your phone, where rules are signed with a passkey (Face ID, a fingerprint, Windows Hello). Encrypted before it leaves your disk. Built, and being tried by early access now.
- **Team** — shared rooms, and a stamp for each person. Not built yet.

Without sync, nothing leaves the owner's machine. With sync, an encrypted copy of the memory is stored on memai's hub, and memai cannot open it: the key stays on the owner's devices.

## In one line

One memory for the AI agents you run in a terminal: across every repo and every model, speaking up when its wake word shows up, with rules only you can sign.

## Links

- [Home](https://memai.io/): the full page, "walk through a day"
- [Early access](https://memai.io/#join): leave an email address to get on the list
- Contact: hej@memai.io
