shared-memory

Store and retrieve agent memories via pgvector in Supabase.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/teodorboev/socialai --skill shared-memory-teodorboev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shared-memory
Source: https://github.com/teodorboev/socialai/tree/main/.opencode/skills/shared-memory
Command: npx skills add https://github.com/teodorboev/socialai --skill shared-memory-teodorboev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a persistent, searchable memory layer for AI agents, allowing them to learn from past interactions, decisions, and outcomes, thereby enabling more intelligent and context-aware behavior over time.

Core Features & Use Cases

  • Stateful Agent Behavior: Enables agents to recall past actions, performance data, and feedback, moving beyond stateless execution.
  • Semantic Search: Stores and retrieves memories based on semantic similarity, ensuring relevant context is provided to agents.
  • Use Case: An AI content creator agent can recall previously successful post topics and engagement metrics to inform the generation of new content, avoiding repetition and optimizing for performance.

Quick Start

Use the shared-memory skill to store a memory about a successful marketing campaign.

Frequently Asked Questions about shared-memory

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

FAQPage Schema
How do I add persistent memory to an AI agent using Supabase?

To add persistent memory to an AI agent using Supabase, you implement a vector database layer with pgvector that stores and retrieves historical context, enabling stateful agent behavior over time.

What is semantic recall for AI agents and how does it work?

Semantic recall for AI agents is a memory mechanism that stores past interactions and retrieves them based on semantic similarity, ensuring relevant historical context is provided before execution to inform decisions.

Can I use pgvector to store human feedback and past performance for agents?

Yes, you can use pgvector to store human feedback and past performance by saving execution outcomes into the database, allowing the agent to learn from past topics and optimize future tasks.

What's the best way to make an AI content agent avoid repeating topics?

The best way to make an AI content agent avoid repeating topics is to store historical engagement metrics in a vector database, recalling previously successful posts to inform new content generation and prevent repetition.

Does an agent memory layer integrate with base agent architectures for execution?

Yes, an agent memory layer integrates with a base agent architecture by performing semantic recall before execution to gather context, and storing new interaction data after execution completes.