You've configured your OpenClaw agent. It works well in a single conversation. But start a new session and it seems to have forgotten everything. You tell it the same things again. It makes decisions you already resolved. It doesn't feel like a persistent assistant — it feels like a fresh chatbot every time.
This is a memory architecture problem. And it's one of the most common issues in OpenClaw setups.
Why Default Memory Breaks Down
OpenClaw has two types of memory by default:
- Conversation history — the running transcript of your current session. Gets appended to every API call. Grows indefinitely. Gets expensive. Gets truncated. Gets lost when you start a new session.
- Workspace files — markdown files in your workspace directory that your agent can read and write. Persistent across sessions. Free to store. The only memory that actually survives.
Most people rely entirely on conversation history for memory — which means their agent "forgets" everything the moment they start a new session or the context window fills up.
⚠️ The fundamental rule: Anything important needs to live in a file, not just a conversation. Conversation history is temporary. Files are permanent.
The Structured Memory System
A good memory architecture separates your agent's knowledge into specific files, each with a clear purpose. Here's the system we configure in every Pro and VIP setup:
├── SOUL.md # Identity, mission, tone, constraints
├── USER.md # Your name, preferences, timezone, context
├── HEARTBEAT.md # Idle work instructions
├── memory.md # Core persistent facts and decisions
└── memory/
├── projects.md # Active projects and status
├── people.md # Contacts, relationships, context
├── decisions.md # Key decisions made and why
├── learnings.md # Lessons, patterns, what not to repeat
└── log.md # Running activity log
Each file has a specific job. Your agent knows which file to read for which type of information — and more importantly, knows which file to write to when it learns something new.
What Goes in Each File
memory.md — The Core Facts File
This is the single most important memory file. It holds the stable facts your agent needs on every turn: your mission, your businesses, your goals, your preferences, your current situation. Think of it as the briefing document a new employee would need to be effective on day one.
# memory.md
## Mission
Build $10K/mo recurring revenue through consulting + micro-SaaS.
## Active Income Lanes
1. Consulting ($4K/mo current, target $8K)
2. ClawReady setup service (new, 0 clients)
3. SaaS product (planning stage)
## Key Facts
- Primary contact method: Signal
- Work hours: 8 AM – 6 PM ET weekdays
- Home base: Cleveland, OH
- Hardware: Mac Mini M4 + NucBox backup
## Current Focus (updated weekly)
- Land first 3 ClawReady clients
- Ship SaaS MVP by end of month
- 2 blog posts per week minimum
memory/projects.md — Active Project Tracker
One section per active project. Status, next action, blockers, key decisions. Your agent checks this before starting any project-related work so it doesn't repeat steps or contradict earlier decisions.
# Projects
## ClawReady Launch
**Status:** Live at clawreadynow.com
**Next:** First 3 clients via Reddit outreach
**Blockers:** Need Josh to create Reddit account
**Key decisions:** $99/$199/$299 tiers, Calendly for booking
## SaaS MVP — [Project Name]
**Status:** Spec phase
**Next:** Validate with 5 potential users
**Blockers:** Need user interviews scheduled
**Key decisions:** Build with Next.js + Stripe, no-code first pass
memory/people.md — Contacts and Context
Anyone your agent might reference. Not a full CRM — just enough context to be useful. Who they are, how you know them, what's relevant.
# People
## Jarom Bergeson — KKOS Lawyers
- Relationship: Business attorney, Ohio LLC specialist
- Context: Manages entities via KKOS Trifecta framework
- Last contact: March 17 (re: SDIRA strategy)
- Note: Warm relationship, potential referral partner for LLC compliance tool
## [Client Name]
- Relationship: Consulting client
- Current project: OpenClaw setup for e-commerce team
- Last contact: March 25
- Next step: Follow up re: Phase 2 proposal
memory/decisions.md — Decision Log
Decisions your agent should never re-litigate without good reason. Pricing choices, technology choices, strategy pivots — documented with the reasoning so your agent doesn't suggest reversing them in a future session.
memory/log.md — Activity Log
A rolling log of what your agent has done. Heartbeat cycles, tasks completed, research findings. Lets your agent check what it's already done before repeating work.
How to Tell Your Agent to Use the Memory System
Having the files isn't enough — your agent needs to know to read them and write to them. Add this to your SOUL.md:
## Memory System
- Read memory.md at the start of every session for context
- Check memory/projects.md before any project work
- When you learn something important, write it to the appropriate file
- When a decision is made, log it to memory/decisions.md
- Never rely on conversation history for important facts —
always write to files so nothing gets lost between sessions
The Two Memory Mistakes That Break Everything
Mistake 1: One giant memory file
Some people put everything in a single memory.md that grows to thousands of lines. The problem: your agent has to read the whole thing every turn, which costs tokens and creates noise. Separate files let your agent read only what's relevant.
Mistake 2: No write instructions
Your agent won't automatically write to memory files unless you tell it to. Without explicit instructions, important context stays in the conversation — and disappears when the session ends. The write instructions in SOUL.md are what make memory actually persistent.
Memory Tiers: What to Build First
| Tier | Files | Who needs this |
|---|---|---|
| Minimal | SOUL.md + USER.md + memory.md | Anyone just getting started. Covers 80% of use cases. |
| Standard | + projects.md + decisions.md | Anyone running multiple projects or a business. |
| Full | + people.md + learnings.md + log.md | Power users, business operators, autonomous agent setups. |
Start minimal. Add files as you notice gaps. The right architecture grows with your usage.
Archiving: Keeping Memory Fast
Memory files grow over time. A log.md that's 2,000 lines costs more tokens to read than one that's 200. The solution: periodic archiving.
Every few weeks, move old entries from log.md and projects.md into an archive/ folder. Keep only the current and recent entries in the active files. Your agent stays fast and focused.
workspace/
├── memory/
│ ├── log.md # Current month only
│ └── archive/
│ ├── log-jan-2026.md
│ └── log-feb-2026.md
✅ The result: An agent that knows your situation, remembers your decisions, and picks up exactly where it left off — whether you start a new session after 5 minutes or 5 days.
Want your memory architecture set up properly?
We design and configure the full memory system as part of every Pro and VIP setup — tailored to your specific workflow and goals. Your agent will remember everything from session one.
Book a Pro Setup →