Field Notes/Memory & Personality
šŸ’” Solution

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.md

On 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/memory

Tell your agent to start logging. Tomorrow, you'll thank yourself.