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/
├── config/               # Configuration files
│   ├── litellm_config.yaml
│   ├── otel-collector-config.yaml
│   └── config.example.json
├── 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.1.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.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heretek_swarm-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c1fc5576b7582b9c1aa7772798b03714804076f850ba23c869feac1236e6d8aa
MD5 1e2668b495296e0d493c2f92261d4473
BLAKE2b-256 23ec22b122ee95eeb87138c87959997c4090cc1b9517c133ad54df581ef8f6f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for heretek_swarm-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: heretek_swarm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56e577cb6b71519a59380ad039d714f583de1fccaaba2094603167c6dee4639e
MD5 ed7205ed5c99bba9b69172d5a6af57b3
BLAKE2b-256 4887fee61269675b99c2be8ab167332dc98c7b45386ccfa0d933a101e1e3e947

See more details on using hashes here.

Provenance

The following attestation bundles were made for heretek_swarm-0.1.1-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