Shadow Brain v6.0.0
April 24, 2026 ยท View on GitHub
Released: 2026-04-24 Codename: Hive Mind
The first open-source AI brain that works with sub-agents. 22 novel features that don't exist in any other tool โ open or closed source. Local-first by default.
๐ฅ The 5 Headliners
| # | Feature | Why it's novel |
|---|---|---|
| 1 | Sub-Agent Brain Bridge (SABB) | No tool syncs brain memory to sub-agents. Shadow Brain is the first. Supports Claude Code Task, Cursor Composer, CrewAI, LangGraph, AutoGen, generic. |
| 2 | Causal Memory Chains | Every decision records its cause. Traceable, auditable, Graphviz-rendered DAG. |
| 3 | Agent Collision Detective | Real-time overlap detection between competing agent edit intents, with advisory locks. |
| 4 | Dream Engine | Background reflective idle loop via local Ollama. Revisit, counterfactual, consolidation, contradiction, pattern-discovery. |
| 5 | Ed25519 Reputation Ledger | Cryptographically-signed agent decision receipts. Portable reputation JSON + shields.io badges. |
๐ง 17 More Never-Seen Features
- Swarm Debate Protocol (pro/con/arbiter sub-agents)
- Pre-Mortem Assistant (surfaces past failures before tasks)
- Branch Brains (git-aware memory context)
- Attention Heatmap (weighted memory attribution)
- Token Economy Engine (cross-agent spend + savings)
- Forgetting Curve + Sleep Consolidation (Ebbinghaus)
- Formal Verification Bridge (NL โ ESLint/Semgrep/LSP)
- Confidence Calibration Monitor (Brier scores)
- Cost-Aware Sub-Agent Spawner
- Air-Gap Mode (offline, localhost-only)
- E2E Encryption (ChaCha20-Poly1305)
- Hallucination Quarantine (suspect memory isolation)
- Voice Mode (transcript + intent)
- Brain Garden (aesthetic visualizer)
- PR Auto-Review (GitHub comment generator)
- Team Brain Sync (WebRTC P2P, no server)
- Brain Exchange (curated slice sharing)
โก Hive Accelerator
- SSSP Router โ arXiv 2504.17033 (Breaking the Sorting Barrier) for causal chain traversal: O(m log^(2/3) n)
- TurboQuant โ ICLR 2026 Google Research for 6ร vector compression on SABB similarity + brain exchange payloads
- Local-First Default โ all AI features route to Ollama by default. Zero API keys needed.
๐ฅ๏ธ Complete Web Control Dashboard
shadow-brain start . โ http://localhost:7341/hive
23 tabs covering every feature:
- Overview (live stats, agents, memories, dreams, savings)
- Sub-Agent Bridge (sliver generator + quarantine review)
- Causal Chains (Graphviz tracer)
- Collisions (active intents + alerts)
- Dream Engine (manual cycle + insights)
- Reputation (leaderboard + badge generator)
- Swarm Debate
- Pre-Mortem
- Attention Heatmap
- Token Economy (charts + suggestions)
- Forgetting Curve (consolidation)
- Formal Rules (ESLint + Semgrep export)
- Calibration Scores
- Branch Brains
- Privacy & Safety (air-gap + quarantine)
- Voice
- Brain Garden (live canvas)
- PR Review generator
- Team Sync (peers)
- Exchange (packages)
- Agents โ connect/disconnect per agent, attach/detach all
- Live Graph โ animated canvas with real-time signal particles flowing between brain + agents + sub-agents
- Activity Log โ unified stream of all brain events
- Config โ LLM provider, API keys, MCP server
๐ Numbers
| v5.2.0 | v6.0.0 | |
|---|---|---|
| Brain modules | 26 | 48 |
| CLI commands | ~70 | 90+ |
| MCP tools | ~27 | 60+ |
| Test suites | 10 | 11 |
| Tests passing | 124 | 148 |
| TypeScript errors | 0 | 0 |
| Build | โ | โ |
๐ Install / Upgrade
# Global install
npm install -g @theihtisham/agent-shadow-brain
# Or run direct (no install)
npx @theihtisham/agent-shadow-brain@latest attach-all
# Start everything (dashboard + MCP + watcher)
shadow-brain start .
# Complete web dashboard
open http://localhost:7341/hive
๐ New Files
All v6 modules live in src/brain/:
subagent-bridge.tsโ SABBcausal-chains.tscollision-detective.tsdream-engine.tsreputation-ledger.tsswarm-debate.tspre-mortem.tsbranch-brain.tsattention-heatmap.tstoken-economy.tsforgetting-curve.tsformal-verification-bridge.tscalibration-monitor.tscost-aware-spawner.tsair-gap.tsbrain-encryption.tshallucination-quarantine.tsvoice-mode.tsbrain-garden.tspr-auto-review.tsteam-brain-sync.tsbrain-exchange.tslocal-llm.tshive-accelerator.ts
Plus:
src/dashboard/v6-dashboard-html.tsโ full 23-tab control dashboardtests/brain/hivemind-v6.test.tsโ 24 smoke testsdocs/launch/hivemind-explainer.htmlโ 1-minute GSAP explainer videodocs/launch/hivemind-captions.srtโ SRT captions
๐ Migration from v5.2 โ v6.0
Zero breaking changes to existing APIs. All v5.2 behavior preserved.
New features are opt-in via CLI commands + new MCP tools. Existing sessions continue to work.
If you're already running shadow-brain start ., after upgrade just re-run โ you'll see the new /hive dashboard route alongside the existing / dashboard.
๐ Philosophy
Local-first by default. Dream Engine, Swarm Debate, Pre-Mortem, Voice all route to Ollama first. No API keys required. Works offline, in air-gapped environments, in compliance-constrained enterprises. Remote providers (Anthropic, OpenAI, GLM, MiniMax) remain optional upgrades โ never requirements.
Free forever. MIT license. Zero subscription tiers. Zero trial expiration. Zero feature gating.
Open source moat. Closed tools can't match local-first because their business model depends on API consumption. This is your unfair advantage.