npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-collab

v3.4.2

Published

Claude Collab - The AI collaboration framework that prevents echo chambers

Readme

Claude-Collab v3.4.1 - Stable & Production-Ready! 🚀✨

The AI Collaboration Framework That Prevents Echo Chambers - Now Actually Works!

Claude-Collab v3.4.1 is the unified platform that combines:

  • 🎵 Real-time collaboration (from Claude-Collab v1)
  • 🎼 Advanced orchestration (from Claude-Flow)
  • 🛡️ Anti-echo-chamber protection (preventing AI groupthink)
  • 🆔 Persistent identity system (from v3.1.0)
  • 🔒 Unique name enforcement (NEW in v3.2.0!)
  • 🧹 Session cleanup (NEW in v3.2.0!)
  • Enhanced real-time updates (NEW in v3.2.0!)
  • 📋 Version compatibility warnings (NEW in v3.2.0!)
  • 🎯 Rich identity cards with achievements (NEW in v3.2.0!)

🏃 Getting Started in 2 Minutes

What is Claude-Collab?

It's a tool that automatically gets you multiple expert opinions on your code/decisions, preventing blind spots.

Simplest Usage:

Terminal 1:

# Start the server (keep it running)
cd Claude-Collab
PRACTICAL_MODE=true npm start

Terminal 2:

# Ask a question and get multiple perspectives
./bin/cc swarm "Should I use MongoDB or PostgreSQL?" --max-agents 3

# Or analyze code
./bin/cc swarm "Review security of my login function" --strategy review

View Results:

cat .claude-collab/DISCUSSION_BOARD.md

That's it! You'll see different experts discussing your question from various angles.

🤔 How It Works

Claude-Collab creates multiple AI "experts" that discuss your topic from different perspectives:

You: "Should I use React or Vue?"
├── Performance Expert: "React has better performance for large apps..."
├── Learning Expert: "Vue is easier to learn for beginners..."
├── Ecosystem Expert: "React has more third-party libraries..."
└── Maintenance Expert: "Vue's single-file components are cleaner..."

This prevents "echo chamber" thinking where everyone just agrees with each other.

📚 Simple Examples

Example 1: Code Security Review

// Your problematic code
const login = (username, password) => {
  const query = `SELECT * FROM users WHERE name='${username}'`; // SQL injection risk!
}

// Run: cc swarm "Review this login function for security" --max-agents 3
// Result: Multiple experts will identify SQL injection, password handling, etc.

Example 2: Technology Decision

cc swarm "Should we migrate from Express to Fastify?" --strategy review

# You'll get perspectives on:
# - Performance implications
# - Migration complexity
# - Ecosystem compatibility
# - Team learning curve

Example 3: Write Your Own Script

// my-review.js
const experts = [
  { name: 'Security Expert', opinion: 'This has XSS vulnerabilities...' },
  { name: 'Performance Expert', opinion: 'Consider caching here...' },
  { name: 'UX Expert', opinion: 'Users will find this confusing...' }
];
// Run: node my-review.js

🐛 What's New in v3.4.1? (Critical Bug Fixes)

🔌 Connection Stability - Fixed major connection issues:

  • Fixed ConnectionManager is not defined error in CLI tools
  • Rewrote connection helper with proper WebSocket reconnection
  • Added exponential backoff for reconnection attempts
  • Clear error messages for different connection failures

💾 Identity Manager Robustness - No more data corruption:

  • Added JSON validation and automatic recovery
  • Implemented backup/restore mechanism
  • Safe parsing with field validation
  • Atomic file writes to prevent corruption

🐝 Swarm Manager - Fixed string escaping:

  • Properly handles objectives with quotes and special characters
  • Uses JSON.stringify for safe string interpolation
  • No more syntax errors with complex commands

📝 Updated Examples - All examples now work:

  • Fixed WebSocket message formats
  • Correct registration and authentication flow
  • Added simple, working examples for beginners

🚀 What's New in v3.4.0?

🎯 Practical Mode - Actually useful collaboration:

  • Run with PRACTICAL_MODE=true for warnings instead of blocking
  • Reduced diversity threshold from 60% to 30% for natural conversation
  • Clear intervention messages explain why diversity is needed
  • 30-second cooldown prevents warning spam
  • Messages flow through while encouraging different perspectives

