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.

🧠 MeMesh

Note: Formerly known as "Claude Code Buddy (CCB)". Renamed to MeMesh to avoid potential trademark issues.

The Only MCP Server That Remembers

Make Claude Code remember everything. Build faster. Vibe harder.

GitHub Stars npm version npm publish Installation Tests License MCP

πŸš€ Quick Start β€’ πŸ“– Docs β€’ 🌐 GitHub β€’ πŸ’¬ Discussions


πŸŽ₯ See It In Action (Interactive Demo)

πŸ”΄ Without MeMesh

# Session 1 (Monday)
You: "We use JWT for auth because..."
Claude: "Got it! βœ…"

# Session 2 (Tuesday)
You: "Remember our auth approach?"
Claude: "Sorry, I don't have context..."
You: *explains everything again* 😀

# Session 3 (Wednesday)
You: "Our JWT implementation..."
Claude: "What JWT implementation?"
You: *RAGE QUITS* πŸ’’

βœ… With MeMesh

# Session 1 (Monday)
You: buddy-do "setup JWT auth"
MeMesh: βœ… Implemented + Saved to memory

# Session 2 (Tuesday)
You: buddy-remember "auth"
MeMesh: πŸ“š "JWT auth implemented on 2024-01-15
     ↳ Access tokens: 15min
     ↳ Refresh tokens: 7 days
     ↳ Secret rotation: monthly"

# Session 3 (Any day, forever)
You: buddy-do "add OAuth"
MeMesh: 🧠 "I see you have JWT. Let's
     integrate OAuth alongside it..."

https://github.com/user-attachments/assets/a389bcd2-1563-4d91-b363-44cdba5f4e44


πŸ’‘ Try it yourself:

# In Claude Code
buddy-help                            # See all commands
buddy-do "explain how MeMesh works"   # Watch it intelligently respond
buddy-remember "project decisions"    # Query your project memory

πŸ“– Read User Guide β€’ πŸ”§ API Reference


πŸ€” The Problem

You know this pain:

Session 1: "Let me explain our architecture..."
Session 2: "As I mentioned before, our architecture..."
Session 3: "Like I said earlier, our architecture..."
Session 4: 😀

Every. Single. Session.


✨ The Solution

❌ Before MeMesh

  • Re-explain architecture every session
  • Answer same questions repeatedly
  • Forget design decisions overnight
  • Write similar prompts over and over
  • Claude has amnesia πŸ€•

βœ… After MeMesh

  • Remembers project architecture
  • Recalls past decisions instantly
  • Organizes knowledge automatically
  • Routes tasks intelligently
  • Claude becomes your AI teammate 🀝

🎯 Core Features

1. 🧠 Project Memory That Actually Works

# Session 1 (Last week)
You: "We chose PostgreSQL for JSONB support"

# Session 42 (Today)
You: buddy-remember "why PostgreSQL?"
MeMesh: "Based on your decision from 2024-01-15: PostgreSQL was
      chosen for JSONB support and advanced query capabilities..."

Claude remembers. Forever.

2. 🎯 Smart Task Routing (Autopilot Mode)

You: "Review this code"
MeMesh: *Detects task type*
     *Activates code review mode*
     *Applies best practices*
     *Delivers structured review*

No more "how should I do this?" Just do it.

3. πŸ’¬ Dead Simple Commands

buddy-do "setup authentication"     # Execute any dev task
buddy-remember "API design"         # Query project memory
buddy-help                          # When stuck

Three commands. Infinite possibilities.

4. πŸ” Secure Credential Storage

buddy-secret-store "openai_key" "sk-..." api_key  # Store encrypted
buddy-secret-get "openai_key"                      # Retrieve for API calls
buddy-secret-list                                  # See what's stored
buddy-secret-delete "old_key"                      # Cleanup

AES-256-GCM encryption. Local only. Never transmitted.


πŸš€ Installation Options

Choose your preferred installation method:

⚑ npm Global Install (Easiest) ⭐ RECOMMENDED

