LOCAL MEMORY FOR YOUR AI AGENT

Good work.
Worth
remembering.

Keep the decisions, context and little details that make a project yours. Pick up the next session where the last one left off.

Plain Markdown. No model. No cloud. Yours.

.stashpad / memoriesEXAMPLE NOTES
PINNED RULE

test-before-push.md

Small changes.
Real tests.

Run the project's tests before pushing a change. Keep unrelated edits out of the patch.

Source
docs/contributing.md
State
Accepted · pinned
MARKDOWN, NOT A BLACK BOX.

Illustrative notes. Your real memories stay on your machine.

Different agents.
The same memory.

Claude CodeCodexCursorVS CodeGemini CLIAny MCP client

01 / A LITTLE CONTINUITY GOES A LONG WAY

Remember the useful bits.
On your terms.

Not another chat history. A small, deliberate memory of what matters to the work.

01

Your agent proposes.

A fact, preference, decision or task, with where it came from. Agent, tool and web notes enter a review queue.

02

You have the final say.

Read the proposal, check its source, accept or reject it. Pending proposals stay out of search.

03

The next session remembers.

Recall relevant memories, keep key rules pinned, and leave a handoff for whatever comes next.

TRY THE REVIEW FLOWDEMO ONLY
WAITING FOR YOU

Keep the reason,
not just the decision.

“Use a queue for background jobs, because a request should not wait for a long-running task.”

Kind
Decision
Source
Example agent proposal

Not searchable until a person accepts it. Nothing is written by this demo.

02 / YOUR NOTES. YOUR FILES.

Open the folder.
There's your memory.

One Markdown file per memory, with a source and dates. Read it, edit it, keep it in git. End an old fact without erasing its history.

Explore the file format
EXAMPLE / decision.md.md
---
id: background-jobs
kind: decision
source_type: user
source_ref: design review
---

# Background jobs

Keep slow work in a queue.
A request should not wait for it.

Excerpt from an example note. Full memories also carry dates and provenance.

03 / SMALL TOOL. THOUGHTFUL DETAILS.

Context that stays useful.
Not just stored.

Made for real projects, changing code and agents that need a little help remembering.

01 / PIN

Keep the important
things in view.

Pinned rules and the latest handoff return in a brief. Claude Code hooks can bring them back after compaction, too.

02 / RECALL

Find the memory
that fits the work.

Word search with BM25 and synonyms. Recall selects relevant notes; a log shows which memories the agent was given.

03 / ANCHOR

Know when the
code moved on.

Anchor a memory to files. Recall flags changed files, follows renames and skips notes whose anchored files are gone.

04 / HANDOFF

Leave the next
session a way in.

Capture what's done, what's open and what comes next. Claim a handoff once and carry on with the work.

05 / REVIEW

A human decides
what becomes memory.

Agent proposals wait for review. Secret and hidden-text checks help filter unsafe input; recalled content is labelled as data.

06 / KEEP

Local by default.
Readable by design.

Snapshots, a write lock for parallel clients and optional encryption. A project store, plus a separate global store for personal preferences.

04 / LESS EXPLAINING. MORE DOING.

A few commands.
A longer memory.

The CLI and MCP server work from the same files. No language model or embeddings are needed to run Stashpad.

Recorded Stashpad CLI demo: save and pin a decision, review an agent note, recall matching memories, and create a brief
Real command output, recorded by the repository's demo script. See the source

05 / PICK UP WHERE YOU LEFT OFF

Your next session
starts with context.

Node.js 20 or newer. No other dependencies.
Free, open source and MIT licensed.

Connect your agent
GET STARTED
npm install -g stashpad
stashpad setup
stashpad doctor --client

Run in your terminal, then use the settings for your client.

CLI + MCP8 AGENT TOOLSNO ACCOUNT

A FEW GOOD QUESTIONS

Clear notes.
Clear expectations.

Does Stashpad send my notes anywhere?+

Stashpad makes no network calls, calls no model and has no telemetry. Its review page listens only on your computer. If a cloud AI agent reads a memory, that agent's own provider and configuration determine what it sends.

Is this semantic search?+

No. Stashpad uses word search (BM25) and synonyms, without embeddings or a language model. It can miss reworded questions. It also does not automatically extract memories from chats, sync machines or run a shared team server. You can use git for your plain files.

Can it work without MCP?+

Yes. Use the CLI directly or run stashpad sync-agents AGENTS.md to put a brief in a file your agent already reads. The Claude Code plugin also adds session and compaction hooks.

Where do I review proposals?+

Run stashpad review for the queue, or stashpad ui --open for the local review page at 127.0.0.1:4317. Accept a proposal only when you have checked it. This project website does not access your store.

What if an old fact is no longer true?+

Supersede it with a new memory or end it, rather than silently overwriting the history. Sources, dates, feedback and file anchors help you assess whether a memory is still useful. They do not guarantee every note is correct.

Good tools get better
when we build them together.

Built by laaielichter. Try Stashpad, report a rough edge or make a contribution.

Give it a star