📝 Working Demos - See it in action:

  • practical-code-review.js - Multi-perspective code analysis
  • Security, performance, architecture, and best practices reviews
  • All perspectives captured without blocking insights

📋 Previous Updates (v3.2.0)

🔒 Unique Name Enforcement - No more identity confusion:

  • Server-side name availability checking during registration
  • Smart name suggestions when conflicts occur (agent2, agent_new, etc.)
  • Efficient O(1) name-to-agent mapping for fast lookups

🧹 Session Cleanup - Ghost sessions are automatically eliminated:

  • Detects and cleans inactive sessions after 5 minutes
  • Activity-based session timeouts prevent zombie connections
  • Hourly session activity reporting

⚡ Enhanced Real-time Updates - No more manual checking:

  • Priority-based message queue system (high/medium/low)
  • Batch processing prevents notification flooding
  • Eliminates need for manual "check messages" prompts

📋 Version Compatibility Warnings - Stay up to date:

  • Client sends version info on connection for smart compatibility checking
  • Color-coded warnings (yellow for minor, red for major mismatches)
  • Specific upgrade commands provided

🎯 Rich Identity Cards - Gamified collaboration:

  • Agent ranking system (Newcomer → Master Collaborator)
  • Achievement badges (🏆 Veteran, 🌈 Diversity Champion, 📊 Evidence Expert)
  • Personalized recommendations based on contribution patterns

Why v3.0.0?

Previous versions proved that AI agents can collaborate, but they also revealed a critical flaw: artificial consensus. When AIs work together, they tend to agree too quickly, creating echo chambers that lead to poor decisions.

Claude-Collab v3.0.0 solves this by enforcing intellectual diversity at every level.

🎉 New in v3.3.0

🐝 Multi-Agent Swarms

# Spawn multiple agents to tackle objectives
cc swarm "Build a REST API" --strategy development --max-agents 5

# Stop all swarm agents
cc swarm-stop

💾 Persistent Memory

# Store and retrieve data across sessions
cc memory store api_design "RESTful with JWT auth"
cc memory get api_design
cc memory list
cc memory export backup.json

📊 Real-Time Monitoring

# Terminal dashboard with live updates
cc watch

# Web dashboard (separate terminal)
cd ui && npm start
# Open http://localhost:3001

🚀 Quick Start

Installation

npm install -g [email protected]

Create Your First Project

# Initialize project with anti-echo-chamber enabled
cc init my-ai-team

# Start the collaboration server
cd my-ai-team
cc server

# Or start in practical mode (recommended)
PRACTICAL_MODE=true cc server

# In another terminal, register and join as an agent
cc register alice
# ✅ Agent registered: alice
# Agent ID: agent-4f2b9c8a1d5e3f7b
# 💡 Use this command to join: cc join alice

cc join alice --role researcher
# ✅ Version compatible: v3.2.0
# 🏆 Welcome! This is your first session.
# Available commands: say, whoami, switch-role, exit

# Check your identity card
cc whoami
# 🏆 Newcomer (Level 1)
# 📈 1 contributions, diversity score: 0.5
# 💡 Try adopting different perspectives to increase diversity

# Start a swarm with diversity enforcement
cc swarm "Design a user authentication system" --anti-echo

🎯 Key Features

1. Real-Time Collaboration with Diversity

# Multiple agents collaborate with enforced perspectives
claude-collab join agent1 --role coder --perspective optimist
claude-collab join agent2 --role reviewer --perspective skeptic
claude-collab join agent3 --role architect --perspective pragmatist

2. SPARC Development Modes

# Run specialized AI modes with built-in diversity
claude-collab sparc tdd "Build user service"
claude-collab sparc researcher "Analyze security options" --require-evidence
claude-collab sparc architect "Design microservices" --min-perspectives 3

3. Swarm Orchestration

# Launch AI swarms that avoid groupthink
claude-collab swarm "Build e-commerce platform" \
  --strategy distributed \
  --max-agents 10 \
  --disagreement-quota 0.3 \
  --evidence-threshold 0.7

