Skip to main content

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

Metadata

Release files for heretek-swarm 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heretek-swarm 0.1.1
File Size Uploaded Provenance
heretek_swarm-0.1.1.tar.gz 1.2 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for heretek-swarm 0.1.1
File Interpreter ABI Platform
heretek_swarm-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.6 MB

Release files / heretek_swarm-0.1.1.tar.gz

Download URL heretek_swarm-0.1.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
c1fc5576b7582b9c1aa7772798b03714804076f850ba23c869feac1236e6d8aa
BLAKE2b-256 checksum
How to use checksums
23ec22b122ee95eeb87138c87959997c4090cc1b9517c133ad54df581ef8f6f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / heretek_swarm-0.1.1-py3-none-any.whl

Download URL heretek_swarm-0.1.1-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
56e577cb6b71519a59380ad039d714f583de1fccaaba2094603167c6dee4639e
BLAKE2b-256 checksum
How to use checksums
4887fee61269675b99c2be8ab167332dc98c7b45386ccfa0d933a101e1e3e947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Security for heretek-swarm 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heretek_swarm-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page