Skip to content

Persistent Postgres and pgvector memory layer for AI agents, exposed through an MCP server.

CCM score
45 of 100
skills.sh installs
186
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers episodes, facts, and working context stored in Postgres with pgvector and recalled by semantic search
  • Includes an 8-stage background consolidation pipeline that turns raw observations into facts, causal links, goals, and confidence-decayed beliefs
  • Exposes stash_remember, stash_recall, stash_facts, stash_context, and stash_forget tools over HTTP at /mcp
  • Designed for self-hosted setups that connect Claude Desktop, Cursor, Cline, or other MCP-compatible agents, with Docker Compose as the quickest start

Install

$ npx -y skills add reason-machines/trending-skills --skill stash-ai-memory -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Stash AI Memory

Skill by ara.so — Daily 2026 Skills collection.

Stash is a self-hosted persistent memory layer for AI agents. It stores episodes, facts, and working context in Postgres with pgvector, runs an 8-stage consolidation pipeline to turn raw observations into structured knowledge, and exposes everything via an MCP server that works with any MCP-compatible agent (Claude Desktop, Cursor, Windsurf, Cline, Continue, OpenAI Agents, Ollama, OpenRouter).

Architecture

Agent ──► MCP Server ──► Postgres + pgvector
                │
                └──► Background Consolidation Pipeline
                     (Episodes → Facts → Relationships →
                      Causal Links → Goals → Failures →
                      Hypotheses → Confidence Decay)

Quick Start (Docker — Recommended)

git clone https://github.com/alash3al/stash.git
cd stash
cp .env.example .env
# Edit .env with your LLM API key and model
docker compose up

This starts Postgres with pgvector, runs migrations, and launches the MCP server with background consolidation.

Environment Configuration

Details

Repository
github.com/reason-machines/trending-skills
Categories
Memory & Context, Databases
First seen
Jun 3, 2026

Questions

What is the stash-ai-memory skill for?

The stash-ai-memory skill gives AI agents a self-hosted persistent memory layer built on Postgres with pgvector. It stores episodes, facts and working context, and exposes them through an MCP server that agents can call across sessions.

How do I install stash-ai-memory?

Run npx -y skills add reason-machines/trending-skills --skill stash-ai-memory -y in your project. Once installed, the agent can use the skill to set up and connect to a Stash memory server.

Which skills are in the same Memory & Context category as stash-ai-memory?

stash-ai-memory sits in the Memory & Context category alongside handoff, caveman-compress, caveman-stats, caveman-learn and caveman-optimize. Its own focus is a persistent memory store with an 8-stage consolidation pipeline that turns raw observations into structured knowledge.

What do I need to run stash-ai-memory?

You need Docker to run the recommended setup, or Go to build the binary yourself. You also need an LLM endpoint and API key, such as OpenAI, Ollama or OpenRouter, set in a .env file.

More from reason-machines/trending-skills

All 251

Similar to Stash Ai Memory

More Memory & Context