---
title: Memory
description: What Petawork remembers about you and your organisation, as short dated statements you can read, search, correct and pin, each with the words it came from, and how your agents use them.
section: globe
order: 24
audience: [user, operator, agent]
sources: [services/nodejs-cloud/lib/globe/memory, services/nodejs-cloud/components/globe/memory, services/nodejs-cloud/app/globe/api/memory, services/nodejs-cloud/app/api/cron/globe-memory, services/nodejs-cloud/lib/agents/quick-pure.ts, services/nodejs-cloud/migrations/0471_globe_memory_archive.sql, docs/adr/0088-move-in-from-ai-and-memory.md]
features: []
---

Memory is what Petawork knows about you and your work, kept as short statements: "Prefers short status updates",
"Ana Ruiz leads Billing", "Deploys go out on Tuesdays". Your agents read it, so you don't explain yourself again in
every chat. Open it at `/globe/memory`, the **Memory** view in Notes.

## What a memory is

Each memory has:

- **a statement**, one fact, preference, instruction, decision, procedure, person, project, term or event;
- **a vault**: yours, the org's, or a team's, with the same readers as that vault's notes;
- **the things it names**: people, organisations, products, places and concepts. These are the same entities your
  notes mention, so memories and notes meet. When a statement is a relation ("Ana Ruiz leads Billing") it joins two of
  them;
- **when it was said**, and **where it came from**: the imported conversation, the chat, the note, the person or the
  agent, with the words it rests on.

## Nothing is overwritten

When you learn something new, the old statement is not erased:

- A statement learnt a second time gains a source. It is not stored twice.
- A statement that replaces an older one ("Deploys moved to Thursdays") marks the old one **superseded** and points
  at it. The history stays under **History**.
- Editing a memory's text does the same: your new wording replaces the old, which is kept.
- **Retire** takes a memory out of use. Retiring it a second time deletes it.

## Where memories come from

| Source | What happens |
|---|---|
| Another app's memory | When you [move in from ChatGPT, Claude or Gemini](/docs/globe/move-in-from-ai.md), what that app had saved about you is stored word for word. Custom instructions are pinned |
| Imported conversations | Your organisation's model reads each conversation in full and keeps what will stay true. A statement is kept only if it can quote the conversation word for word |
| Petawork chats | A quick chat that has been quiet for an hour is read the same way. Turn this off under **Settings → How Notes learns → Learn from my Petawork chats** |
| You | **Add a memory** in the Memory view |
| Agents | An agent saves what you tell it will stay true (`globe_memory_save`) |

What the assistant said in a conversation counts only when you agreed with it or built on it. Small talk, one-off
questions and code written for a single task are skipped, and so is anything that looks like a password or key.

## Finding a memory

Type a question in the search box. Petawork ranks memories three ways and merges the results:

- **Words**: the statement contains the words you typed.
- **Meaning**: the statement means something close, when your organisation has an embedding model.
- **The graph**: a memory that names the same person, project or product as a match comes in beside it. Common names
  that appear on a large share of memories pull in nothing.

Each result says why it matched. Passages from your own imported chats that answer the question are listed below the
memories.

Without an embedding model, search is by words and the graph. The footer of the view says which.

## Pinned memories {#pinned}

A pinned memory is given to your agents at the start of every new quick chat, before your first message. Pin what
should always apply: how you like answers written, your role, standing rules. Custom instructions that move in from
another app arrive pinned. Up to 40 are used, about 6,000 characters together.

Everything else is found when needed: the agent searches memory when you refer to yourself, your work or an earlier
conversation.

## The org vault {#org}

A memory in the org vault is read by everyone in the organisation and their agents. So it does not get there by
itself:

- Anything an import or an agent saves into the org vault, or a team vault, is **waiting for review**.
- Someone who manages that vault approves or rejects it, one at a time or all that are shown.
- A person who manages the vault and adds a memory by hand saves it directly.

Agents cannot change, approve or delete a shared vault's memories.

## Entities

The **Entities** panel lists the people, organisations, products, places and concepts your memories name, with how
many memories name each. Pick one to see its memories and its relations.

## For agents {#agents}

The tools are on the Notes server, in the tool set `memory`:

| Tool | What it does |
|---|---|
| `globe_memory_search` | Recall by words, meaning and the graph. Call it before answering a question about the person, their work, their preferences or an earlier conversation |
| `globe_memory_save` | Save one statement the person states that will stay true. Never a secret |
| `globe_memory_list`, `globe_memory_get` | Read memories, with their sources |
| `globe_memory_update`, `globe_memory_delete` | Correct or retire a memory in the person's own vault |
| `globe_memory_decide` | Approve or reject waiting memories. A person's decision: an agent is refused |
| `globe_memorygraph_get`, `globe_memory_status` | The entity graph of a vault; counts and the models behind recall |

The REST twins are under `/api/v1/memories`. Everything is listed in
[what agents can do](/docs/cloud/agents-capabilities.md).

## What it runs on

Memory uses what Notes already has: your organisation's Postgres, its embedding model for search by meaning, and its
summary model for reading conversations, within the daily cap under **Settings → How Notes learns**. Nothing is sent
to another service. An organisation without a model keeps what people and other apps saved, and reading conversations
waits until there is one.
