
Stash
by alash3al
Persistent memory layer for AI agents with automatic consolidation of episodes into facts.
What it does
Stash provides a cognitive memory layer for AI agents, preventing "amnesia" by storing episodes and facts in a Postgres database. It transforms raw interactions into structured knowledge through an 8-stage consolidation pipeline, allowing agents to remember and learn across different sessions.
Tools
store_episode: Saves a raw interaction or observation.recall_fact: Retrieves consolidated knowledge about a specific topic.consolidate: Manually triggers the pipeline to turn episodes into facts.track_goal: Maintains state and progress of long-term objectives.
Installation
Deploy via Docker Compose:
git clone https://github.com/alash3al/stash.git && cd stash && cp .env.example .env && docker compose up
Add to claude_desktop_config.json:
{
"mcpServers": {
"stash": {
"url": "http://localhost:8080/sse"
}
}
}
Supported hosts
Claude Desktop, Cursor, Windsurf, OpenCode
Quick install
docker compose upInformation
- Pricing
- free
- Published
- 5/16/2026
- stars






