You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modern LLM deployments look strong in demos yet fail in the wild — not because models lack capability, but because the harness around them is thin. A stateless prompt loop cannot remember, cannot budget, cannot coordinate, and cannot recover from a tool error without human help. The model is naked without the harness; a harness without a model is dead.
HIVE-MIND was engineered to invert that hierarchy. It treats the harness itself as the primary artifact — a research testbed where every seam is measurable. Five strict layers, twenty-six extractable subsystems, eight provider families and five channels are not features but instruments for asking: what scaffolding actually makes a model better at tasks it was never trained to do?
The mechanism is selective wiring, not context stuffing. A sandboxed PTC VM that saves 80–95% of tokens, a hash-anchored Myers reconciler that eliminates drift, an AST skeleton that cuts 90% of code context, a two-tier memory with Ebbinghaus forgetting, and a Smart Router that rotates quotas with zero 429s. HIVE-MIND exists to prove, instrument and iterate on that hypothesis in public, as an experimental harness.
Architecture
HIVE-MIND is a strict five-layer harness with one-way dependency: each layer talks only to its immediate neighbours, no skips. The decomposition into 26 subsystems is formally audited in ARCHITECTURE.md with Martin instability metrics.
From a normalized NormalizedMessage to a delivered answer, the harness executes a closed loop: queue fairly, hydrate selectively, route intelligently, think with tools, validate both pre- and post-action, then persist only what matters.
Tool ID 9-char sanitization, reasoning_content relay, passthrough options
Channels & Transports
Channel
Status
Transport File
Notes
WhatsApp
baileys.ts
Multi-device, media, stickers, voice
Discord
discord.ts
Guilds, DMs
Telegram
telegram.ts
Groups, inline bots
CLI
cli.ts
Full interactive UX
TUI Server
TuiServerTransport.ts
Loopback WS :5001 (default, auto-increments if busy; see tui-connection.json)
Quick Start
Note — HIVE-MIND is an experimental research harness, not a product. Interfaces are unstable and may change without notice.
1 — Clone & Install (Node 22+ required)
# Clone the harness
git clone https://github.com/leandre755/HIVE-MIND.git
cd HIVE-MIND
# Install dependencies
npm install
2 — Configure Environment
# Copy the template and fill at least one LLM key + Supabase + Redis
cp .env.example .env
nano .env
3 — Launch the Harness
# Interactive startup menu — channel auth + provider selection
npm start
# Watch mode — auto-restart on source change
npm run dev
4 — Verify (build + lint + tests)
# 77 suites — 834 unit tests
npm run test:unit
# Fast local verification gate (build + fast lint + unit tests)
npm run build && npm run lint:fast && npm run test:unit
# Full local verification gate (build + lints + all tests + audit)
npm run build && npm run lint:fast && npm run lint:arch && npm run test:unit && npm run test:integration && npm audit