npm install -g @pcircle/memesh
# Auto-configures everything! Just restart Claude Code.

πŸ“¦ Quick Install Script (For Local Dev)

git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
cd claude-code-buddy
./scripts/quick-install.sh

πŸ† Claude Code Marketplace (Coming Soon)

/plugin install memesh@claude-plugins-official

πŸš€ 2-Minute Quick Start

Step 1: Quick Install

Three simple commands:

git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
cd claude-code-buddy
./scripts/quick-install.sh

The script will:

  • βœ… Check prerequisites (Node.js 20+)
  • βœ… Install dependencies
  • βœ… Build MeMesh
  • βœ… Auto-configure ~/.claude/mcp_settings.json

Then restart Claude Code completely (quit and reopen).

Done! MeMesh is now available and ready to use.

Note: The installer automatically configures your MCP settings. No manual configuration needed!

Step 2: Test It

# In Claude Code, type:
buddy-help

# You should see MeMesh's command list
# Now try:
buddy-do "explain MeMesh features"

# Watch the magic happen ✨

πŸŽ‰ That's it! You're vibing now.

πŸ“– Need help? Detailed installation guide | Troubleshooting


πŸ’‘ Real-World Usage

Scenario 1: Building a New Feature

You: buddy-do "create a real-time chat with WebSocket"

MeMesh analyzes your project...
πŸ” Detected: React + Node.js + Express
🧠 Recalled: Your preference for TypeScript strict mode
πŸ“ Applying: Error boundaries pattern from LoginPage.tsx

βœ… Generated:
   β”œβ”€ server/chat.ts (WebSocket server)
   β”œβ”€ components/ChatWindow.tsx (React component)
   └─ hooks/useWebSocket.ts (Custom hook)

πŸ’Ύ Saved to memory: "WebSocket chat architecture - 2024-01-20"

Scenario 2: "Wait, Why Did We Do That?"

You: buddy-remember "authentication approach"

MeMesh searches knowledge graph...

πŸ“š Found 3 related memories:

β”Œβ”€ 2024-01-15: Initial Auth Decision
β”‚  πŸ’¬ "JWT chosen over sessions for stateless API"
β”‚  ⚑ Reasoning: Mobile app compatibility
β”‚
β”œβ”€ 2024-01-18: Token Expiry Implementation
β”‚  πŸ’» Code: auth/middleware.ts:42-67
β”‚  πŸ”§ Access: 15min | Refresh: 7 days
β”‚
└─ 2024-01-22: Security Enhancement
   πŸ›‘οΈ Added: Rate limiting + Token rotation
   πŸ“ Prevented: Token reuse vulnerability

Scenario 3: Continuous Development Flow

Day 1 β”‚  You: "Implement user login"
      β”‚  MeMesh: βœ… Created + πŸ’Ύ Remembered
      β”‚
Day 5 β”‚  You: "Add password reset"
      β”‚  MeMesh: 🧠 "I see you use JWT tokens..."
      β”‚       βœ… Integrated seamlessly
      β”‚
Day 10β”‚  You: "Add OAuth support"
      β”‚  MeMesh: 🧠 "Based on your JWT + password reset..."
      β”‚       βœ… Consistent with existing auth
      β”‚
Week 8β”‚  You: "Why did we choose JWT again?"
      β”‚  MeMesh: πŸ“š *Instant recall from Day 1*

No context re-explanation. Ever again.


πŸ“Š Why MeMesh vs. Others?

FeaturePlain Claude CodeOther MCP ToolsMeMesh
Persistent Memory❌⚠️ Basicβœ… Full Knowledge Graph
Smart RoutingβŒβŒβœ… Auto-detects task type
Vibe Coding Optimizedβš οΈβŒβœ… Built for it
Zero Setupβœ…βš οΈ Complexβœ… 2 minutes
Free & Open Sourceβœ…βš οΈ Variesβœ… AGPL-3.0

πŸ› οΈ Advanced Features

What is it? MeMesh remembers what you did in your last coding session and shows you a summary when you start a new one.

