This guide explains how to use nanobot's long-term AI agent memory: session history, compressed archives, durable memory files, Dream consolidation, and Git-backed memory changes.
Use memory when an agent should remember stable preferences, project facts, decisions, and recurring context across sessions. Do not use memory as a dumping ground for every raw transcript; nanobot separates short-term messages from curated durable knowledge.
Use an installation with a configured model that has already returned a reply. If this is your first setup, follow [Quick Start](../quick-start.md), then return here. Existing WebUI users can continue in the current instance.
In a chat with write access to the agent workspace, say “Remember that for Acme release notes I prefer concise bullet points.” Ask which memory file the agent updated, then check the saved preference in a new chat.
To curate recent conversations with Dream instead, send these commands one at a time, waiting for each to finish:
Compaction puts recent conversation into the archive Dream reads. Inspect the changes to see what Dream saved. For corrections and restoration, follow [Save and Check a Preference](../memory.md#save-and-check-a-preference).
The files live in the configured agent workspace, normally `~/.nanobot/workspace/`. Selecting a project or starting a new topic does not move or isolate this memory.