purple-horizons/memory-tools/memory-tools
Claude Code and agent skill by purple-horizons/memory-tools
- community
Checking that the SKILL.md file is still in the repository.
Agent-controlled memory plugin for OpenClaw with confidence scoring, decay, and semantic search. The agent decides WHEN to store/retrieve memories — no auto-capture noise. v2 uses file-based storage with optional QMD search (no external APIs required).
Install
npx vskill@latest install purple-horizons/memory-tools/memory-toolsSKILL.md
Memory Tools v2
Agent-controlled persistent memory for OpenClaw.
What's New in v2
- File-based storage — Memories stored as readable markdown files
- No external APIs — No OpenAI dependency, everything runs locally
- QMD search (optional) — BM25 + vector + reranking via local GGUF models
- Auto-migration — Seamlessly upgrades from v1 SQLite/LanceDB storage
Why Memory-as-Tools?
Traditional memory systems auto-capture everything, flooding context with irrelevant information. Memory Tools follows the AgeMem approach: the agent decides when to store and retrieve memories.
Features
- 6 Memory Tools:
memory_store,memory_update,memory_forget,memory_search,memory_summarize,memory_list - Confidence Scoring: Track how certain you are (1.0 = explicit, 0.5 = inferred)
- Importance Scoring: Prioritize critical instructions over nice-to-know facts
- Decay/Expiration: Temporal memories automatically become stale
- Human-readable storage: Markdown files with YAML frontmatter
- Conflict Resolution: New info auto-supersedes old (no contradictions)
Installation
Step 1: Install from ClawHub
Step 2: Build the plugin
Step 3: Activate the plugin
Step 4: Restart the gateway
Optional: Install QMD for better search
Without QMD, basic filtering works. With QMD, you get semantic search (BM25 + vector + reranking).
Node Compatibility (QMD)
- QMD may not be compatible with the newest Node ABI immediately.
- If QMD fails (for example
NODE_MODULE_VERSIONmismatch), memory-tools falls back to basic mode. - To force basic mode:
MEMORY_TOOLS_DISABLE_QMD=true. - For best QMD stability, use a Node LTS version supported by your installed QMD build.
Security Model
- No API keys or external credentials are required.
- Data is stored locally in
~/.openclaw/memories(or configuredmemoriesPath). - The plugin can prepend standing-instruction context at
before_agent_startwhenautoInjectInstructions=true. - The plugin does not override the base system prompt by default.
before_agent_startusesprependContextonly. allowSystemPromptOverrideexists as an explicit compatibility opt-in and defaults tofalse.- The plugin can auto-migrate legacy v1 data from
~/.openclaw/memory/tools/memory.dbwhenautoMigrateLegacy=true. - Defaults are conservative:
autoInjectInstructions,autoMigrateLegacy, andallowSystemPromptOverrideare allfalse.
Storage Format
Memories are stored as markdown files in ~/.openclaw/memories/:
Each memory file:
Memory Categories
| Category | Use For | Example | |
|---|---|---|---|
| fact | Static information | "User's dog is named Rex" | |
| preference | Likes/dislikes | "User prefers dark mode" | |
| event | Temporal things | "Dentist Tuesday 3pm" | |
| relationship | People connections | "Sarah is user's wife" | |
| instruction | Standing orders | "Always respond in Spanish" | |
| decision | Choices made | "We decided to use PostgreSQL" | |
| context | Situational info | "User is job hunting" | |
| entity | Named things | "Project Apollo is their startup" |
Tool Reference
memory_store
memory_search
memory_update
memory_forget
memory_summarize
memory_list
CLI Commands
Debugging
Memories are plain markdown files — just read them:
Export all memories:
Migration from v1
v2 automatically detects v1 databases and migrates them:
- On startup, v2 checks for
~/.openclaw/memory/tools/memory.db - If found, exports all memories to markdown files
- Original database preserved as backup
- No manual action required
To enable auto-migration, set autoMigrateLegacy: true in plugin config.
License
MIT — Purple Horizons
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/purple-horizons/memory-tools/memory-tools)