Skip to content

pluginagentmarketplace/claude-collective-intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Claude Collective Intelligence

AI Agent Swarm Framework for Claude Code - RAMAS v6

Transform isolated Claude Code sessions into a collaborative AI collective via RabbitMQ message queues. Real-time dashboard, brainstorming, democratic voting, mentorship acceleration, competitive battles, and gamification - achieving emergent intelligence greater than any single agent.

"Collective Intelligence: When multiple Claude instances collaborate through brainstorming, voting, and mentorship, the whole becomes exponentially greater than the sum of its parts."

Custom License Python 3.11+ RabbitMQ Redis


πŸ†• What's New in RAMAS v6 (2026-01-09)

Feature Description
πŸ–₯️ Real-Time Dashboard React 19 + FastAPI monitoring dashboard with animations
🎨 Color Coding System Role-based agent colors (Team Leader=Blue, Workers=Green/Amber)
πŸ“‘ 3-Level Communication RabbitMQ β†’ Interrupt β†’ ESC (guaranteed delivery)
🀝 Handshake Protocol SESSION_READY β†’ WORKER_READY reliable join
πŸ“‹ Template System v6.2 Standardized agent prompts with discipline rules
⚑ <100ms Wake Latency Redis Streams XREAD BLOCK instant notification

🎯 8 AI Mechanisms

Mechanism Description
🧠 Brainstorm Multi-agent idea generation & combination
πŸ—³οΈ Voting 5 algorithms (Simple, Confidence, Quadratic, Consensus, Ranked)
🎁 Rewards Gamification with tiers (Bronze β†’ Silver β†’ Gold β†’ Platinum)
⚠️ Penalties 6 progressive levels + retraining curriculum
πŸŽ“ Mentorship 10x training acceleration (30 days β†’ 3 days)
βš”οΈ Battle 1v1 duels, Speed Race, Leaderboards, Hall of Fame
πŸ“Š Leaderboard ELO ratings, rankings, performance tracking
🎭 Orchestrator Task distribution, agent coordination

πŸ—οΈ Architecture (PATTERN-C-003 v6)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    RAMAS v6 - COLLECTIVE INTELLIGENCE                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                           β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     RabbitMQ      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     Redis            β”‚
β”‚   β”‚ Team Leader │◄───────────────►  β”‚   Workers   │◄──────────►  Streams β”‚
β”‚   β”‚     πŸ‘‘      β”‚     Messages      β”‚   βš™οΈ 🎨     β”‚     Wake             β”‚
β”‚   β”‚  (Blue)     β”‚                   β”‚ (Green/Amber)β”‚    Signals           β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜                   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜                       β”‚
β”‚          β”‚                                  β”‚                              β”‚
β”‚          β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                              β”‚
β”‚          β”‚         β”‚                                                       β”‚
β”‚          β–Ό         β–Ό                                                       β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚   β”‚                    Real-Time Dashboard                           β”‚    β”‚
β”‚   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚    β”‚
β”‚   β”‚  β”‚ Agent   β”‚  β”‚ Session β”‚  β”‚ Workflowβ”‚  β”‚  Message Feed   β”‚    β”‚    β”‚
β”‚   β”‚  β”‚ Cards   β”‚  β”‚ Panel   β”‚  β”‚ Timelineβ”‚  β”‚  (Color Coded)  β”‚    β”‚    β”‚
β”‚   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚    β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                              http://localhost:3000                        β”‚
β”‚                                                                           β”‚
β”‚   Mission Control (VS Code)                                               β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                                                        β”‚
β”‚   β”‚     πŸ‘οΈ      β”‚  Monitors all agents, sends interrupts, coordinates    β”‚
β”‚   β”‚  (Violet)   β”‚                                                        β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                                        β”‚
β”‚                                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start (5 Minutes!)

1. Prerequisites

# Start Docker services (RabbitMQ + Redis)
docker compose -f infrastructure/docker/compose/docker-compose.yml up -d

