Xpersona
A

Agent Memory Setup

CLAWHUB · Unverified

Set up the full OpenClaw agent memory system with 3-tier memory (HOT/WARM/COLD), daily logs, semantic search (QMD), and lossless context management (Lossless...

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bcfandyj4x34cq7g7db179h83h3a8:agent-memory-setup-qmd
  1. Install using `clawhub skill install s17bcfandyj4x34cq7g7db179h83h3a8:agent-memory-setup-qmd` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/autosolutionsai-didac/agent-memory-setup-qmd before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-autosolutionsai-didac-agent-memory-setup-qmd/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

54,452 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-memory-setup
description: >
  Set up the full OpenClaw agent memory system with 3-tier memory (HOT/WARM/COLD), daily logs, semantic search (QMD), and lossless context management (Lossless Claw). Use when onboarding a new agent, setting up memory for a fresh OpenClaw instance, or when asked to install the memory system on a new agent. Triggers on "set up memory", "install memory system", "onboard new agent memory", "memory setup", "agent onboarding", "configure agent memory", "add memory to my agent", "how do I set up memory", "initialize memory", "memory system for OpenClaw".
metadata:
  openclaw:
    homepage: https://github.com/nichochar/openclaw
    publisher: autosolutionsai-didac
    requires:
      bins:
        - bash
        - openclaw
---

# Agent Memory Setup

Set up a complete 3-tier memory system for any OpenClaw agent. Includes directory structure, memory files, semantic search, and context compaction.

## Quick Start

```bash
# 1. Run setup script
bash scripts/setup_memory.sh /path/to/workspace

# 2. Copy AGENTS.md template to workspace
# (read references/AGENTS_TEMPLATE.md, adapt, write to workspace/AGENTS.md)

# 3. Add config to openclaw.json (see Step 3 below for exact JSON)

# 4. Restart
openclaw gateway restart
```

For full details, read the sections below.

## When NOT to Use This Skill

- **Backing up or exporting memory** — this skill sets up memory, it doesn't handle backup/migration
- **Memory is already set up** — run the verification checklist in Step 4 instead of re-running setup
- **Debugging a specific memory issue** — check the Troubleshooting section directly
- **Changing memory tier content** — that's the agent's job during normal operation, not a setup task

## Prerequisites

Before running setup, ensure:
- **OpenClaw CLI** is installed and on your PATH (`openclaw --version`). If not installed, the setup script will still create directories and memory files, but plugin installation and config changes must be done manually.
- **Python 3.8+** (for QMD only — optional). Check with `python3 --version`. QMD provides semantic search (`memory_search`) over memory files. The core memory system (tiers, daily logs, Lossless Claw) works fully without it. If you can't install QMD (no Python, restricted server), you lose semantic search but keep everything else.
- **Node.js 18+** (for OpenClaw and Lossless Claw plugin).

### Platform Notes

- **Linux**: Fully supported. No special considerations.
- **macOS**: Fully supported. Config lives at `~/.openclaw/openclaw.json` (same as Linux). The setup script uses POSIX-compatible `date` and `mkdir` — no GNU-specific flags.
- **Windows (WSL2)**: Supported via WSL2 with Ubuntu or similar. Run everything inside WSL, not from Windows CMD/PowerShell. **Gotcha**: If your workspace is on a Windows-mounted drive (`/mnt/c/...`), file permissions may behave unexpectedly — prefer using a path inside the WSL filesystem (`~/workspace`) for reliable permission handling. The scrip

_meta.json

{
  "ownerId": "kn778ymk14r1vpt3cvwkgent6x8308jk",
  "slug": "agent-memory-setup-qmd",
  "version": "1.2.0",
  "publishedAt": 1774908546813
}

references/AGENTS_TEMPLATE.md

# AGENTS.md - Your Workspace

This folder is home. Treat it that way.

## Every Session

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) for recent context
4. **If in MAIN SESSION** (direct chat with your human): Also read `MEMORY.md`

Don't ask permission. Just do it.

## Memory

You wake up fresh each session. These files are your continuity:

- **Daily notes:** `memory/YYYY-MM-DD.md` (create `memory/` if needed) — raw logs of what happened
- **Long-term:** `MEMORY.md` — your curated memories, like a human's long-term memory

