Mimir Claw ๐ง
Persistent memory sweeper for OpenClaw.
If your agent keeps forgetting what you talked about yesterday โ this fixes that.
Mimir Claw reads your OpenClaw session transcripts and appends clean, daily Markdown logs to your workspace's memory/ directory. Your agent can then read those files on startup and actually remember prior conversations.
Named for Mรญmir โ the Norse god renowned for his knowledge and wisdom.
The problem
OpenClaw agents wake up fresh each session. Unless you write things down, they forget. Built-in MEMORY.md curation is great for long-term wisdom, but there's no raw, searchable record of what was actually said across sessions and channels.
The fix
A ~250-line Python script + a launchd/cron job that, every 15 minutes:
- Scans
~/.openclaw/agents/<agent>/sessions/*.jsonl - Extracts new user + assistant messages since last run (cursor-based, incremental)
- Strips OpenClaw's injected metadata blocks and heartbeat noise
- Appends clean Markdown blocks to
<workspace>/memory/YYYY-MM-DD-chats.md
Your agent can then read today + yesterday's *-chats.md on session start and have continuous context.
Example output
# Chat Log โ 2026-04-24
_Auto-swept by Mimir Claw. Raw conversation record._
### 07:00:12 โ ๐ค User `[main/01KPXY2A]`
Can we talk about that thing we built last week?
### 07:00:34 โ ๐ค Agent `[main/01KPXY2A]`
Yeah โ you mean the memory sweeper? Here's where we left offโฆ
Install
Requires Python 3.9+ (stdlib only, no dependencies) and an OpenClaw install.
git clone https://github.com/<owner>/mimir-claw.git
cd mimir-claw
./install.sh
The installer will:
- Copy
chat_sweeper.pyto~/.local/share/mimir-claw/