🧠 Claude Code Buddy (CCB)
The Only MCP Server That Remembers
Make Claude Code remember everything. Build faster. Vibe harder.
🚀 Quick Start • 📖 Docs • 🌐 Website • 💬 Discussions
🎥 See It In Action (Interactive Demo)
🔴 Without CCB
|
✅ With CCB
|
💡 Try it yourself:
# In Claude Code/Cursor
buddy-help # See all commands
buddy-do "explain how CCB 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 CCB
|
✅ After CCB
|
🎯 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?"
CCB: "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"
CCB: *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.
🚀 2-Minute Quick Start
Step 1: Install (Choose Your IDE)
🎯 Cursor Users (Click to expand)
Just click this magic link:
cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL2NsYXVkZS1jb2RlLWJ1ZGR5LW1jcCJdfQ==
Done. Restart Cursor and you're ready.
⚡ Claude Code Users (Click to expand)
Add this to ~/.claude/mcp_settings.json:
{
"mcpServers": {
"@pcircle/claude-code-buddy-mcp": {
"command": "npx",
"args": ["-y", "@pcircle/claude-code-buddy-mcp"]
}
}
}
Restart Claude Code and you're golden.
Step 2: Test It
# In Claude Code/Cursor, type:
buddy-help
# You should see CCB's command list
# Now try:
buddy-do "explain CCB 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"
CCB 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"
CCB 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"
│ CCB: ✅ Created + 💾 Remembered
│
Day 5 │ You: "Add password reset"
│ CCB: 🧠 "I see you use JWT tokens..."
│ ✅ Integrated seamlessly
│
Day 10│ You: "Add OAuth support"
│ CCB: 🧠 "Based on your JWT + password reset..."
│ ✅ Consistent with existing auth
│
Week 8│ You: "Why did we choose JWT again?"
│ CCB: 📚 *Instant recall from Day 1*
No context re-explanation. Ever again.
📊 Why CCB vs. Others?
| Feature | Plain Claude Code | Other MCP Tools | CCB |
|---|---|---|---|
| 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
Auto-Memory System
When you use buddy-do, CCB automatically records:
- ✅ Task goals and outcomes
- ✅ Technical decisions and reasoning
- ✅ Errors encountered and solutions
- ✅ Development milestones
You don't think about memory. CCB does.
Multi-Project Support
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.
17 MCP Standard Tools
Full integration with Model Context Protocol.
See complete list: ToolDefinitions.ts
🧪 Technical Details
Requirements
|
Platform Support
|
🔒 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 CCB 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
❓ FAQ
Q: Does it cost money?
A: Nope. 100% free and open source (AGPL-3.0). Uses your existing Claude Code subscription.
Q: Is my data safe?
A: Yes. Everything processed locally. Zero external API calls. Zero data upload.
Q: How is this different from plain Claude Code?
A: CCB 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.
Q: Can I customize it?
A: Absolutely. Prompt templates in src/core/PromptEnhancer.ts.
Want deeper customization? Fork it, hack it, make it yours. That's the open source way.
Q: Does it work with Cursor?
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 CCB saved you time today, give it a star!
It helps others discover this tool.
Not affiliated with Anthropic PBC • Independent open-source project