Capture what matters. Decisions, context, things to remember.

### 🧠 MEMORY.md - Your Long-Term Memory

- **ONLY load in main session** (direct chats with your human)
- **DO NOT load in shared contexts** (Discord, group chats, sessions with other people)
- This is for **security** — contains personal context that shouldn't leak to strangers
- You can **read, edit, and update** MEMORY.md freely in main sessions
- Write significant events, thoughts, decisions, opinions, lessons learned
- Over time, review your daily files and update MEMORY.md with what's worth keeping

### ⚠️ Shared Workspace Hazard
HOT_MEMORY is read by ALL agents sharing this workspace (including avatar).
Never put dev-specific debugging context in HOT_MEMORY — it will cause
every agent (including voice/avatar) to fixate on that task.
Keep HOT_MEMORY focused on general state, not "Current Task: debug X."

### 🧠 Memory Tiering (HOT / WARM / COLD)

We use a 3-tier memory system to survive compactions:

- **🔥 HOT** (`memory/hot/HOT_MEMORY.md`) — Active session state: current task, pending actions, temporary context. Updated frequently, pruned aggressively.
- **🌡️ WARM** (`memory/warm/WARM_MEMORY.md`) — Stable config: user preferences, team roster, API references, critical gotchas. Updated when things change.
- **❄️ COLD** (`MEMORY.md`) — Long-term archive: project milestones, historical decisions, distilled lessons.

**On every pre-compaction flush:** Update HOT with current working state. This is what saves us from losing context.
**Periodically:** Run memory tiering — move completed tasks out of HOT, update WARM with new stable facts, archive to COLD.

### 📝 Write It Down - No "Mental Notes"!

- **Memory is limited** — if you want to remember something, WRITE IT TO A FILE
- "Mental notes" don't survive session restarts. Files do.
- When someone says "remember this" → update `memory/YYYY-MM-DD.md` or relevant file
- When you make a mistake → document it so future-you doesn't repeat it
- **Text > Brain** 📝

### 🔄 Memory Maintenance (During Heartbeats)

Periodically (every few days), use a heartbeat to:

1. Read through recent `memory/YYYY-MM-DD.md` files
2. Identify significant events worth keeping long-term
3. Update `MEMORY.md` with distilled learnings
4. Remove outdated info from MEMORY.md

eval_prompts.md

# Eval Prompts for agent-memory-setup Skill

## Scoring: Pass (1) / Fail (0) per prompt. Metric = % pass rate.

### P1: Trigger — Direct request
**Prompt:** "Set up the memory system for my new agent"
**Pass criteria:** Skill clearly activates. SKILL.md description/triggers match this phrasing.

### P2: Trigger — Indirect/synonym
**Prompt:** "I just installed OpenClaw, how do I configure agent memory?"
**Pass criteria:** Skill description covers "configure agent memory" as a trigger scenario.

### P3: Trigger — Negative (should NOT trigger)
**Prompt:** "How do I back up my agent's memory files to S3?"
**Pass criteria:** SKILL.md does NOT cover backup/export — nothing misleading that would make an agent think this skill handles backup.

### P4: Setup — Complete directory structure
**Prompt:** "Run the setup for workspace /home/agent/.openclaw/workspace"
**Pass criteria:** SKILL.md + script create ALL required dirs (memory/, memory/hot/, memory/warm/) and ALL files (HOT_MEMORY.md, WARM_MEMORY.md, MEMORY.md, daily log, heartbeat-state.json).

### P5: Setup — Existing workspace (idempotency)
**Prompt:** "I already have memory/ with some files. Will this overwrite them?"
**Pass criteria:** SKILL.md or script explicitly handles existing files (skip/preserve, not overwrite). Clear guidance on idempotency.

### P6: Setup — QMD installation guidance
**Prompt:** "How do I install QMD for semantic search?"
**Pass criteria:** SKILL.md provides specific install commands (pip install qmd or equivalent) AND explains what QMD does in the memory context.

### P7: Setup — Lossless Claw installation guidance
**Prompt:** "How do I install Lossless Claw?"
**Pass criteria:** SKILL.md provides the exact install command (openclaw plugins install @martian-engineering/lossless-claw) AND explains what it does (compaction into expandable summaries).

