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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f38506bf19255dc99ec5e4959f718b52df24d883e775d707439984ac172b45
|
|
| MD5 |
b8fa3e4bccbf10843f6a14a2842c79e1
|
|
| BLAKE2b-256 |
d72ee22ddd2425fe8dc563785664a55a31d3fec6b6191604ebc30592af2a6aa1
|
Provenance
The following attestation bundles were made for heretek_swarm-0.1.0.tar.gz:
Publisher:
publish-python.yml on Heretek-AI/heretek-swarm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heretek_swarm-0.1.0.tar.gz -
Subject digest:
d2f38506bf19255dc99ec5e4959f718b52df24d883e775d707439984ac172b45 - Sigstore transparency entry: 1340118888
- Sigstore integration time:
-
Permalink:
Heretek-AI/heretek-swarm@b1f598f0412510b7144705066e17870cc912d6b0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Heretek-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@b1f598f0412510b7144705066e17870cc912d6b0 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0db9a57a403008c06ed04b8fedf5b24e55f37634f5e5e8a43baba8cead6dfae
|
|
| MD5 |
87d1c4b55dc476b84f2ab133896e6c7a
|
|
| BLAKE2b-256 |
a58d641b1bdf3017f90fe7cda24221f078f58df1907aabe826df09a904651145
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heretek_swarm-0.1.0-py3-none-any.whl -
Subject digest:
b0db9a57a403008c06ed04b8fedf5b24e55f37634f5e5e8a43baba8cead6dfae - Sigstore transparency entry: 1340118892
- Sigstore integration time:
-
Permalink:
Heretek-AI/heretek-swarm@b1f598f0412510b7144705066e17870cc912d6b0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Heretek-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@b1f598f0412510b7144705066e17870cc912d6b0 -
Trigger Event:
workflow_dispatch
-
Statement type: