Skip to main content
skill CX Codex

stash-ai-memory — Claude Code skill for persistent agent memory

The stash-ai-memory skill guides setup of Stash, a persistent memory service for AI agents. Use it when an agent needs to retain observations and working context across sessions.

no license 299 installs ★ 98 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill stash-ai-memory -a claude-code
Open on GitHub

What stash-ai-memory does

Stash keeps episodes, extracted facts, and working context in Postgres with pgvector. Its MCP server gives agents tools to save observations, search memories by meaning, query consolidated facts, manage session context, and remove selected entries.

A background pipeline turns new observations into facts, relationships, causal links, goals, failure patterns, and hypotheses. It also lowers confidence in stale facts. For the Docker setup, clone the Stash repository, copy .env.example to .env, configure an LLM key and model, then run docker compose up. You need Postgres with pgvector and an LLM endpoint or Ollama; without one configured, the pipeline has no model to process observations.

MCP clients connect through http://localhost:8080/mcp. The guide also covers building a Go binary and calling the service from Go. Installing this skill does not install the Stash server itself.

What it helps with

  • retain agent observations across sessions
  • search stored memories by meaning
  • retrieve facts derived from earlier observations
  • keep in-progress task context
  • remove selected agent memories

Example prompts for the agent

  • Set up Stash as an MCP server and give my agent memory across sessions.
  • Save this project observation in Stash so I can retrieve it later.
  • Search Stash for facts about the current task and the user's preferences.

How to install stash-ai-memory

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill stash-ai-memory -a claude-code

2Manually: put the files in place

~/.claude/skills/stash-ai-memory/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/stash-ai-memory/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about stash-ai-memory

How do I install stash-ai-memory in Claude Code?

Run npx skills add reason-machines/trending-skills --skill stash-ai-memory -a claude-code. The skill file is placed at ~/.claude/skills/stash-ai-memory/SKILL.md.

What does stash-ai-memory do?

It guides setup of Stash as persistent memory for an AI agent. Stash stores data in Postgres with pgvector and exposes MCP tools for saving and retrieving it.

What does the Stash server need to run?

It needs Postgres with pgvector and an LLM, either through an OpenAI-compatible endpoint or Ollama. In the Docker setup, configure these in .env.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set211

The whole set →
token-dashboard-claude-analytics token-dashboard-claude-analytics inspects session logs on your computer to map token consumption per prompt. Useful for spotting heavy prompts and managing API expenses. CX Codex +1 315installs wanman-agent-matrix wanman-agent-matrix is a Claude Code skill for setting up wanman, which coordinates Claude Code or Codex agents on a local machine. It activates for requests about launching an agent matrix or managing agents with wanman. CX Codex +1 310installs awawausb-webusb-firefox awawausb-webusb-firefox — a skill that walks you through putting WebUSB into Firefox: the awawausb add-on, a Rust native stub and the manifest that connects them. CX Codex +1 306installs unit-3-hyprland-nier-rice unit-3-hyprland-nier-rice — an agent skill that sets up the Unit-3 rice on Arch Linux: Hyprland, Quickshell QML widgets and Waybar in a NieR:Automata style. CX Codex +1 304installs gpt-image-playground gpt-image-playground guides coding agents through building and deploying a React 19 web app for image generation and editing via OpenAI APIs. CX Codex +1 292installs gova-declarative-gui gova-declarative-gui teaches an agent to build native desktop apps in Go with Gova, a declarative framework where components are structs and state lives in a Scope. CX Codex +1 290installs aibijia-price-comparison aibijia-price-comparison guides the setup of scrapers to track and aggregate reseller prices for AI tokens and accounts. Useful when tracking cheap ChatGPT Plus keys. CX Codex +1 287installs aster-bot-trading aster-bot-trading is a Claude Code skill for configuring a TypeScript bot for ASTERUSDT perpetual futures on AsterDEX. It covers strategy and risk settings. CX Codex +1 283installs

Project sponsors

Companies that keep this analytics open