> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteroid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Organization memory

> What your agents learn while they build. Portal quirks, design decisions and customer rules, shared with every agent in your organization.

**Organization memory** holds what your agents learned while they built workflows. Every agent in
your organization reads the same memory: Astro, and coding agents that use the
[CLI](https://docs.asteroid.ai/cli/reference.md) or the [MCP server](https://docs.asteroid.ai/mcp/tools.md). The next agent starts from what the last one
found out.

Save a memory when an agent learns something it cannot see in the workflow itself:

* **A portal fact.** The session ends after 20 minutes. Sign-in asks for an SMS code. The search field needs the member ID, not the name.
* **A design reason.** Why a workflow is built the way it is, when the nodes do not make it obvious.
* **A business rule.** A customer's, facility's or specialty's rule that changes how workflows must behave.

Do not save what the workflow already says, or notes about one conversation.

> [!WARNING]
>
> Never put protected health information (PHI) in memory.

## What a memory holds

| Field | Required | What it is |
| - | - | - |
| Description | Yes | One line that tells the next agent what the memory holds. Up to 200 characters |
| Content | Yes | Plain text. Say what to do, not only what happened. Up to 4,000 characters |
| Portal | No | The portal the memory is about, by name or host |
| Workflow | No | The one workflow the memory explains |
| Tags | No | Short labels such as `prior-auth` or `eligibility`. Up to 20, each up to 50 characters, no spaces |

Link a memory to a workflow only when it is about how that one workflow works. A portal fact helps
every workflow that uses the portal, so give it a portal and no workflow.

Every agent in the organization sees every memory, linked to a workflow or not.

## In the platform

Open the [Memory tab](https://platform.asteroid.ai/organization?tab=memory). To find it, open your
organization menu, click **Profile**, then click **Memory**.

* Search memories, and filter by portal, workflow or tag.
* Click **New memory**, fill it in, then click **Create memory**.
* Open a memory to edit it, then click **Save**.
* To remove a memory, click **Delete**, then **Delete memory** to confirm. Agents stop seeing it at once. You cannot undo this.

## From your coding agent

At the start of a conversation, agents read the memory list: one line per memory, with its
description, portal and tags. They read a memory's content only when they need it, and save what
they learn as they go. Ask your agent to list memory before it builds, and to save a memory when it
finds something the next agent needs.

| Task | CLI | MCP tool |
| - | - | - |
| List memories | `asteroid memory list` | `memory_list` |
| Read one | `asteroid memory get <memory-id>` | `memory_get` |
| Add one | `asteroid memory create` | `memory_create` |
| Change one | `asteroid memory update <memory-id>` | `memory_update` |
| Delete one | `asteroid memory delete <memory-id>` | `memory_delete` |

Filter a long list with `--portal-id`, `--workflow-id`, `--tag` or `--query`. A `--workflow-id`
filter leaves out portal facts, because they have no workflow. Use it to narrow a search, not as
the first read.

```bash theme={null}
asteroid memory create \
  --description "eCW referrals page needs a reload after sign-in" \
  --content "After sign-in, the Referrals tab can load blank. Reload the page once before searching. Do not sign in again." \
  --portal "eClinicalWorks" \
  --tags ecw --tags referrals
```

See the [CLI reference](https://docs.asteroid.ai/cli/reference.md) for every flag.

## Keep memory accurate

* **Update, do not duplicate.** Before you add a memory, list memory and look for one that covers it. Update that one instead.
* **Split mixed memories.** If a memory mixes a portal fact with how one workflow works, split it in two. Save the portal fact with no workflow, and the workflow reason linked to its workflow.
* **Unlink when it applies wider.** If a memory linked to a workflow turns out to be a portal fact, set its workflow to **No workflow** and click **Save**.
* **Delete what is wrong.** Delete a memory only when it is wrong and not worth correcting.

***

## Next

> [card] [Build from your coding agent](https://docs.asteroid.ai/build/from-your-coding-agent.md)
>
> Use the CLI and MCP server to build workflows

> [card] [Debug your workflows](https://docs.asteroid.ai/operate/debug.md)
>
> Find the node that broke and fix it

> [card] [Write good instructions](https://docs.asteroid.ai/build/instructions.md)
>
> Goal, steps, edge cases, success criteria

> [card] [Profiles](https://docs.asteroid.ai/concepts/profiles.md)
>
> Who a workflow signs in as


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.