
Stashpad
Good work. Worth remembering.
Project website · Get started · Connect your agent · Contribute

Local memory for any AI coding agent: an MCP server and CLI that keep plain Markdown notes with sources, a review queue and search.
Works with Claude Code, Codex, OpenCode, Cursor, VS Code, Gemini CLI and any other MCP client, or with no MCP at all (plain commands and an AGENTS.md block). No model, no cloud, no dependencies: Node 20 or newer.
Quick start in other languages: Bahasa Indonesia.
Quickstart
npm install -g stashpad
stashpad setup # prints the MCP settings for your agent app (generic, claude-code, vscode, codex, opencode)
stashpad doctor --client # starts the server the way your agent app does and checks it answers
Expected: client start: the server answered with 8 tools in ... ms and Nothing is broken.
Claude Code users can install the plugin instead, which also adds the hooks below: /plugin marketplace add laaielichter/stashpad, then /plugin install stashpad@stashpad (or stashpad@reverseport from the ReversePort marketplace).
Why Stashpad?
- Your agent stops forgetting after compaction. Pinned rules and the latest handoff come back at the start of every session and right after
/compact.
- Rules you set stay in front of the agent.
stashpad pin keeps the few rules that matter in every brief; each prompt gets only the memories that clearly match it, once per session.
- Memory that knows when the code moved on. Anchor a memory to its files and recall says "changed since saved", follows a renamed file and skips a memory whose files are gone. Decisions keep why they were made and what lost (
stashpad decide).
- Nothing ends up in memory behind your back. Agent, tool and web notes wait for a person; near-copies, secrets and hidden text are refused.
- You can read, fix and keep it. Memories are Markdown files with a source and dates, in your project, in git if you want. Old facts are ended, never overwritten.
- You see what the agent got.
stashpad shown lists which memories were put in front of the agent and how many characters, and a status line keeps the review queue in view.
- It keeps working. One store per project (worktrees share it), a lock for parallel writers, snapshots before changes,
doctor that says what to fix.
How it compares