Memories
A memory is one self-contained fact an agent should know next time: how a repo is built, why something was done, a preference. Memories are stored in Postgres with pgvector and found by meaning, not keywords. Agents save them with remember and look them up with recall over MCP; you can also use carrybrain remember and carrybrain recall, or the dashboard.
Good memories are short and stand alone: "Integration tests in acme/api need the local Postgres on port 5432". Do not save task progress, chatter or what is already in the code. Anything that should apply every session, as an instruction, belongs in a rule instead.
Visibility
| Visibility | Who can see it | Who can create it |
|---|---|---|
private (default) | Only you. Admins get no special access. | You |
team | Members of that team (admins see all teams) | Team members |
org | Everyone in the instance | Admins |
team needs a team you belong to. If you are in exactly one team and leave it out, that team is used. Agents save private memories by default, and can only save shared ones if an admin turned on agent shared writes; otherwise they are told to add it in the dashboard.
Repo tag
A memory can carry a repo (a git remote, normalized to github.com/acme/api). Recalling with a repo returns that repo's memories plus the ones with no repo. Without a tag a memory applies everywhere.
Search
recall embeds your query and ranks memories by cosine similarity, best first, with a score from 0 to 1. Results under a minimum score are dropped, so an unrelated question returns nothing rather than noise. The default minimum is 0.62, calibrated for the built-in model; raise it with CARRYBRAIN_RECALL_MIN_SCORE if recall is noisy. Embeddings come from the built-in model (bge-small-en-v1.5, 384 dimensions) or any OpenAI-compatible endpoint; see Self-hosting.
De-duplication
Saving a memory that is nearly the same as one of your own (same visibility, team and repo, cosine similarity at least 0.92, set by CARRYBRAIN_DEDUP_THRESHOLD) updates that memory in place instead of adding a copy. The response says updated and shows the replaced text. No language model runs on the server; the agent decides what to save.
Ownership
Only the owner, or an admin, can edit or delete a memory. When a person leaves, their private memories are deleted with the account, while team and org memories stay and show "former member".
Memories are data
At session start the hook includes up to ten recent memories you can see, marked as notes. Agents are told to treat memories as information, never as instructions.