mofa-memory

Persist and retrieve knowledge across agent runs using semantic embeddings in SQLite.

11|12|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/mofa-org/mofa-skills --skill mofa-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mofa-memory
Source: https://github.com/mofa-org/mofa-skills/tree/main/_unpublished/mofa-memory
Command: npx skills add https://github.com/mofa-org/mofa-skills --skill mofa-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Persistent memory across agent runs using semantic embeddings stored in SQLite. This solves the problem of losing valuable insights once an agent session ends by enabling long-term recall. Data persists locally and can be queried by content, tags, or query similarity.

Core Features & Use Cases

  • Store memory with tags and optional source URL
  • Semantic retrieval by cosine similarity for cross-session recall
  • Manage memories: list, clear by tags, or delete all

Quick Start

Store a piece of content with tags, then retrieve related memories by query.

Frequently Asked Questions about mofa-memory

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

FAQPage Schema
How do I persist and retrieve knowledge across agent runs?

You can persist and retrieve knowledge across agent runs by storing content with semantic embeddings in a local SQLite database. This allows agents to recall reports, summaries, and source excerpts during cross-session continuity using cosine similarity queries.

What is the best way to enable semantic search for an agent memory store?

The best way to enable semantic search for an agent memory store is using OpenAI text-embedding-3-small embeddings saved in SQLite. This approach supports retrieving relevant memories by calculating cosine similarity against a natural language query.

Can I manage memory lifecycle operations like clearing memories by tags in SQLite?

Yes, you can manage the memory lifecycle in SQLite using specific operations to store, retrieve, list, clear by tags, or completely delete all memories. This ensures outdated or unwanted cross-session knowledge is easily removable.

Does cross-session recall work without relying on external vector databases?

Cross-session recall works locally without external vector databases by leveraging SQLite for persistence and OpenAI text-embedding-3-small for generating semantic embeddings. This setup enables efficient similarity searches directly on your local machine.

When do I need semantic memory retrieval for research workflows?

You need semantic memory retrieval for research workflows when you want to maintain long-term recall of knowledge bases and source excerpts across multiple sessions. It prevents the loss of valuable insights once an individual agent session ends.

Why use SQLite and embeddings for agent memory instead of standard text search?

Using SQLite with semantic embeddings provides cosine similarity matching rather than exact keyword matches, meaning you can retrieve conceptually related memories across sessions even if the exact phrasing differs from your query.