How It Works (Simple Version)

  1. When you open Claude Code β†’ MeMesh shows what you did last time
  2. While you work β†’ MeMesh quietly tracks your progress
  3. When you close Claude Code β†’ MeMesh saves a summary for next time

What You'll See

When you start a new session, you'll see something like:

🧠 MeMesh Memory Recall

  πŸ• Last session: 2 hours ago (45 minutes)

  πŸ“‹ What you did:
    πŸ“ Changed 5 files in src/auth/
    βœ… Made 3 git commits
    πŸ’‘ Implemented JWT refresh tokens

That's it! No setup needed. MeMesh handles everything automatically.

What Gets Saved

IconWhatExample
πŸ“Files you changedsrc/auth/login.ts
βœ…Commits you madefeat: add login
πŸ’‘Things you learnedUse async/await here
⚠️Problems you hitAPI timeout issue

Good to Know

  • Saves automatically every 250K tokens (about 1-2 hours of work)
  • Session memories kept for 30 days, then auto-cleaned
  • Project memories (code changes, test results) kept for 90 days
  • Currently available in Claude Code only

Each project gets its own isolated memory space.

cd ~/project-A
buddy-remember "auth"  # Returns project-A's auth decisions

cd ~/project-B
buddy-remember "auth"  # Returns project-B's auth decisions

No cross-contamination. Ever.

Context-aware memory retrieval with intelligent ranking:

  • 🎯 Semantic search across your knowledge base
  • 🏷️ Auto-tagging for better organization
  • πŸ“Š Relevance scoring based on context

Run multiple Claude Code sessions sharing the same memory:

  • πŸ”„ First instance becomes the daemon
  • πŸ”— Subsequent instances connect as proxies
  • πŸ“‘ Shared knowledge graph across all sessions

Securely store API keys and credentials:

  • πŸ” AES-256-GCM encryption
  • πŸ’Ύ Local SQLite storage (never transmitted)
  • πŸ”‘ Use buddy-secret-store and buddy-secret-get

Full integration with Model Context Protocol for seamless Claude Code experience.

Use buddy-help to see all available commands.


πŸ§ͺ Technical Details

Requirements

  • Node.js 20+
  • Claude Code
  • 5 minutes of your time

Platform Support

  • βœ… Claude 4.5 (Haiku/Sonnet/Opus)
  • βœ… MCP SDK 1.25.3
  • βœ… Windows, macOS, Linux

πŸ”’ Security First

  • βœ… 100% Local Processing - Your data never leaves your machine
  • βœ… No External API Calls - Uses your Claude Code subscription
  • βœ… npm audit: 0 vulnerabilities
  • βœ… Open Source - Audit the code yourself

🀝 Contributing

We'd love your help making MeMesh better!

Contributing Guide: CONTRIBUTING.md


πŸ“š Documentation


❓ FAQ

A: Nope. 100% free and open source (AGPL-3.0). Uses your existing Claude Code subscription.

A: Yes. Everything processed locally. Zero external API calls. Zero data upload.

A: MeMesh adds two superpowers:

  1. Persistent Memory - Claude remembers your project across sessions
  2. Smart Routing - Automatically detects and handles different task types

Think of it as Claude Code + a really good memory + autopilot mode.

A: Absolutely! MeMesh plugin is fully open source.

Want deeper customization? Check our Contributing Guide or fork the repo and make it yours.

A: Yes! Cursor has native MCP support. One-click install.


πŸ™ Acknowledgments

Built on the shoulders of giants:


πŸ“„ License

AGPL-3.0 - See LICENSE

This means: Use it, modify it, share it. But keep it open source.


🌟 Star History

Star History Chart


Built by developers, for developers

Stop repeating yourself. Start vibing.

πŸš€ Get Started β€’ πŸ“– Read the Docs β€’ πŸ’¬ Join the Discussion


⭐ If MeMesh saved you time today, give it a star!

It helps others discover this tool.


Not affiliated with Anthropic PBC β€’ Independent open-source project

Languages: English β€’ 繁體中文

Related Servers