memory

Store and retrieve past cases in a local SQLite database with vector embeddings.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/RafayelGardishyan/rafayels-marketplace --skill memory-rafayelgardishyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory
Source: https://github.com/RafayelGardishyan/rafayels-marketplace/tree/main/plugins/rafayels-engineering/.opencode/skills/memory
Command: npx skills add https://github.com/RafayelGardishyan/rafayels-marketplace --skill memory-rafayelgardishyan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, sqlite_vec, fastembed, pyyaml, tiktoken, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Persistent cross-session memory helps agents recall past patterns, decisions, and corrections to streamline ongoing work.

Core Features & Use Cases

  • Cross-session memory stores successful patterns and review outcomes in a local database and can inject past cases into workflows at runtime.
  • Decision recall surfaces prior decisions and context when users ask to remember or recall information.
  • Local-first and deterministic: operates offline with sqlite-vec embeddings and governance rules to protect against memory poisoning.

Quick Start

Describe a memory entry to save a past decision so it can be recalled in future sessions.

Frequently Asked Questions about memory

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

FAQPage Schema
How do I keep context across sessions for my automation workflow?

To keep context across sessions, persistent cross-session memory stores past decisions and patterns in a local SQLite database, injecting prior cases into workflows at runtime to influence current tasks.

How does local vector embedding memory work for recalling past decisions?

Local vector embedding memory works by using sqlite-vec to index 384-d vectors from fastembed, allowing an agent to query and retrieve similar past cases or corrections from an on-disk SQLite DB.

Can I run cross-session memory retrieval completely offline?

Yes, you can run cross-session memory retrieval completely offline because the system is local-first and deterministic, relying on an on-disk SQLite database and offline fastembed vector embeddings.

What is the best way to prevent memory poisoning in an autonomous agent?

The best way to prevent memory poisoning is to apply deterministic write and update rules with quarantine and promotion stages, ensuring only validated patterns are saved to the local database.

How do I seed and query past cases using a local SQLite database?

You can seed and query past cases using a provided CLI that interacts with the on-disk SQLite database, allowing you to manually input prior decisions and retrieve them via vector similarity.

When do I need persistent memory for brainstorm and audit phases?

You need persistent memory for brainstorm and audit phases when you want to recall prior decisions, patterns, and outcomes to make context-aware choices and streamline ongoing work.