Stash Ai Memory
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
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, andstash_forgettools 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 -yInstalls 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- Unit 3 Hyprland Nier Rice185
- Hyperliquid Grid Trading Bot184
- Gpt Image Playground183
- Gova Declarative Gui180
- Vercel Xhttp Relay180
- Hyperliquid Trading Bot178
- Aster Bot Trading173
- Github Sandbox File Downloader170
- Bux Claude Agent169
- Gooserelayvpn Socks5 Tunnel165
- Gpt Pp Team Protocol Replay165
- Illustrated Explainer Spec165
- Autoteam F Chatgpt Team Rotation163
- Mhr Cfw Domain Fronting Relay160
- Openclaw Control Center4.4K
- Inkos Multi Agent Novel Writing2.8K
- Claude Hud Statusline2.7K
- Understand Anything Knowledge Graph2.4K
- Agent Browser Automation2.1K
- Agency Agents Ai Specialists2.1K
- Ui Ux Pro Max Skill2K
- Daily Stock Analysis2K
- Everything Claude Code Harness1.8K
- Gstack Workflow Assistant1.6K
Similar to Stash Ai Memory
More Memory & Contextcontext-engineeringrohitg00/pro-workflow180 installsMaster the four operations of context engineering — Write, Select, Compress, Isolate. Manage token budgets, compaction strategies, and context partitioning to k
cost-trackerrohitg00/pro-workflow180 installsTrack session costs, set budget alerts, and optimize token spend. Use to check costs mid-session or set spending limits.
context-managementrysweet/amplihack175 installsProactive context window management via token monitoring, intelligent extraction, and selective rehydration. Features predictive budget monitoring, context heal
wiki-queryrohitg00/pro-workflow165 installsQuery pro-workflow wikis via SQLite FTS5 BM25 retrieval. Returns top-K passages with citations. Use when answering a question that any of the user's wikis alrea
wiki-builderrohitg00/pro-workflow164 installsStart, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base. Each wiki is a folder of markdown pages with provenance,
bmad-distillatorbmad-code-org/bmad-method163 installsLossless LLM-optimized compression of source documents. Use when the user requests to 'distill documents' or 'create a distillate'.