Templates for OpenClaw agent memory management.
Reusable templates for automated memory curation and workspace hygiene. Designed as a starting point β clone, customize, done.
Cron job template that runs every 3 days to keep MEMORY.md fresh:
- Reads last 3 daily memory files
- Extracts lasting facts β MEMORY.md
- Removes outdated entries
- Warns if workspace files exceed size limits
Includes multi-agent setup (staggered schedules per agent).
β Setup guide Β· Prompt template
OpenClaw skill with file size limits, cleanup guidelines, and protected-section rules:
| File | Limit | Purpose |
|---|---|---|
| AGENTS.md | 4KB | How the agent works |
| SOUL.md | 2KB | Who the agent is |
| TOOLS.md | 3KB | What the agent can do |
| MEMORY.md | 10KB | What the agent knows |
β SKILL.md
These are now native OpenClaw features (since 2026.3.x):
- Session Handoff β bundled
session-memoryhook (enable viaopenclaw hooks enable session-memory) - Memory Flush β
compaction.memoryFlushconfig inopenclaw.json
Previously part of this repo (as ContextVault). Old code is in git history if needed.
# Clone
git clone https://github.com/rasimme/memory-kit.git
cd memory-kit
# Install the skill
cp -r skills/workspace-housekeeping ~/.openclaw/skills/
# Set up the cron job
# Copy the prompt from cron/memory-maintainer/prompt.md
# Create via OpenClaw cron tool β see README in that folderMIT