Skip to main content

Heretek Swarm v2.0 - Next-generation multi-agent system built on Swarms framework

Project description

Heretek Swarm - The Collective

Version: 0.1.0
Framework: Python 3.11+
Status: PRODUCTION READY
Last Updated: 2026-04-18


Installation

Python Package (pip)

pip install heretek-swarm

The package provides the core heretek_swarm library installed under src/heretek_swarm/.

Frontend (npm)

cd dashboard/frontend
npm install
npm run dev

Docker Compose (Local Development)

docker-compose up -d

Starts PostgreSQL, Redis, Qdrant, the API server, and the frontend dashboard.


Package Structure

heretek-swarm/
├── src/heretek_swarm/      # Python package (pip-installable)
│   ├── actors/            # 23 agent implementations
│   ├── api/               # FastAPI endpoints
│   ├── consciousness/     # Consciousness metrics (GWT, IIT, FEP)
│   ├── consensus/         # MAKER protocol implementation
│   ├── gateway/           # NATS event mesh
│   ├── memory/            # Multi-tier memory system
│   ├── security/          # Zero-trust validation
│   └── state/             # PostgreSQL persistence
│
└── dashboard/frontend/    # React dashboard (npm-managed)
    ├── src/               # React/Vite application
    ├── public/
    └── package.json

Quick Start

Prerequisites

Requirement Minimum
Docker 20.10+
Docker Compose 2.0+
Python 3.11+

One-Shot Deployment

./deploy.sh

The script checks prerequisites, creates .env, pulls images, starts services, and runs migrations.

Manual Start

# Start infrastructure
docker-compose up -d postgres redis qdrant

# Start API
uvicorn src.heretek_swarm.api.main:app --reload

# Start frontend
cd dashboard/frontend && npm run dev

Script Commands

Command Description
./deploy.sh Deploy all services
./deploy.sh stop Stop all services
./deploy.sh restart Restart all services
./deploy.sh status Show service status
./deploy.sh logs View live logs
./deploy.sh clean Remove all containers and volumes

Troubleshooting

docker-compose ps          # Check service status
docker-compose logs api    # View error logs
docker-compose restart api # Restart a specific service

Kubernetes

For production Kubernetes deployment, see k8s/README.md.


Infrastructure (External Services)

The system depends on the following external services:

Service Default Port Purpose
PostgreSQL 5432 State persistence, mem0 episodic memory
Redis 6379 Working memory, caching
Qdrant 6333 Semantic/vector memory storage
NATS 4222 Event mesh (A2A agent communication)

All services are defined in docker-compose.yml. For local development without Docker, set DATABASE_URL, REDIS_URL, and QDRANT_HOST environment variables pointing to your infrastructure hosts.


🏛️ The 23 Agents

┌─────────────────────────────────────────────────────────────────┐
│                    THE COLLECTIVE (23 AGENT TYPES)              │
├─────────────────────────────────────────────────────────────────┤
│ TIER 1: CORE TRIAD (4)     │ TIER 4: SAFETY (3)               │
│ ├── Steward (Orchestrator) │ ├── Sentinel (Safety Guardian)   │
│ ├── Alpha (Deep Analysis)  │ ├── Sentinel-Prime (Security)    │
│ ├── Beta (Validation)      │ └── Arbiter (Conflict Resolution)│
│ └── Charlie (Challenge)    │                                   │
│                            │ TIER 5: COORDINATION (4)         │
│ TIER 2: SUPPORT (5)        │ ├── Coordinator (Multi-Agent)    │
│ ├── Historian (Memory)     │ ├── Nexus (External Integration) │
│ ├── Metis (Strategy)       │ ├── Catalyst (Change Mgmt)       │
│ ├── Empath (Emotional IQ)  │ └── Chronos (Scheduling)         │
│ └── Perceiver (Sensory)    │                                   │
│                            │ TIER 6: ENHANCEMENT (3)          │
│ TIER 3: EXPLORATION (4)    │ ├── Prism (Multi-Perspective)    │
│ ├── Explorer (Discovery)   │ ├── Habit-Forge (Optimization)   │
│ ├── Examiner (QA)          │ └── Perceiver+ (Advanced)        │
│ └── Coder (Implementation)│                                   │
└─────────────────────────────────────────────────────────────────┘

System Architecture

Components

Component Port Notes
FastAPI Server 8000 Python 3.11+
React Dashboard 3000 → 80 Vite/React
PostgreSQL 5432 pgvector enabled
Redis 6379 redis:7-alpine
Qdrant 6333 Vector storage

Frontend Dashboard

The React-based dashboard provides:

  • Agent Management: Deploy and monitor agents
  • Consciousness Metrics: Real-time consciousness visualizations
  • Workflow Builder: Visual workflow design with React Flow
  • Settings: LLM providers, embedding models, system config

Technology Stack: React 18.2+, Vite 5.0+, @xyflow/react 12.0+, Zustand, Tailwind CSS 3.4+


Configuration

Variable Required Description
DATABASE_URL Yes PostgreSQL connection string
REDIS_URL Yes Redis connection string
QDRANT_HOST Yes Qdrant host
MINIMAX_API_KEY Yes MiniMax API key

Documentation

Document Description
docs/ARCHITECTURE.md System architecture details
docs/API_ENDPOINTS.md API reference
docs/DEPLOYMENT.md Deployment guide
docs/CONSCIOUSNESS_PLUGINS.md Consciousness frameworks
docs/AGENTS.md Complete agent reference
PRIME_DIRECTIVE.md Project vision and philosophy
dashboard/frontend/README.md Frontend dashboard docs

The Prime Directive

Build a self-governing swarm of 23 specialized AI agents that operate independently 24/7, make collective decisions through consensus, adapt and learn from experience, and exhibit emergent collective intelligence.

🦞 The thought that never ends.


License: Apache 2.0

Last Updated: 2026-04-18

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heretek_swarm-0.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heretek_swarm-0.1.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file heretek_swarm-0.1.0.tar.gz.

File metadata

  • Download URL: heretek_swarm-0.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for heretek_swarm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d2f38506bf19255dc99ec5e4959f718b52df24d883e775d707439984ac172b45
MD5 b8fa3e4bccbf10843f6a14a2842c79e1
BLAKE2b-256 d72ee22ddd2425fe8dc563785664a55a31d3fec6b6191604ebc30592af2a6aa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for heretek_swarm-0.1.0.tar.gz:

Publisher: publish-python.yml on Heretek-AI/heretek-swarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file heretek_swarm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: heretek_swarm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for heretek_swarm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0db9a57a403008c06ed04b8fedf5b24e55f37634f5e5e8a43baba8cead6dfae
MD5 87d1c4b55dc476b84f2ab133896e6c7a
BLAKE2b-256 a58d641b1bdf3017f90fe7cda24221f078f58df1907aabe826df09a904651145

See more details on using hashes here.

Provenance

The following attestation bundles were made for heretek_swarm-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on Heretek-AI/heretek-swarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page