🌐 English | 繁體中文 | Tiếng Việt
MeMesh
Local collaboration layer for AI coding agents.
MeMesh helps AI coding agents share context, exchange tasks and review results, and leave clear handoffs across sessions. Shared memory keeps your preferences, project decisions, and lessons available without explaining them again each time.
- Coordinate registered conversations. Exchange tasks, questions, review requests and results with agents on this computer or a joined MeMesh network.
- Share project context. Agents on the same computer can reuse project decisions and lessons instead of starting from scratch.
- Leave a clear handoff. Record the goal, next step, and blockers for the next session to check before continuing.
- Keep useful memory. Save preferences, decisions, and lessons so they remain available across sessions and tools. Decisions, lessons and preferences are found in every project, labelled with the project they came from; each project's commits and session notes stay in that project.
By default, memories live in ~/.memesh/knowledge-graph.db on your computer. MeMesh needs no separate AI model.
Install
Put a supported Node.js on PATH: 26.13.1 or later in the 26.x line (recommended), 24.22.3 or later in 24.x, or 22.23.5 or later in 22.x.
Claude Code — run these inside Claude Code, then restart it:
/plugin marketplace add PCIRCLE-AI/memesh
/plugin install memesh@pcircle-memesh
Codex — run these in your terminal, then restart Codex:
codex plugin marketplace add PCIRCLE-AI/memesh
codex plugin add memesh@pcircle-memesh
Hermes Agent — follow the MeMesh memory provider guide to connect Hermes for memory recall and capture.
For the command-line tools, run:
npm install -g @pcircle/memesh
memesh doctor
Installation and update guide · Other integrations
If memesh doctor reports database damage, stop your AI tools and run memesh repair. It preserves a verified damaged copy, salvages readable memories, and checks the replacement first. A built-in Node recovery path works without a usable system sqlite3; memesh repair --from-backup uses the newest verified memory backup instead. Restart your AI tools afterwards.
Updates are automatic. MeMesh installs new releases by itself (every version) after checking the release's provenance and backing up your database. It waits up to three days for running sessions to end; after that it may update while they are still running. It is on by default when HOME matches the system account home (or no account-home entry exists), including containers and other database locations. CI and a different test/sandbox HOME default to off; an explicit setting in that environment can enable it, while an account-level off always wins. Turn it off with memesh config set autoUpdate off; update right now with memesh update; repair a damaged plugin with memesh update --reinstall; memesh doctor shows what it did.
Windows npm-global 4.12.0: Install 4.13.0 once with npm, then use memesh update for later releases. Upgrade instructions
PCIRCLE-AI/memesh is the GitHub repository that supplies the marketplace. memesh@pcircle-memesh selects the memesh plugin from the pcircle-memesh marketplace.
Conversation messaging
Use one session to implement a change and another to review it, ask questions, or report results. MeMesh conversation messages use four actions: discover an address, send a typed body, read one addressed message, and inspect status/audit. The body is untrusted data.
- Use matching MeMesh database settings on the same computer. For cross-computer messages, join a MeMesh network.
- Run
memesh message discover and choose an address actually listed; do not guess one.
- In Bash, send text through stdin:
printf '%s' 'Please review this.' | memesh message send --recipient 'ADDRESS_FROM_DISCOVER' --kind review_request --payload-stdin. The recipient uses memesh message read --message-id MESSAGE_ID and can reply with --reply-to <id>.
queued means the message is saved. Check memesh message status for delivery, read and reply events. Supported hooks can surface pending messages when a conversation resumes within the retention window.
Setup, PowerShell examples, and delivery states
Keep context between sessions
Ask your agent in plain language:
Remember that this project uses SQLite.
What did we decide about login last time?
Save where we left off so the next session can pick it up.
MeMesh remembers by default. To remove a specific stored memory, ask the agent to find it and use forget; ordinary conversation capture continues normally.