Memory System v2.0 for Openclaw

A high-performance, file-based semantic memory system enabling AI agents to persist and recall learnings and decisions with sub-20ms search speeds.

sieyer
v1.0.0
Mar 2, 2026
0
923
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install memory-system-v2-1-0-0

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install memory-system-v2-1-0-0 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Memory System v2.0?

Memory System v2.0 is a lightweight, pure Bash and jq-based infrastructure designed to provide AI agents with a persistent memory layer. Unlike standard context windows that clear between sessions, this skill allows agents to store learnings, decisions, insights, and events in a structured JSON index for near-instant retrieval. It is a vital component for developers building sophisticated Openclaw Skills that require historical context and long-term intelligence.

By prioritizing speed and simplicity, the system avoids the overhead of traditional databases while maintaining rigorous data organization. It utilizes a file-based architecture that scales effectively for agent workflows, ensuring that critical information like architectural decisions or user preferences is never lost. This enables a more seamless and intelligent interaction model where the agent grows smarter with every session.

Memory System v2.0 Use Cases

  • Persistent tracking of technical skills and patterns acquired during development sessions.
  • Recording architectural decisions and strategy shifts to maintain a historical log of why choices were made.
  • Capturing breakthrough insights and realizations to improve future problem-solving.
  • Logging project milestones and event completions for automated status reporting.
  • Storing user feedback and interaction details to personalize future agent responses.

How Memory System v2.0 Works

  1. The agent or user invokes the capture command to record a memory with specific metadata including type, importance (1-10), and context.
  2. The system appends the raw memory entry to a daily Markdown file for human-readable persistence.
  3. Simultaneously, the skill updates a centralized JSON index to facilitate high-speed semantic searches.
  4. When context is needed, the agent runs a search query against the index, filtering by keywords or minimum importance levels.
  5. An automated consolidation process can be triggered to summarize daily logs into weekly overview files for high-level analysis.

Memory System v2.0 Setup

To integrate this into your environment, follow these steps:

# Install the jq dependency (required for JSON processing)
brew install jq

# Ensure the memory-cli.sh script is executable
chmod +x ./memory/memory-cli.sh

# Initialize the system by capturing your first memory
./memory/memory-cli.sh capture --type learning --importance 10 --content "Initialized Memory System v2.0" --tags "setup,init"

Memory System v2.0 Data Schema & Taxonomy

The system organizes data across several directories to balance speed and readability:

Directory File Purpose
memory/ memory-cli.sh The primary command-line interface for all operations.
memory/index/ memory-index.json High-speed JSON index containing metadata and file pointers.
memory/daily/ YYYY-MM-DD.md Human-readable Markdown logs of every captured memory.
memory/consolidated/ YYYY-WW.md Weekly summaries generated by the consolidation engine.

Memory System v2.0 Advanced Features

  • Sub-20ms search performance optimized for real-time agent responses.
  • Multi-word search functionality with importance-based weighting and filtering.
  • Automatic weekly consolidation that uses AI to summarize daily events into coherent reports.
  • Detailed analytics and statistics to track memory distribution across different types and importance levels.
  • Native compatibility with Openclaw Skills workflows via AGENTS.md auto-capture protocols.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0