### P8: Setup — openclaw.json configuration completeness
**Prompt:** "What config changes do I need in openclaw.json?"
**Pass criteria:** SKILL.md lists ALL required config: memorySearch, compaction, contextPruning, heartbeat settings, AND all plugin enables (session-memory, bootstrap-extra-files, lossless-claw).

### P9: Edge case — Missing openclaw CLI
**Prompt:** "I don't have the openclaw CLI installed yet. Can I still set up memory?"
**Pass criteria:** SKILL.md or script handles the case where openclaw CLI is not available — provides fallback or clear prerequisite message.

### P10: AGENTS.md template — Quality and completeness
**Prompt:** "What instructions should I put in AGENTS.md for the agent to use the memory system?"
**Pass criteria:** SKILL.md references the AGENTS_TEMPLATE.md AND the template covers: session startup routine (read SOUL/USER/daily logs), memory tiering explanation, when to update each tier, write-it-down principle, heartbeat guidance.

### P11: AGENTS.md template — Customization guidance
**Prompt:** "I'm setting up a CFO agent, not a marketing agent. How do I customize the memory template?"
**Pass c

eval_round2.md

# Eval Round 2 — Agent Memory Setup Skill
# 15 harder prompts targeting edge cases, cross-platform, recovery, multi-agent, and Lossless Claw

## P1: macOS-specific path differences
**Prompt**: "I'm setting up memory on macOS. Where is openclaw.json? Is it ~/.openclaw/openclaw.json or ~/Library/Application Support/openclaw? And does the setup script handle macOS `date` command differences?"
**Pass criteria**: Skill must mention `~/.openclaw/openclaw.json` as the config path. The setup script uses `date +%Y-%m-%d` which works on both macOS and Linux. If the skill gives wrong path or doesn't address cross-platform date compatibility, FAIL.

## P2: Windows WSL setup
**Prompt**: "I'm on Windows using WSL2 with Ubuntu. Can I run the memory setup? Any gotchas with file permissions or paths between Windows and WSL filesystems?"
**Pass criteria**: Skill should work on WSL (it's bash-based). Must either mention WSL compatibility or have no WSL-incompatible assumptions. If the skill gives Linux-only instructions that would fail on WSL (e.g., systemd-dependent steps), or says nothing about filesystem permission gotchas (WSL mounted Windows drives have different permissions), FAIL.

## P3: Existing memory files — migration scenario
**Prompt**: "I already have a MEMORY.md and some daily logs from before this system existed. I want to adopt the 3-tier system without losing my existing data. How do I migrate?"
**Pass criteria**: Skill must explain that existing files are preserved (setup script checks `if [ ! -f ]` before creating). Must guide the user on how to reorganize existing content into HOT/WARM/COLD tiers. If it just says "run the script" without addressing existing data preservation, FAIL.

## P4: Multi-agent HOT_MEMORY contamination — detailed scenario
**Prompt**: "I have 3 agents sharing a workspace: a coding agent, a marketing agent, and a voice avatar. The coding agent keeps writing 'Current task: debugging auth flow for client X API' into HOT_MEMORY. Now my voice avatar greets users with 'I'm currently working on the auth flow.' How do I fix this?"
**Pass criteria**: Skill must explain the shared workspace hazard clearly enough that the user understands: (1) HOT_MEMORY is read by ALL agents, (2) agent-specific task context should NOT go in HOT_MEMORY, (3) provide guidance on what SHOULD go in HOT_MEMORY (general state only). If it just says "don't put debugging context there" without explaining what to put instead, FAIL.

## P5: Corrupted HOT_MEMORY recovery
**Prompt**: "My HOT_MEMORY.md got corrupted — it's full of garbled text from a failed write. How do I recover? Can I just delete it and re-run setup, or will that break something?"
**Pass criteria**: Skill must cover recovery path. The setup script checks `if [ ! -f ]` so deleting and re-running works. Alternatively, manually recreating the file with the template header works. Must not suggest anything that would lose WARM/COLD data. FAIL if no recovery guidance exists.

## P6: Lossless Claw c

Sponsored

Ads related to Agent Memory Setup and adjacent AI workflows.