memory-kernel

Stores typed markdown knowledge atoms with metadata for AI memory.

12|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/mainion-ai/memory-kernel --skill memory-kernel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-kernel
Source: https://github.com/mainion-ai/memory-kernel/tree/main/packages/openclaw-memory-kernel/skills/memory-kernel
Command: npx skills add https://github.com/mainion-ai/memory-kernel --skill memory-kernel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Memory Kernel provides a structured, typed memory store for AI agents, preserving knowledge across sessions and context windows, preventing forgetting and drift.

Core Features & Use Cases

  • Typed atoms: store knowledge as typed markdown files with metadata (type, status, confidence) so recall and rules can be evaluated precisely.
  • Recall, reflect, and conflict detection: support reliable retrieval, end-of-session cleanup, and auto-surfacing conflicts to maintain consistency.
  • Git-friendly persistence: files form the source of truth and can be backed by an optional SQLite index for fast queries.

Quick Start

Create a typed memory atom with the appropriate type, content, and confidence.

Frequently Asked Questions about memory-kernel

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

FAQPage Schema
How do I persist AI agent memory across sessions without losing context?

You persist AI agent memory across sessions by storing structured, typed atoms as markdown files with metadata like type, status, and confidence. This prevents forgetting and drift by using files as the source of truth for reliable recall.

What is typed memory for AI agents and when do I need it?

Typed memory for AI agents is a structured store that preserves knowledge like decisions, constraints, and beliefs using a defined schema with atom types and confidence levels. You need it for long-running tasks requiring reflection and rule enforcement.

How do I detect conflicting memories in an AI agent's knowledge base?

You detect conflicting memories by using a memory kernel that auto-surfaces conflicts during recall. It maintains consistency by evaluating typed atoms and supporting end-of-session cleanup to resolve contradictions in stored knowledge.

Can I use SQLite for fast memory recall queries in long-running AI agents?

Yes, you can use an optional SQLite index for fast recall queries in long-running AI agents. The typed markdown files remain the source of truth, while SQLite provides quick retrieval and filtering over the stored atoms.

Does AI agent memory persistence work without a database dependency?

Yes, AI agent memory persistence works without a database by using git-friendly markdown files as the source of truth. The optional SQLite index enhances query speed but is not required for basic typed memory storage and recall.

What is the best way to store AI agent beliefs and constraints with confidence levels?

The best way to store AI agent beliefs and constraints is using typed memory atoms with a defined schema. Each atom includes a type, status, confidence value, and optional TTL, allowing precise evaluation of rules and reflections across tasks.