# Open source memory layer so any AI agent can do what Claude.ai and ChatGPT do

**Creator:** alash3al  |  **Category:** memory  |  **Status:** draft

## Description

Stash provides a persistent cognitive memory layer that sits between AI agents and the world, enabling continuous context across sessions. It transforms episodes into facts, facts into patterns, and patterns into wisdom using a structured pipeline with 28 MCP tools. Built on battle-tested PostgreSQL with pgvector, it offers hierarchical namespaces for organizing memories by users, projects, and agent self-knowledge.

## Key Features

- 28 MCP tools for memory management
- PostgreSQL + pgvector backend for persistent storage
- Hierarchical namespace organization
- 6-stage memory pipeline (episodes → facts → patterns → wisdom)
- Model-agnostic memory (works with Claude, GPT, local models)
- Knowledge graph with entity relationships and confidence scores
- Goal tracking and failure memory across sessions

## Resources

- [Website](https://alash3al.github.io/stash?_v01)

---
*Source: agentprotocols.app — /protocol/open-source-memory-layer-so-any-ai-agent-can-do-what-claude-ai-and-chatgpt-do*