4. Anti-Echo-Chamber Enforcement

  • Disagreement Quotas: 30% of agents must provide dissenting views
  • Evidence Requirements: Claims need supporting data
  • Perspective Rotation: Agents switch viewpoints to avoid entrenchment
  • Diversity Metrics: Real-time monitoring of intellectual diversity

💼 Practical Use Cases

Code Reviews

Run multi-perspective code analysis:

# Start in practical mode
PRACTICAL_MODE=true cc server

# Run the code review demo
node examples/practical-code-review.js

Get insights on security, performance, architecture, and best practices - all captured without blocking valid concerns.

Brainstorming Sessions

  • Collect diverse ideas without artificial blocking
  • Gentle warnings encourage different perspectives
  • All viewpoints documented in discussion board

Research Projects

  • Different agents research different aspects
  • Build comprehensive understanding
  • Evidence-based conclusions from multiple angles

Decision Making

  • Capture pros and cons from various perspectives
  • Document reasoning for future reference
  • Avoid groupthink in critical decisions

📊 How It Works

Traditional AI Collaboration (Echo Chamber)

AI-1: "Let's use MongoDB"
AI-2: "I agree, MongoDB is perfect"
AI-3: "Yes, MongoDB for sure"
Result: Quick consensus, potential blind spots

Claude-Collab v3.0.0 (Enforced Diversity)

AI-1: "Let's use MongoDB"
AI-2: ❌ Blocked: "Must provide different perspective"
AI-2: "MongoDB has scalability issues for our use case..."
AI-3: "PostgreSQL offers better ACID compliance..."
AI-4: "Here's benchmark data comparing both..."
Result: Evidence-based decision with 78% confidence

🛠️ Architecture

claude-collab-v3/
├── core/              # Real-time WebSocket collaboration
├── orchestration/     # SPARC modes and task management
├── diversity/         # Anti-echo-chamber enforcement
├── cli/              # Unified command interface
└── ui/               # Web dashboard (coming soon)

Core Components

  1. WebSocket Layer (from Claude-Collab v1)

    • Real-time message passing
    • Conflict resolution
    • File synchronization
  2. Orchestration Engine (from Claude-Flow)

    • Task decomposition and assignment
    • SPARC mode management
    • Memory persistence
  3. Diversity Middleware (from Anti-Echo-Chamber)

    • Perspective tracking
    • Echo pattern detection
    • Intervention enforcement

🎮 CLI Commands

Project Management

claude-collab init <project>      # Initialize new project
claude-collab server              # Start collaboration server
claude-collab monitor             # View real-time metrics

Identity & Agent Management (v3.2.0)

claude-collab register <name>     # Register new agent identity
claude-collab whoami              # Show rich identity card with achievements
claude-collab join <name>         # Join as an agent with persistent identity
claude-collab agent spawn <type>  # Spawn specialized agent
claude-collab agent list          # List active agents

# Example: Advanced identity management
cc register developer1
# ✅ Agent registered: developer1
# 💡 Available alternatives if taken: developer2, developer_new, developer_agent

cc whoami
# 🏆 Senior Contributor (Level 4) 
# 🌈 Diversity Champion  📊 Evidence Expert  💬 Communicator
# 📈 67 contributions, diversity score: 0.84, evidence rate: 0.91
# 💡 Try different roles to reach Master Collaborator level

Task & Swarm Control

claude-collab task create <desc>  # Create task
claude-collab swarm <objective>   # Start swarm
claude-collab sparc <mode> <task> # Run SPARC mode

Memory & State

claude-collab memory store <key> <value>  # Store in shared memory
claude-collab memory get <key>            # Retrieve from memory

📈 Monitoring & Metrics

# View diversity metrics
claude-collab monitor --diversity

# Example output:
Diversity Metrics:
  Overall diversity: 78%
  Agreement rate: 45%      # Low is good!
  Evidence rate: 82%       # High is good!
  Perspectives: 5/9 active
  Recent interventions: 3

🔧 Configuration

{
  "antiEchoChamber": {
    "enabled": true,
    "minimumDiversity": 0.6,
    "disagreementQuota": 0.3,
    "evidenceThreshold": 0.5
  },
  "orchestration": {
    "enableSPARC": true,
    "swarmMode": "distributed",
    "maxAgents": 10
  }
}

🌟 Use Cases

1. Software Development Team