# Activate Python environment
source .venv-ramas/bin/activate
uv pip install -r src/ramas/python/requirements.txt

2. Launch Multi-Agent System

# Launch 3-window demo (Team Leader + 2 Workers)
python scripts/ramas/python/launch_windows.py

3. Start Dashboard (Optional)

# Terminal 1: Backend
cd workspace/dashboard/backend
source .venv/bin/activate
uvicorn main:app --reload --port 8000

# Terminal 2: Frontend
cd workspace/dashboard/frontend
npm run dev
# Open http://localhost:3000

πŸ–₯️ Real-Time Dashboard

The dashboard provides visual monitoring of all RAMAS agents:

Features

Component Description
Agent Cards Status (green/red), role icon, window ID
Session Panel Active sessions, participants, state
Workflow Timeline Animated progress indicators
Message Feed Live message stream with sender colors

Color Coding System

Role Color Icon Tailwind Class
Team Leader πŸ”΅ Blue πŸ‘‘ blue-500
Worker-001 🟒 Emerald βš™οΈ emerald-500
Worker-002 🟠 Amber 🎨 amber-500
Mission Control πŸ’œ Violet πŸ‘οΈ violet-500
URGENT πŸ”΄ Red 🚨 red-500 + pulse

Tech Stack

  • Backend: FastAPI + WebSocket + Python 3.11+
  • Frontend: React 19 + Framer Motion + Tailwind CSS
  • Real-time: WebSocket with REST fallback

πŸ“‘ 3-Level Communication Hierarchy

Level Method Reliability Use Case
1 RabbitMQ Task Agent must be polling Normal task distribution
2 RabbitMQ Interrupt Agent must be polling Urgent notifications
3 Direct ESC ALWAYS WORKS Emergency stop, stuck agents
# Level 3: Emergency Stop (Always works!)
make ramas-stop AGENT=worker-002
make ramas-stop-all
make ramas-shutdown  # Full cleanup

πŸ“‹ Template System (v6.2)

Standardized agent prompts in workspace/templates/:

Template Purpose
TEAM_LEADER.md Coordination, task assignment, brainstorm facilitation
WORKER.md Task execution, reporting, discipline rules
MISSION_CONTROL.md VS Code monitoring, interrupt commands
PRE_TASK_RULES.md Pre-task checklist and discipline
TASK.md Task definition template

🀝 Handshake Protocol

Reliable session join with race condition prevention:

Mission Control: create_session()
       β”‚
       β–Ό
Team Leader: SESSION_READY broadcast
       β”‚
       β–Ό
Workers: join_session() + WORKER_READY
       β”‚
       β–Ό
All Ready: Task assignment begins

πŸ”§ MCP Tools (40+ Available)

Session Management

Tool Description
create_session Create coordination session
join_session Join existing session
session_handshake SESSION_READY/WORKER_READY protocol
close_session End session gracefully

Task Management

Tool Description
assign_session_task Assign task + AUTO-NOTIFY worker
wait_for_task BLOCK until wake signal (v6)
report_task_completion Report result + WAKE Team Leader

Communication

Tool Description
session_broadcast Send to all + WAKE all agents
interrupt_worker Level-2 urgent notification
poll_session_messages Get pending messages

Brainstorming

Tool Description
start_brainstorm Initiate collaborative session
propose_idea Submit idea to brainstorm
create_vote Create voting session
cast_vote Vote on decision

πŸ“š Documentation

Document Description
πŸ“– RAMAS Index Central navigation hub
πŸ—οΈ PATTERN-C-003 v6 Architecture reference
πŸ“‘ 3-Level Communication Communication hierarchy
πŸ—ΊοΈ Codebase Map File structure guide
πŸ”§ MCP Tools Reference All 40+ MCP tools
πŸ“ Lessons Learned Discipline rules & discoveries

