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

# Project memory

> Save confirmed project conventions, decisions, and known issues so Inlay recalls them in future conversations.

Project memory keeps confirmed facts available across conversations in the same project. Use it for a stable build constraint, a confirmed hardware issue, a team preference, or a decision that future work should respect.

Keep temporary observations and unfinished investigation notes in the current conversation or in a [hardware case](/docs/debug-mode/hardware-scripts.md#keep-a-hardware-case). Put shared instructions and exact commands in [INLAY.md](/docs/core-concepts/inlay-md.md).

## Save a fact

Ask Inlay to remember it, and include the reason and the relevant files:

```text theme={"theme":"css-variables"}
Remember that release builds use cmake/toolchains/release.cmake because the
bootloader requires that linker layout.
```

Inlay files the entry as a pattern, preference, decision, or issue. You don't need to format it yourself. Inlay can also save a fact it confirms during a task.

Saving follows your [approval settings](/docs/core-concepts/approvals.md). The **Save Memory** card shows the entry before it's written; review it, then allow or decline. With **Skip all approvals**, or after an **Allow always** for file edits in the same chat, the save proceeds without a card.

Inlay saves memory in the project's `.inlay/memory.json` file. If you commit that file, everyone who opens the project starts with the same memory. If Inlay doesn't have permission to write to the project folder, it keeps the file in its own data folder instead, and it isn't shared.

## Find and update memory

Ask what Inlay already knows:

```text theme={"theme":"css-variables"}
What do we already know about the DMA buffer allocator?
```

When a fact changes, ask Inlay to update the existing entry rather than adding a second, contradictory one:

```text theme={"theme":"css-variables"}
Update the memory about the UART clock. The current board revision uses the
external oscillator; verify it against INLAY.md before saving.
```

The **Update Memory** card shows the old and new text. If a new entry would nearly duplicate an existing one of the same kind, Inlay updates the existing entry instead of adding a second one.

## Pin an important constraint

Inlay loads pinned entries in full at the start of every conversation:

```text theme={"theme":"css-variables"}
Pin the memory that production firmware must not allocate from the heap.
```

A project holds up to 50 entries, including up to five pinned entries. Inlay searches unpinned entries when a question touches their area.

* When five entries are already pinned, a new pin is saved unpinned. Unpin or remove an entry to make room.
* When the project reaches 50 entries, new saves fail until you remove outdated entries.

Keep pins for constraints that matter across tasks.

## Remove obsolete knowledge

```text theme={"theme":"css-variables"}
Forget the memory about the old J-Link flash sequence. The bootloader now
handles external flash initialization.
```

Remove entries in Act or Debug mode. Plan mode can save and search memory but can't remove entries. Removal shows a **Forget Memory** card and follows your approval settings; an **Allow always** for file deletions in the same chat also covers it.

Ask Inlay to list the remaining entries to check the result. Clearing or deleting a conversation doesn't remove project memory.


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