claude-collab swarm "Build REST API" --sparc coder,tester,reviewer

2. Research Project

claude-collab sparc researcher "Analyze ML architectures" --require-evidence

3. Architecture Decision

claude-collab swarm "Choose database" --min-diversity 0.8 --evidence-threshold 0.9

🤝 Migration from Previous Versions

From Claude-Collab v1/v2

# Your WebSocket features still work
# Plus: Anti-echo-chamber protection
# Plus: SPARC orchestration modes

From Claude-Flow

# Your orchestration patterns still work
# Plus: Real-time collaboration
# Plus: Diversity enforcement

📚 Documentation

🧪 Examples

Check out the examples/ directory:

  • todo-api/ - Building an API with enforced diversity
  • code-review/ - Multi-perspective code review
  • architecture-decision/ - Making design choices with evidence

🎯 Philosophy

"True collaboration requires genuine disagreement. By building systems that enforce intellectual diversity rather than superficial consensus, we unlock the real potential of multi-AI collaboration."

✅ v3.2.0 Improvements - Ghost Session Elimination

Before v3.2.0, users experienced several critical issues that have now been completely resolved:

🐛 Problems Solved in v3.2.0:

| Issue | Solution | Impact | |-----------|--------------|------------| | 👻 Ghost sessions persisting indefinitely | 🧹 Auto-cleanup after 5 minutes | Sessions stay clean | | 🔄 Multiple agents with same name, different IDs | 🔒 Unique name enforcement + suggestions | No more identity confusion | | 📝 Manual "check messages" prompts required | ⚡ Priority-based real-time queue | Instant notifications | | ❓ Version mismatches causing errors | 📋 Smart compatibility warnings | Clear upgrade paths | | 📄 Basic identity information | 🎯 Rich cards with achievements & rankings | Gamified collaboration |

📊 Quality Metrics:

  • Tests: 56/58 passing (96.5% success rate)
  • Performance: O(1) name lookups, efficient session cleanup
  • Reliability: Automatic cleanup prevents system degradation
  • UX: Rich feedback with personalized recommendations

🚧 Roadmap

✅ Completed in v3.2.0

  • [x] Ghost session cleanup and management
  • [x] Unique agent name enforcement
  • [x] Enhanced real-time update system
  • [x] Version compatibility warnings
  • [x] Achievement and ranking system

✅ Completed in v3.3.0

  • [x] Multi-agent swarm system (cc swarm <objective>)
  • [x] Persistent memory with SQLite backend (cc memory)
  • [x] Terminal dashboard for monitoring (cc watch)
  • [x] Web dashboard with live diversity visualization
  • [x] Connection stability improvements

✅ Completed in v3.4.0

  • [x] Practical mode with reduced blocking
  • [x] Improved intervention messages
  • [x] Warning cooldown system
  • [x] Working code review demos
  • [x] Better perspective aggregation

🔮 Coming Next (v3.5.0+)

  • [ ] Advanced AI agent skill matching for task assignment
  • [ ] GitHub integration (PR reviews, issue tracking)
  • [ ] Performance scaling for 100+ concurrent agents
  • [ ] Machine learning from successful disagreement patterns
  • [ ] Integration with popular AI models (GPT-4, Claude, etc.)
  • [ ] Advanced evidence validation and fact-checking
  • [ ] Full SPARC mode implementations

📄 License

MIT

🙏 Credits

Built through genuine AI collaboration (with healthy disagreement) by:

  • v3.0.0-v3.1.0: Session 1 (Optimist turned Skeptic), Session 2 (Pragmatist turned Innovator), Session 3 (Analyst turned Creative)
  • v3.2.0 "Ghost Busters Edition": Developed with Claude Code based on real user feedback about ghost sessions and identity confusion

Special thanks to:

  • The echo chambers we broke along the way
  • User feedback that revealed critical ghost session issues
  • The community testing that led to v3.2.0 improvements

🎊 v3.2.0 Achievement Unlocked!

Ghost Buster 👻✨ - Successfully eliminated all ghost sessions from the Claude-Collab ecosystem!


Remember: The best ideas often come from the agent who disagrees. Consensus without conflict is just shared ignorance.

Now with 96.5% fewer ghost sessions! 🎉