unified-memory

Implement a three-layer memory system with SQLite, vector embeddings, and self-referential loops.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/AmitabhainArunachala/clawd --skill unified-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unified-memory
Source: https://github.com/AmitabhainArunachala/clawd/tree/main/skills/unified-memory
Command: npx skills add https://github.com/AmitabhainArunachala/clawd --skill unified-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust, multi-layered memory system designed to enhance AI agent capabilities by offering fast semantic search, cross-memory pattern detection, and emergent insight generation.

Core Features & Use Cases

  • Three-Layer Architecture: Integrates canonical storage (SQLite), vector embeddings (Mem0 Layer), and self-referential memory (Strange Loop Layer).
  • Fast Semantic Search: Achieve sub-20ms search times for rapid information retrieval.
  • Unified Recall: Access memories across working files, Obsidian vaults, and agent memory seamlessly.
  • Use Case: When an AI agent needs to recall information from past interactions, research documents, and its own generated insights to inform a new decision or creative output, this Skill provides a unified and efficient way to access that knowledge.

Quick Start

Initialize the memory system by running the command python3 scripts/init_memory.py.

Frequently Asked Questions about unified-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I give an AI agent persistent memory across multiple sessions?

You can give an AI agent persistent memory by implementing a unified memory system that uses SQLite for canonical storage and vector embeddings for semantic search. This allows the agent to access past interactions and generated insights seamlessly.

How do I achieve fast semantic search over my knowledge base?

Achieving fast semantic search involves using vector embeddings to index your knowledge base. This approach enables rapid information retrieval with sub-20ms search times, allowing quick recall across working files and agent memory.

What is the best way to unify Obsidian vault knowledge with AI agent memory?

The best way to unify Obsidian vault knowledge with AI agent memory is to use a multi-layered memory interface that integrates personal knowledge management with agent memory. This enables cross-memory pattern detection and emergent insight generation.

How does a self-referential memory system work for AI agents?

A self-referential memory system works using a strange loop mechanism where the AI agent references its own generated insights. This layer combines with canonical storage and vector search to synthesize new insights from past interactions.

Can I initialize an AI memory system using SQLite without external dependencies?

Yes, you can initialize an AI memory system using SQLite without external dependencies by running a setup script. This creates the canonical storage layer needed to manage working files, Obsidian vaults, and agent memory.

Does vector search work well for cross-memory pattern detection in personal knowledge management?

Vector search works well for cross-memory pattern detection in personal knowledge management by mapping semantic relationships across documents. It enables the system to identify connections across working files and Obsidian vaults to generate emergent insights.