Step 1
Install MemPalace
MemPalace is long-term semantic memory for AI agents. It stores raw sources, session logs, notes, and transcripts in searchable vector-indexed drawers so your conversations stop resetting to zero.
Get the Tool
Get MemPalace
Install it, connect your source folders, and give your agent real long-term recall from day one.
Overview
Why this comes first
Without a memory layer, every session starts with partial context and lots of repeated setup. With MemPalace, the agent can search durable history across projects and carry the thread between sessions.
In ej's production setup, this means 43,000+ drawers of retrievable context instead of a blank slate.
Deep Dive
Expand the concepts
These sections are designed for live teaching: open the summary, go deep, then collapse and move to the next concept.
What a drawer actually is
A drawer is not just a file path. It is a semantically retrievable chunk of experience.
Expand
What a drawer actually is
A drawer is not just a file path. It is a semantically retrievable chunk of experience.
ExpandThink of drawers as memory containers indexed by meaning instead of folder hierarchy. A drawer might originate from a transcript, a research note, a call summary, or an agent session log. The point is not where the text lived; the point is whether the system can pull it back when the next question rhymes with it.
That changes the agent's operating posture. Instead of asking the human to re-explain a project, it can search for what was previously decided, what failed, and what evidence already exists.
# example queries once memory exists
mempalace query "What decisions did we make about HARVEST thresholds?"
mempalace query "What was the last blocker on the Palace Wiki build?"
mempalace query "Summarize the notes related to Canine Casa onboarding."
Why semantic memory beats chat history
Chat logs are sequential. Memory needs to be searchable by relevance.
Expand
Why semantic memory beats chat history
Chat logs are sequential. Memory needs to be searchable by relevance.
ExpandA long transcript is useful as evidence, but not as an operating system. Agents need recall, not just archives. Semantic memory lets the system find the right past fragment even when the wording changes, the question is indirect, or the relevant fact was buried in a side conversation.
- Chat history is ordered by time. Memory retrieval is ordered by relevance.
- Folder structures force you to know where you put something. Semantic memory lets the system find it by meaning.
- Without this layer, every model spends tokens rediscovering basics.
What to ingest first
Start with the raw materials that already describe your real work.
Expand
What to ingest first
Start with the raw materials that already describe your real work.
ExpandYour first pass should include recent session logs, notes, transcripts, project plans, and any existing wiki or diary material. Do not wait for perfect cleanup. The point is to get memory online quickly, then improve the feed over time.
Sources worth ingesting first:
- session logs
- meeting transcripts
- raw notes and scratchpads
- project docs
- diary entries
- exported chat summaries
Installation
Step-by-step
Install just this
Bring memory online first if your agents keep forgetting decisions, names, and prior work.
- Install the package globally.
- Create a
mempalace.yamlfile pointing at your raw sources. - Run an initial ingest to populate drawers.
- Test recall with a few natural-language queries.
npm install -g mempalace
cat > mempalace.yaml <<'EOF'
sources:
- ./Inbox
- ./sessions
- ./notes
EOF
mempalace ingest .
mempalace query "What does this system already know?"
Install as part of the full system
Point MemPalace at the same raw inputs that will later feed the wiki and HARVEST loop.
- Create a shared raw source layout:
Inbox/, session logs, transcripts, notes. - Confirm the memory output will be available to later HARVEST and QUERY workflows.
- Use the same naming conventions that your Palace Wiki will use for projects and people.
./Inbox
./sessions
./transcripts
./notes
./Wiki
# MemPalace reads the raw side
# Palace Wiki curates the durable side