docs/guides/ai-agent-memory.md
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.
USER.md and MEMORY.mdUse 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.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot agent -m "Hello!"
Ask the agent to remember a stable fact in a normal session, then run Dream:
/dream
Inspect recent memory changes:
/dream-log
The exact files live in the active workspace, usually under
~/.nanobot/workspace/.
history.jsonl./dream-prompt init when a workspace needs custom memory guidance.SOUL.md, USER.md, and
memory/MEMORY.md./dream and inspect /dream-log./dream-restore to inspect and restore
previous versions.