lancejames221b/agent-hivemind
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.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โโโ โโโ โโโโโโ โโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโ โ
โ โโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ โ
โ โโโ โโโโโโ โโโโโโ โโโโโโโ โโโโโโโโโโโ โโโ โโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โโโ โโโโโโ โโโโโโ โโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโ โ
โ โ
โ ๐ง ๐ค 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 trackingsearch_memories
- Full-text and semantic searchretrieve_memory
- Get specific memory by IDget_recent_memories
- Time-based memory retrievalget_memory_stats
- Memory system statistics
Agent Coordination
register_agent
- Register as hAIveMind agentget_agent_roster
- View all active agentsdelegate_task
- Assign tasks to specialized agentsbroadcast_discovery
- Share findings network-wide
Infrastructure & DevOps
record_incident
- Log infrastructure incidentsgenerate_runbook
- Create operational proceduressync_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 interfacePOST /comet#/auth
- Lightweight authenticationGET /comet#/context
- System context for AI consumptionPOST /comet#/exchange
- Unified data exchange (store/query/execute)GET /comet#/sync
- State export for agent handoffPOST /comet#/sync
- State import from other agentsGET /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
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Update documentation
- 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.