agent-hivemind

lancejames221b/agent-hivemind

3.3

If you are the rightful owner of agent-hivemind and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

ClaudeOps hAIveMind is a distributed AI memory and coordination system using the Model Context Protocol (MCP) to enable AI agent collaboration across infrastructure networks.

Tools
4
Resources
0
Prompts
0
    โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    โ”‚                                                                 โ”‚
    โ”‚      โ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ”‚
    โ”‚      โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—  โ”‚
    โ”‚      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘  โ”‚
    โ”‚      โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘  โ”‚
    โ”‚      โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•  โ”‚
    โ”‚      โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•   โ”‚
    โ”‚                                                                 โ”‚
    โ”‚    ๐Ÿง ๐Ÿค– Distributed AI Collective Memory for DevOps Automation ๐Ÿค–๐Ÿง     โ”‚
    โ”‚                                                                 โ”‚
    โ”‚      โ”Œโ”€[AGENT]โ”€โ”    โ”Œโ”€[AGENT]โ”€โ”    โ”Œโ”€[AGENT]โ”€โ”    โ”Œโ”€[AGENT]โ”€โ”      โ”‚
    โ”‚      โ”‚ ๐Ÿง  โšก ๐Ÿ› ๏ธ โ”‚โ—„โ”€โ”€โ–บโ”‚ ๐Ÿง  โšก ๐Ÿ› ๏ธ โ”‚โ—„โ”€โ”€โ–บโ”‚ ๐Ÿง  โšก ๐Ÿ› ๏ธ โ”‚โ—„โ”€โ”€โ–บโ”‚ ๐Ÿง  โšก ๐Ÿ› ๏ธ โ”‚      โ”‚
    โ”‚      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
    โ”‚           โ–ฒ              โ–ฒ              โ–ฒ              โ–ฒ           โ”‚
    โ”‚           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜           โ”‚
    โ”‚                     โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”                     โ”‚
    โ”‚                     โ”‚   ๐Ÿง  COLLECTIVE ๐Ÿง     โ”‚                     โ”‚
    โ”‚                     โ”‚      MEMORY HUB       โ”‚                     โ”‚
    โ”‚                     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                     โ”‚
    โ”‚                                                                 โ”‚
    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

ClaudeOps hAIveMind - Distributed AI Memory & Coordination System

A Model Context Protocol (MCP) server enabling distributed AI agent coordination with persistent collective memory across infrastructure networks.

Author: Lance James, Unit 221B, Inc

๐Ÿš€ Quick Start

# 1. Install dependencies
pip install -r requirements.txt

# 2. Start hAIveMind services
python src/memory_server.py &
python src/remote_mcp_server.py &  # MCP/SSE endpoints on port 8900
python src/dashboard_server.py &   # Dashboard on port 8901

# 3. Access the services
# Comet# Portal: http://localhost:8900/comet#  # AI-optimized interface
# MCP SSE:       http://localhost:8900/sse     # MCP integration
# Health:        http://localhost:8900/health  # System status

# 4. Install MCP client
cd mcp-client && ./install.sh

# 5. Test integration
cursor-agent mcp list-tools haivemind

๐Ÿ“ Repository Structure

memory-mcp/
โ”œโ”€โ”€ ๐Ÿง  Core System
โ”‚   โ”œโ”€โ”€ src/                    # Main hAIveMind server code
โ”‚   โ”œโ”€โ”€ config/                 # System configuration files
โ”‚   โ””โ”€โ”€ services/               # Systemd service definitions
โ”‚
โ”œโ”€โ”€ ๐Ÿ”Œ MCP Integration
โ”‚   โ”œโ”€โ”€ mcp-client/             # Portable MCP client for any system
โ”‚   โ”‚   โ”œโ”€โ”€ src/                # Client implementations
โ”‚   โ”‚   โ”œโ”€โ”€ config/             # Ready-to-use configurations
โ”‚   โ”‚   โ”œโ”€โ”€ examples/           # Environment-specific examples
โ”‚   โ”‚   โ””โ”€โ”€ docs/               # Complete documentation
โ”‚   โ””โ”€โ”€ .cursor/                # Cursor-agent configuration
โ”‚
โ”œโ”€โ”€ ๐Ÿ› ๏ธ Tools & Scripts
โ”‚   โ”œโ”€โ”€ scripts/                # Utility and setup scripts
โ”‚   โ”œโ”€โ”€ tools/                  # Standalone tools and installers
โ”‚   โ””โ”€โ”€ admin/                  # Web admin interface
โ”‚
โ”œโ”€โ”€ ๐Ÿ“š Documentation
โ”‚   โ”œโ”€โ”€ docs/                   # Main documentation
โ”‚   โ”‚   โ””โ”€โ”€ stories/            # Implementation stories
โ”‚   โ”œโ”€โ”€ commands/               # Command documentation
โ”‚   โ””โ”€โ”€ examples/               # Configuration examples
โ”‚
โ”œโ”€โ”€ ๐Ÿงช Testing & Development
โ”‚   โ”œโ”€โ”€ tests/                  # Test suites
โ”‚   โ””โ”€โ”€ INSTALL/                # Installation guides
โ”‚
โ””โ”€โ”€ ๐Ÿ“Š Data & Logs
    โ”œโ”€โ”€ data/                   # ChromaDB storage
    โ”œโ”€โ”€ database/               # SQLite databases
    โ””โ”€โ”€ logs/                   # System logs

โœจ Key Features