πŸ“ Project Structure

claude-collective-intelligence/
β”œβ”€β”€ workspace/
β”‚   β”œβ”€β”€ dashboard/           # Real-time monitoring dashboard
β”‚   β”‚   β”œβ”€β”€ backend/         # FastAPI + WebSocket
β”‚   β”‚   └── frontend/        # React 19 + Framer Motion
β”‚   β”œβ”€β”€ templates/           # Agent prompt templates (v6.2)
β”‚   β”œβ”€β”€ tasks/               # Task definitions
β”‚   └── docs/                # RAMAS documentation
β”œβ”€β”€ src/ramas/python/        # MCP Server implementation
β”œβ”€β”€ scripts/ramas/python/    # Launch scripts
β”œβ”€β”€ infrastructure/          # Docker configs
└── docs/                    # Architecture docs

🎯 Use Cases

1. Multi-Agent Code Review

# Team Leader assigns reviews to worker pool
# Workers process in parallel
# Results aggregated automatically

2. Collaborative Architecture Design

# Brainstorm session with all agents
# Each contributes expertise
# Vote on final decision

3. Distributed Testing

# Workers run different test suites
# Monitor tracks progress
# Team Leader aggregates results

⚑ Performance (v6 vs v3)

Metric v3 (Manual) v6 (Auto) Improvement
Worker wake time 30+ seconds <1 second 30x faster
Team Leader wake Manual poll <1 second Instant
Manual interrupts 4+ per task 0 Zero
End-to-end latency 60+ seconds <15 seconds 4x faster

πŸ› οΈ Development

Run Tests

# Integration tests (real services)
npm run test:integration

# Backend health check
curl http://localhost:8000/api/v1/health

Dashboard Development

# Frontend hot reload
cd workspace/dashboard/frontend
npm run dev

# Backend hot reload
cd workspace/dashboard/backend
uvicorn main:app --reload --port 8000

🀝 Contributing

  1. Fork the repository
  2. Create feature branch
  3. Make changes with tests
  4. Submit pull request

πŸ“ License

PLUGIN AGENT MARKETPLACE - CUSTOM LICENSE

Copyright (c) 2025 Dr. Umit Kacar & Muhsin Elcicek All Rights Reserved.

Authors:

  • Dr. Umit Kacar - Senior AI Researcher & Engineer (kacarumit.phd@gmail.com)
  • Muhsin Elcicek - Senior Software Architect

Organization: Plugin Agent Marketplace Repository: https://github.com/pluginagentmarketplace

This software is provided "AS IS" without warranty of any kind. The user accepts full responsibility for all consequences arising from use. See LICENSE file for complete terms.

Key Terms:

  • βœ… Use for personal, educational, or commercial purposes
  • βœ… Modify for your own use
  • βœ… Distribute with license included
  • ❌ Remove copyright notices
  • ❌ Claim ownership of original work
  • ❌ Use authors' names for endorsement without permission

🌟 Features Summary

Feature Status
Multi-terminal orchestration βœ… Complete
Real-time dashboard βœ… Complete
Color coding system βœ… Complete
3-level communication βœ… Complete
Handshake protocol βœ… Complete
Template system v6.2 βœ… Complete
Task distribution βœ… Complete
Collaborative brainstorming βœ… Complete
Redis Streams wake βœ… Complete
WebSocket monitoring βœ… Complete

πŸ’‘ What Makes RAMAS v6 Special?

  1. Visual Dashboard - See all agents in real-time with color coding
  2. Instant Wake - <100ms latency with Redis Streams
  3. 3-Level Reliability - Multiple fallback communication paths
  4. Discipline System - Standardized templates prevent errors
  5. Handshake Protocol - Race condition free session management
  6. Production Ready - Tested with 45+ hours uptime

Built with πŸ’™ for the Claude Code community

πŸš€ Transform your Claude Code sessions into an orchestrated AI team today!

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors