Stash gives your AI agents a Postgres-backed memory layer that persists across sessions. It stores raw episodes, then runs an 8-stage consolidation pipeline that extracts facts, relationships, causal patterns, and goals from observations. Works with Claude Desktop, Cursor, Windsurf, and anything MCP-compatible. The Docker setup is straightforward: clone, add your LLM API key to .env, and compose up. You get semantic search over memories, working context storage, and automatic confidence decay on stale facts. If you're building agents that need to remember user preferences or learn from past interactions instead of starting fresh every time, this is a solid self-hosted option that doesn't lock you into a vendor.

skills.sh installs
186
GitHub stars
26
last updated
Jun 3, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill stash-ai-memory --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from aradotso/trending-skills

All 251
1aradotso avatarbux-claude-agentaradotso/trending-skillsbux claude agent169skills.sh installs
2sickn33 avatarai-mlsickn33/antigravity-awesome-skillsai ml165skills.sh installs
3fluid-tools avatarvercel-ai-sdkfluid-tools/claude-skillsvercel ai sdk163skills.sh installs
4erichowens avataragent-creatorerichowens/some_claude_skillsagent creator158skills.sh installs
5winsorllc avatarvector-memorywinsorllc/upgraded-carnivalVector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic sear151skills.sh installs
6evo-hq avatarsubagentevo-hq/evoProtocol that evo optimization subagents follow when dispatched from /optimize. Auto-loaded by spawned subagents via their host's skill loader. The orchestrator144skills.sh installs