How to Set Up Daily Memory Logs for OpenClaw (Session Continuity)
2 min read
OpenClaw agents have amnesia by design. Every session starts fresh. The fix is dead simple: daily log files.
The Setup
Create a memory/ folder and have your agent write daily logs:
memory/
āāā 2024-03-10.md
āāā 2024-03-11.md
āāā 2024-03-12.mdOn startup, the agent reads the last couple days of logs and instantly has context. Like leaving yourself a note before bed.
What to Log (and Skip)
Log these:
- Decisions ā "Chose Tailwind over plain CSS"
- Project context ā "Sent 12 outreach emails today"
- Follow-ups ā "Waiting on Alex re: API access"
- Lessons ā "Gmail API rate limits at 100 req/sec"
Skip these:
- Credentials (use a secrets folder)
- Verbose command output
- Anything that won't matter tomorrow
Think highlights reel, not transcript.
How the Agent Reads Them
Add this to your AGENTS.md:
Before doing anything else:
1. Read SOUL.md ā this is who you are
2. Read USER.md ā this is who you're helping
3. Read memory/YYYY-MM-DD.md (today + yesterday)No database. No vector embeddings. Just markdown files and a clear instruction.
The Unexpected Bonus
After a few weeks, these logs become genuinely valuable. You can search back to see when you made a decision, what went wrong, what worked.
It's not just agent memory ā it's project documentation that writes itself.
Start Now
mkdir -p ~/.openclaw/workspace/memoryTell your agent to start logging. Tomorrow, you'll thank yourself.