mempalace-init

mempalace-init is a command for coding agents from MemPalace/mempalace. It costs 26 tokens per session (162 once invoked), scanned A, original, MIT.

A command that sets up MemPalace, registers its MCP server with Cursor, and checks that the installation works. Cursor is a code editor with built-in AI features.

In plain words
What is it for?
Use it to install MemPalace, initialize a memory palace, connect it to Cursor, and verify the setup.
Why use it?
It collects the installation and Cursor connection steps into one guided workflow.

Command

Part of the mempalace plugin — 9 skills, 10 commands, 3 hooks shipped together

About the project

MemPalace is a local-first AI memory system that stores conversation history verbatim and retrieves relevant passages through semantic search. It is for AI-agent users who want searchable, structured memory on their own machine, with a replaceable retrieval backend.

MemPalace/mempalace · 58,778 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mempalace/mempalace/mempalace-init
Clone the repo
git clone --depth 1 https://github.com/MemPalace/mempalace

Or install mempalace, the plugin that ships this one along with the rest of its 9 skills, 10 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mempalace-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/mempalace/mempalace/mempalace-init.svg)](https://agentmods.dev/commands/mempalace/mempalace/mempalace-init)
Your own site
<a href="https://agentmods.dev/commands/mempalace/mempalace/mempalace-init"><img src="https://agentmods.dev/badge/commands/mempalace/mempalace/mempalace-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00162
Opus 5 $0.00013 $0.00081
Sonnet 5 $0.00005 $0.00032
Haiku 4.5 $0.00003 $0.00016

Measured 5d ago against content hash 2e48522ea628, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mempalace-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/mempalace-init.md · 13 lines

What it actually says

Invoke the mempalace skill from this plugin and run the init instructions, then follow them.

Concretely: run mempalace instructions init in a terminal, then carry out the steps it prints.

Cursor-specific extras after init:

  1. The mempalace-mcp server is already auto-registered by this plugin — no manual mcp.json edit needed.
  2. For automatic background saves and session-start memory recall, also run hooks/cursor/install.sh --scope user from a cloned MemPalace repo. See website/guide/cursor-hooks.md for the walkthrough.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 13 lines · 26 tokens per session scan A 2e48522ea628

Subscribe to this mod's changes

mempalace-init is a command published in the GitHub repository MemPalace/mempalace (58,778 stars, last pushed 3d ago), licensed MIT. It adds 26 tokens to every session and 162 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.