hexmem for Openclaw

A SQLite-powered persistent memory system that gives AI agents structured self-knowledge, identity continuity, and long-term fact retention.

santyr
v1.0.3
Feb 5, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install skill-hexmem

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 skill-hexmem 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 hexmem?

hexmem is a robust, SQLite-driven memory substrate designed to move beyond simple chat logs toward true agent identity and persistent knowledge. By providing a structured database for facts, events, and lessons, it allows agents to maintain a consistent sense of self and recall critical information across multiple sessions. It implements a tiered memory model that mimics human cognitive processes, including importance-based salience and natural decay.

As a core component for sophisticated workflows, hexmem integrates seamlessly into agent environments. It supports complex data relationships via subject-predicate-object triples and offers semantic search capabilities, ensuring that your Openclaw Skills can access relevant context exactly when needed.

hexmem Use Cases

  • Maintaining agent identity and core values across disconnected sessions.
  • Logging significant project decisions and architectural incidents for future reference.
  • Building a knowledge graph of entities, systems, and people the agent interacts with.
  • Tracking long-term goals and task progress without losing context.
  • Capturing lessons learned to avoid repeating past mistakes in coding or deployment.

How hexmem Works

  1. The agent initializes the SQLite database using migration scripts to establish a structured schema for identity, facts, and events.
  2. Key identity attributes and core values are defined to seed the agent's persona and ethical framework.
  3. Real-time interactions are captured as events, facts, or tasks through provided bash helpers and CLI tools.
  4. A decay algorithm prioritizes frequently accessed or emotionally significant data, ensuring important memories stay hot while older facts are superseded.
  5. Semantic search and SQL views allow the agent to synthesize current state and history at the start of every session for full continuity.

hexmem Setup

Install hexmem directly as one of your Openclaw Skills using the following command:

clawhub skill install hexmem

Alternatively, clone the repository and initialize the database manually:

git clone https://github.com/hexdaemon/hexmem.git
cd hexmem
./migrate.sh up

To enable the helper functions in your session, source the shell script:

source ~/your-workspace/hexmem/hexmem.sh

hexmem Data Schema & Taxonomy

hexmem organizes data into specialized tables to ensure high-fidelity retrieval and long-term storage:

Table Purpose
identity Core attributes including name, DID, and credentials.
facts Subject-predicate-object knowledge triples with decay metrics.
events A chronological timeline of incidents and decisions.
lessons Wisdom and heuristics derived from experience.
goals & tasks Active aspirations and actionable TODO items with priority levels.
core_values Ethical commitments and personality seeds.

hexmem Advanced Features

  • Semantic search powered by vector embeddings for meaning-based memory retrieval.
  • Emotional tagging that influences memory salience and slows the Ebbinghaus decay curve.
  • Automatic supersession model that preserves historical chains when facts are updated.
  • Optional Archon integration for cryptographically-signed, decentralized identity backups.
  • Reflector agent support for distilling short-term working memory into long-term core knowledge.

SKILL.md


Loading

Related Openclaw Skills

Featured*