Claude Code Buddy (CCB)
Add persistent project memory and smart task routing to Claude Code. Stop repeating context every session - Claude finally remembers your architecture, decisions, and patterns forever. 100% local, 17 MCP tools.
🌐 English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Português | Français | Deutsch | Tiếng Việt | Español | ภาษาไทย
MeMesh LLM Memory
Local memory for Claude Code and MCP coding agents.
One SQLite file. No Docker. No cloud required.
The Problem
Your coding agent forgets what happened between sessions. Every architecture decision, bug fix, failed test, and hard-won lesson has to be re-explained. Claude Code starts fresh, re-discovers old constraints, and burns context on things it should already know.
MeMesh gives coding agents persistent, searchable, evolving local memory.
This package is the local memory layer of the MeMesh product family. It is intentionally small and open-source: install it with npm, keep your memory in ~/.memesh/knowledge-graph.db, and connect it to Claude Code or any MCP-compatible client. Hosted workspace and enterprise operating-system products should stay separate from this package's README and roadmap.
Get Started in 60 Seconds
Step 1: Install
npm install -g @pcircle/memesh
Step 2: Store a decision
memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
Step 3: Recall it later
memesh recall "login security"
# → Finds "OAuth 2.0 with PKCE" even though you searched different words
That's it. MeMesh is now remembering and recalling across sessions.
If you want to verify the install and local wiring end to end:
memesh doctor
Open the dashboard to explore your memory:
memesh
Who Is This For?
| If you are... | MeMesh helps you... |
|---|---|
| A developer using Claude Code | Auto-recall project decisions, file-specific lessons, and past failures as you work |
| A coding-agent power user | Share one local memory layer across MCP-compatible tools |
| A team experimenting with AI coding workflows | Export/import project knowledge without introducing hosted infrastructure |
| An agent developer | Add local memory through MCP, HTTP, CLI, or the Python SDK |
Designed For Coding Agents First
|
Claude Code / Desktop
MCP tools + Claude Code hooks |
Any HTTP Client
|
Any LLM (OpenAI format)
Paste tools into any API call |
Why Not OpenMemory, Cursor Memories, Mem0, Or Zep?
| MeMesh | OpenMemory | Cursor Memories | Mem0 | Zep / Graphiti | |
|---|---|---|---|---|---|
| Best fit | Local memory for coding agents | Local/cross-client MCP memory | Cursor-native project memory | Managed app/agent memory | Temporal knowledge graphs |
| Install shape | npm install -g @pcircle/memesh | Local app/server flow | Built into Cursor | Cloud API / SDK / MCP | Service/framework setup |
| Storage | One local SQLite file | Local memory stack | Cursor-managed rules/memories | Hosted or self-hosted stack | Graph database |
| Cloud required | No | No for local mode | Depends on Cursor account/settings | Yes for platform | Usually yes/self-hosted |
| Claude Code hooks | First-class | MCP tools | No | MCP tools | Not Claude Code-specific |
| Dashboard | Built in | Built in | Cursor settings | Platform dashboard | Platform/graph tooling |
| Tradeoff | Simple local wedge, not enterprise scale | Broader local app footprint | Locked to Cursor | Strong managed platform, less local-first | Strong graph model, heavier setup |
MeMesh trades enterprise-scale managed infrastructure for instant local setup, inspectable storage, and coding-agent workflow hooks.
What Happens Automatically In Claude Code
You don't need to manually remember everything. MeMesh has 5 hooks that capture and inject knowledge while you work:
| When | What MeMesh does |
|---|---|
| Every session start | Loads your most relevant memories + proactive warnings from past lessons |
| Before editing files | Recalls memories tied to the file or project before Claude writes code |
After every git commit | Records what you changed, with diff stats |
| When Claude stops | Captures files edited, errors fixed, and auto-generates structured lessons from failures |
| Before context compaction | Saves knowledge before it's lost to context limits |
Opt out anytime:
export MEMESH_AUTO_CAPTURE=false
Dashboard
7 tabs, 11 languages, zero external dependencies. Access at http://localhost:3737/dashboard when the server is running.
| Tab | What you see |
|---|---|
| Search | Full-text + vector similarity search across all memories |
| Browse | Paginated list of all entities with archive/restore |
| Analytics | Memory Health Score (0-100), 30-day timeline, value metrics, knowledge coverage, cleanup suggestions, your work patterns |
| Graph | Interactive force-directed knowledge graph with type filters, search, ego mode, recency heatmap |
| Lessons | Structured lessons from past failures (error, root cause, fix, prevention) |
| Manage | Archive and restore entities |
| Settings | LLM provider config, instant language selector |
Smart Features
🧠 Smart Search — Search "login security" and find memories about "OAuth PKCE". MeMesh expands queries with related terms using your configured LLM.
📊 Scored Ranking — Results ranked by relevance (30%) + recency (25%) + frequency (15%) + confidence (15%) + recall impact (10%) + temporal validity (5%).
🔄 Knowledge Evolution — Decisions change. forget archives old memories (never deletes). supersedes relations link old → new. Your AI always sees the latest version.
⚠️ Conflict Detection — If you have two memories that contradict each other, MeMesh warns you.
📦 Team Sharing — memesh export > team-knowledge.json → share with your team → memesh import team-knowledge.json
Imported bundles stay searchable, but MeMesh does not auto-inject imported memories into Claude hooks until you review or re-store them locally.
Example Usage
"MeMesh remembered that we chose PKCE over implicit flow three weeks ago. When I asked Claude about auth again, it already knew — no re-explaining needed." — Solo developer, building a SaaS
"We export our team's memory every Friday and import it Monday. Everyone's Claude starts the week knowing what the team learned last week." — 3-person startup, shared knowledge base
"The dashboard showed me that 90% of my memories were auto-generated session logs. I started using
rememberdeliberately for architecture decisions. Game changer." — Developer who discovered the Analytics tab
Unlock Smart Mode (Optional)
MeMesh works offline by default. Add an LLM API key only if you want query expansion, smarter extraction, and compression:
memesh config set llm.provider anthropic
memesh config set llm.api-key sk-ant-...
Or use the dashboard Settings tab (visual setup):
memesh # opens dashboard → Settings tab
| Level 0 (default) | Level 1 (Smart Mode) | |
|---|---|---|
| Search | FTS5 keyword matching | + LLM query expansion (~97% recall) |
| Auto-capture | Rule-based patterns | + LLM extracts decisions & lessons |
| Compression | Not available | consolidate compresses verbose memories |
| Cost | Free, no API key | ~$0.0001 per search (Haiku) |
All 8 Memory Tools
| Tool | What it does |
|---|---|
remember | Store knowledge with observations, relations, and tags |
recall | Smart search with multi-factor scoring and LLM query expansion |
forget | Soft-archive (never deletes) or remove specific observations |
consolidate | LLM-powered compression of verbose memories |
export | Share memories as JSON between projects or team members |
import | Import memories with merge strategies (skip / overwrite / append) |
learn | Record structured lessons from mistakes (error, root cause, fix, prevention) |
user_patterns | Analyze your work patterns — schedule, tools, strengths, learning areas |
Architecture
┌─────────────────┐
│ Core Engine │
│ (8 operations) │
└────────┬────────┘
┌─────────────────┼─────────────────┐
│ │ │
CLI (memesh) HTTP API (serve) MCP (memesh-mcp)
│ │ │
└─────────────────┼─────────────────┘
│
SQLite + FTS5 + sqlite-vec
(~/.memesh/knowledge-graph.db)
Core is framework-agnostic. Same logic runs from terminal, HTTP, or MCP.
Contributing
git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
cd memesh-llm-memory && npm install && npm run build
npm test # 489 tests
npm run test:e2e-dashboard
Dashboard: cd dashboard && npm install && npm run dev
MIT — Made by PCIRCLE AI
เซิร์ฟเวอร์ที่เกี่ยวข้อง
Alpha Vantage MCP Server
ผู้สนับสนุนAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Mantis MCP Server
An MCP server for integrating with the Mantis Bug Tracker system.
Kibana MCP Server
Access and interact with your Kibana instance using natural language or programmatic requests.
mcp2cli
CLI bridge that wraps MCP servers as bash-invokable commands, recovering ~11K tokens of context window per session https://github.com/rodaddy/mcp2cli
Remote MCP Server (Authless)
An example of a remote MCP server without authentication, deployable on Cloudflare Workers.
xMCP Server
A streamable HTTP MCP server that proxies requests to stdio MCP servers within a container, providing a consistent command environment.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
zeuxis
Let AI agents capture screenshots themselves
CPAN Package README MCP Server
Fetch READMEs, metadata, and search for CPAN packages.
Nessus MCP Server
An MCP server for interacting with the Tenable Nessus vulnerability scanner.
MCP Server Starter
A TypeScript starter project for building Model Context Protocol (MCP) servers with Bun.