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.
π 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?
| Feature | Plain Claude Code | Other MCP Tools | MeMesh |
|---|---|---|---|
| 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)
- When you open Claude Code β MeMesh shows what you did last time
- While you work β MeMesh quietly tracks your progress
- 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
| Icon | What | Example |
|---|---|---|
| π | Files you changed | src/auth/login.ts |
| β | Commits you made | feat: add login |
| π‘ | Things you learned | Use async/await here |
| β οΈ | Problems you hit | API 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-storeandbuddy-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!
- π Found a bug? Open an issue
- π‘ Have an idea? Start a discussion
- π οΈ Want to code? Check Good First Issues
Contributing Guide: CONTRIBUTING.md
π Documentation
- π Full Documentation
- π Quick Install Guide
- π User Guide
- π οΈ API Reference
- β Troubleshooting
β 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:
- Persistent Memory - Claude remembers your project across sessions
- 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:
- Model Context Protocol (MCP) - The foundation
- Claude Code - The platform
- All our amazing contributors and early testers
π License
AGPL-3.0 - See LICENSE
This means: Use it, modify it, share it. But keep it open source.
π Star History
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
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
NMAP
Perform network scanning and security auditing using the NMAP utility.
Remote MCP Server (Authless)
An authentication-free, remote MCP server deployable on Cloudflare Workers. Customize tools directly in the source code and deploy via Cloudflare or locally.
Binlog MCP Server
A Model Context Protocol Server for analyzing MSBuild binlogs.
OpsLevel
Interact with your OpsLevel account using read-only access.
MCP Github OAuth
An MCP server with built-in GitHub OAuth support, deployable on Cloudflare Workers.
Devcontainers
Integrates with the devcontainers CLI to manage development containers. Requires Docker.
LaTeX to MathML MCP Server
Converts LaTeX mathematical expressions to MathML format using MathJax-node.
GraphQL Schema
Exposes GraphQL schema information to LLMs, allowing them to explore and understand the schema using specialized tools.
Metal MCP Server
Search Metal Framework documentation and generate code.
TradingCyborg MCP Server
A professional trading server with over 26 tools for Bybit API integration.