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

# Memory

> vespin memory

Read, keep, and forget the workspace's shared memory of settled facts. Every command also takes the global flags `--json`, `-q`, `-w`, and `--url`, described in [CLI](https://vespin.dev/docs/cli.md#scripts-and-coding-agents).

## vespin memory list

List every memory of the workspace, the latest kept first

```sh theme={null}
vespin memory list [flags]
```

```sh theme={null}
# Every memory
vespin memory list
```

## vespin memory search

Search the workspace's memories by a few words, best first

```sh theme={null}
vespin memory search [flags] [<words...>]
```

| Argument or flag | What it does |
| - | - |
| `words... string` | A few words for the area at hand; none for the latest kept (optional) |

```sh theme={null}
# Memories about tests
vespin memory search how tests run
```

## vespin memory save

Keep a fact or convention in the workspace's memory, as your words

```sh theme={null}
vespin memory save [flags] [<text...>]
```

| Argument or flag | What it does |
| - | - |
| `text... string` | The fact or convention, as one self-contained statement (optional) |
| `--input, -F string` | The statement, from a file or - for stdin, in place of words |
| `--replaces string` | The memory this corrects, by its id, rewritten rather than kept beside |

```sh theme={null}
# Keep a convention
vespin memory save "Tests run on PGlite through test:store."

# Correct a memory in place
vespin memory save --replaces <memory> "Tests run on Postgres."
```

Give the statement as words or with `-F`, not both.

## vespin memory forget

Forget a memory for good: your own, or any where you own or administer the workspace

```sh theme={null}
vespin memory forget [flags] <memory>
```

| Argument or flag | What it does |
| - | - |
| `memory string` | The memory's id, as memory list prints it |

```sh theme={null}
# Forget one
vespin memory forget <memory>
```

For what agents keep and recall, see [Memory](https://vespin.dev/docs/memory.md).
