JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q14961F
  • License AGPL-3.0

Your friendly AI companion for Claude Code - smart routing, prompt enhancement, and project memory

Package Exports

  • @pcircle/claude-code-buddy-mcp
  • @pcircle/claude-code-buddy-mcp/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pcircle/claude-code-buddy-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🧠 Claude Code Buddy (CCB)

The Only MCP Server That Remembers

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

GitHub Stars npm version License MCP

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


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

πŸ”΄ Without CCB

# 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 CCB

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

# Session 2 (Tuesday)
You: buddy-remember "auth"
CCB: πŸ“š "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"
CCB: 🧠 "I see you have JWT. Let's
     integrate OAuth alongside it..."

πŸ’‘ 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

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

βœ… After CCB

  • 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?"
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

  • Node.js 20+
  • Claude Code or Cursor IDE
  • 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 CCB better!

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:

  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.

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:


πŸ“„ 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 CCB 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 β€’ 繁體中文