Skip to content
Back to skills

Openclaw Advanced Memory

ASecurity

Three-tier AI agent memory system — real-time capture, vector

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
devopspythongobashdockerdebugginggitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill openclaw-advanced-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openclaw Advanced Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openclaw Advanced Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-openclaw-advanced-memory/badge)](https://www.skillsdirectory.com/skills/modbender-openclaw-advanced-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: OpenClaw Advanced Memory
description: Three-tier AI agent memory system — real-time capture, vector
  search, and LLM-curated long-term recall.
---

# OpenClaw Advanced Memory

Three-tier AI agent memory system — real-time capture, vector search, and LLM-curated long-term recall.

## What It Does

Gives your OpenClaw agent persistent, searchable memory that survives across sessions:

- **HOT tier** — Redis buffer captures conversation turns in real-time (every 30s)
- **WARM tier** — Qdrant vector store with chunked, embedded conversations (searchable, 7-day retention)
- **COLD tier** — LLM-curated "gems" extracted nightly (decisions, lessons, milestones — stored forever)

## Requirements

- **Qdrant** — vector database (Docker recommended)
- **Redis** — buffer queue (Docker recommended)
- **Ollama** — local embeddings (`snowflake-arctic-embed2`) + curation LLM (`qwen2.5:7b`)
- **Python 3.10+** with `qdrant-client`, `redis`, `requests`

No cloud APIs. No subscriptions. Runs entirely on your own hardware.

## Setup

```bash
# 1. Start Qdrant + Redis (Docker)
docker compose up -d

# 2. Pull Ollama models
ollama pull snowflake-arctic-embed2
ollama pull qwen2.5:7b

# 3. Run the installer
bash scripts/install.sh
```

The installer sets up Qdrant collections, installs a systemd capture service, and configures cron jobs.

Edit connection hosts at the top of each script if your infra isn't on localhost.

## Usage

```bash
# Search your memory
./recall "what did we decide about pricing"
./recall "deployment" --project myproject --tier cold -v

# Check system status
./mem-status

# Force a warm flush or curation run
./warm-now
./curate-now 2026-03-01
```

## Schedules

| Component | Schedule | What It Does |
|-----------|----------|-------------|
| `mem-capture` | Always running (systemd) | Watches transcripts → Redis |
| `mem-warm` | Every 30 min (cron) | Redis → Qdrant warm |
| `mem-curate` | Nightly 2 AM (cron) | Warm → LLM curation → Qdrant cold |

## How Curation Works

Every night, a local LLM (`qwen2.5:7b` via Ollama) reads the day's conversations and extracts structured gems:

```json
{
  "gem": "Chose DistilBERT over TinyBERT — 99.69% F1, zero false positives",
  "context": "A/B tested both architectures on red team suite",
  "categories": ["decision", "technical"],
  "project": "guardian",
  "importance": "high"
}
```

Only decisions, milestones, lessons, and people info make the cut. Casual banter and debugging noise get filtered out.

## Links

- **GitHub:** https://github.com/jtil4201/openclaw-advanced-memory
- **Full docs:** See README.md in the repo for architecture diagrams, tuning guide, and adaptation notes

Files in this skill

  • README.md15.8 KB
  • SKILL.md2.7 KB
  • scripts/curator_prompt.md2.4 KB
  • scripts/embeddings.py1.1 KB
  • scripts/install.sh3.9 KB
  • scripts/mem_capture.py8.4 KB
  • scripts/mem_curate.py9.3 KB
  • scripts/mem_recall.py8.3 KB
  • scripts/mem_warm.py6.6 KB
  • scripts/setup_collections.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…