๐Ÿง  Collective Intelligence

  • Distributed Memory: ChromaDB + Redis for persistent, searchable memory
  • Agent Coordination: Task delegation and knowledge sharing across the network
  • Real-Time Sync: Vector clocks for conflict resolution during synchronization

๐Ÿ”Œ Universal MCP Integration

  • Portable Client: Works with Claude Desktop, cursor-agent, and any MCP system
  • 57+ MCP Tools: Memory operations, agent coordination, infrastructure management
  • Multiple Configurations: Development, production, and multi-environment setups
  • Comet# Portal: Ultra-lightweight AI-first interface for browser automation

๐ŸŒ Network Architecture

  • Tailscale VPN: Secure machine-to-machine communication
  • Multi-Machine Support: Elasticsearch clusters, proxy fleets, development environments
  • Service Discovery: Automatic agent registration and capability detection

๐Ÿ› ๏ธ DevOps Integration

  • Infrastructure Tracking: State snapshots and configuration synchronization
  • Incident Management: Automated correlation and resolution tracking
  • Runbook Generation: Reusable procedures from successful operations
  • External Connectors: Confluence, Jira, and custom API integrations

๐ŸŽฏ Production Status

โœ… PRODUCTION READY - Successfully deployed and tested:

  • MCP Integration: 12 tools available via cursor-agent
  • Distributed Memory: Multi-machine synchronization operational
  • Agent Coordination: Task delegation and knowledge sharing active
  • Infrastructure Management: SSH configs, service monitoring, incident tracking

๐Ÿ“– Documentation

  • - Complete MCP client documentation
  • - One-command setup
  • - Detailed setup instructions
  • - All available commands and tools

๐Ÿš€ Getting Started

Local Development

# Start all services
./tools/start-haivemind.sh

# Install MCP client
cd mcp-client && ./install.sh

# Configure cursor-agent
cp mcp-client/config/cursor-agent.json .cursor/mcp.json

Remote Access

# Use Tailscale configuration
cp mcp-client/config/remote-access.json .cursor/mcp.json

# Test remote connection
cursor-agent mcp list-tools haivemind-remote

Production Deployment

# Install as systemd services
sudo ./services/install-services.sh

# Configure for production
cp mcp-client/examples/production.json .cursor/mcp.json

๐Ÿค– Available Tools

Core Memory Operations

  • store_memory - Store memories with comprehensive tracking
  • search_memories - Full-text and semantic search
  • retrieve_memory - Get specific memory by ID
  • get_recent_memories - Time-based memory retrieval
  • get_memory_stats - Memory system statistics

Agent Coordination

  • register_agent - Register as hAIveMind agent
  • get_agent_roster - View all active agents
  • delegate_task - Assign tasks to specialized agents
  • broadcast_discovery - Share findings network-wide

Infrastructure & DevOps

  • record_incident - Log infrastructure incidents
  • generate_runbook - Create operational procedures
  • sync_ssh_config - Synchronize SSH configurations

๐Ÿš€ Comet# AI Browser Integration

Ultra-lightweight portal for AI browsers at /comet#

Key Features:
  • 90% smaller than human-oriented interfaces
  • JSON-LD structured data for instant AI parsing
  • Auto-tagging with #comet-ai on all interactions
  • Bidirectional data exchange via /comet#/exchange
  • Session continuity for multi-agent handoff
  • Real-time streaming via /comet#/stream
API Endpoints:
  • GET /comet# - AI-optimized portal interface
  • POST /comet#/auth - Lightweight authentication
  • GET /comet#/context - System context for AI consumption
  • POST /comet#/exchange - Unified data exchange (store/query/execute)
  • GET /comet#/sync - State export for agent handoff
  • POST /comet#/sync - State import from other agents
  • GET /comet#/stream - SSE for real-time updates
Universal Data Format:
{
  "comet_meta": {
    "session": "token",
    "source": "comet-browser|claude-desktop|martin-ai",
    "capabilities": ["autonomous", "memory-access", "workflow"]
  },
  "intent": "store|query|execute|delegate",
  "payload": {"content": "...", "category": "..."}
}

๐Ÿ”ง Configuration

The system supports multiple deployment scenarios:

  • Development: Local services with file-based storage
  • Production: Distributed services with Redis clustering
  • Hybrid: Mix of local and remote hAIveMind instances
  • Multi-Environment: Separate dev/staging/prod coordination

See mcp-client/examples/ for ready-to-use configurations.

๐Ÿ›ก๏ธ Security

  • Encrypted Storage: All credentials encrypted with AES-256-CBC
  • Network Security: Tailscale VPN for all inter-machine communication
  • Access Control: JWT authentication and role-based permissions
  • Data Privacy: GDPR-compliant deletion and export tools

๐Ÿ“Š Network Topology

The hAIveMind system operates across multiple machine groups:

  • Orchestrators (lance-dev): Primary coordination and memory hubs
  • Elasticsearch (elastic1-5): Search specialists with cluster management
  • Databases (mysql, mongodb): Data operation specialists
  • Scrapers (proxy0-9): Data collection and processing agents
  • Monitoring (grafana, auth-server): Infrastructure monitoring specialists

Each machine maintains local memory with network-wide synchronization capabilities.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Update documentation
  5. Submit a pull request

๐Ÿ“„ License

MIT License - see for details.

๐Ÿ™‹ Support

  • Issues: GitHub Issues for bug reports and feature requests
  • Documentation: Comprehensive guides in docs/ directory
  • Examples: Working configurations in examples/ directory

ClaudeOps hAIveMind - Enabling distributed AI coordination for the future of DevOps automation.