COMPLETED
NEXUS Multi-Agent Brainstorm (MAD Engine v3.0)
Autonomous technical deliberation and adversarial debate platform powered by multi-agent Artificial Intelligence. NEXUS Brainstorm brings together specialized AI personas (Tech Lead, Software Architect, Risk Skeptic, CyberSec Specialist, QA/Edge Cases, Legal Counsel, and Moderator) to debate complex architecture choices, stress-test technical assumptions, and mathematically converge toward an auditable consensus without infinite reasoning loops.
Technical Summary
The NEXUS Brainstorm (MAD Engine v3.0) plugin is a state-of-the-art multi-agent debate orchestrator built with PHP 8.3 and MySQL 8, complemented by a reactive Alpine.js and Tailwind CSS frontend. It features 5 anti-loop safeguard layers (Wald's SPRT, RUMAD Persona Pruning, Semantic Impasse Detection, Shannon Entropy Thresholds, and Hard Caps on Rounds/Tokens), 10 deliberation frameworks (ADR, First Principles, Official 12-Section Case Study, War Room, Red vs Blue Team, etc.), Formal AI Plenary & Voting, 19+ bilingual pre-configured templates, and native integration with NEXUS AI Hub (OpenAI, Claude, Gemini, Groq, Ollama, and OCI satellite nodes).
Executed Scope
plugin.json: v1.0.0, slugnexus-brainstorm, category "AI & Productivity", author "Percio Andrade".- **Decoupled Backend Architecture (
includes/*.php)**: - Reactive User Interface (
views/): - Full Dynamic i18n (
lang.json): Seamless runtime language switching between Portuguese (pt_BR), English (en_US), and Spanish (es_ES).
- includes/api.php: 20+ REST API endpoints authenticated via dynamic Bearer Tokens (nx-key-*). - includes/runner.php: Turn-by-turn debate runner, message synthesis, and proactive moderation. - includes/antiloop.php: Mathematical implementation of Wald's SPRT (Sequential Probability Ratio Test) and RUMAD Persona Pruning (yielding up to 80% token savings). - includes/voting.php: Formal AI voting plenary where each persona casts its vote (agree, disagree, neutral), agreement score (0-100%), and technical reasoning before final consensus synthesis. - includes/memory.php: Semantic decision memory index preventing repetitive discussions across sessions. - includes/templates.php: Multilingual catalog featuring 19+ engineering, security, compliance, and product frameworks. - includes/personas.php: 18+ predefined personas with distinctive intellectual biases (Linus Torvalds, Nassim Nicholas Taleb, Kelsey Hightower, Mikko Hyppönen, Kevin Mitnick, Carl Sagan, Ada Lovelace, etc.).
- Live Arena (arena.php): Live deliberation feed, turn progression, real-time telemetry (Convergence %, Entropy, Round, Token Budget), AI Voting Plenary, and ADR synthesizers. - Launchpad Hub: Quick-action center with 4 distinct paths (New Debate, 12-Section Case Study, Frameworks & Templates, Session History). - Session History (sessions.php): Filterable data table with lifecycle states (converged, running, impasse, collapsed). - Templates (templates.php): Interactive catalog with real-time parameter injection. - Decision Memory (memory.php): Searchable index of prior consensus records. - Settings (config.php): AI Hub provider rotation, fixed model fallback, and anti-loop algorithm configuration.
Technology Stack
- PHP 8.3 (Strict types, no heavy framework overhead)
- MySQL 8 (Singleton PDO architecture)
- Alpine.js v3 + Tailwind CSS v4.3
- AI Hub & MCP Server integration
- Bayesian Sequential Analysis & Wald's SPRT
- REST API with Bearer Tokens (
nx-key-*)
The 5 MAD Engine Anti-Loop Layers
- Wald's SPRT (Sequential Probability Ratio Test): Calculates log-likelihood ratios after each turn to trigger statistically sound early stopping upon consensus.
- RUMAD Agent Pruning: Dynamically removes redundant agents repeating prior points, saving up to 80% in token consumption.
- Semantic Impasse Detection: Detects cognitive gridlock between opposing personas and invokes Moderator arbitration.
- Shannon Entropy Monitoring: Tracks informational gain per turn, initiating synthesis when entropy drops below threshold.
- Hard Safety Caps: Strict bounds on maximum rounds (1-8) and session token budgets.
Subtabs and Views
- 🏟️ Live Arena: Real-time multi-turn debate execution, AI voting, and ADR Markdown export.
- 📜 Session History: Telemetry, audit trail, and paused session resumption.
- 📋 Debate Templates: 19+ pre-configured templates for rapid architectural and security decisions.
- 🧠 Decision Memory: Semantic catalog of past verdicts to inform future deliberations.
- ⚙️ Settings & AI Hub: Multi-model routing, provider cascading, and parameter tuning.
GitHub progress (issues)
Real-time panel with latest repository issues.
live feed
open issues on GitHubcarregando andamento...
não foi possivel carregar as issues agora. abra no github pelo link acima.
Real results
Autonomous multi-agent debate and convergence system featuring 5 anti-loop layers, 10 deliberation frameworks, AI voting plenary, semantic decision memory, and automated ADR / 12-section Case Study exports.
Architecture and organization
- PHP 8
- MySQL 8
- JavaScript
- Alpine.js
- Tailwind CSS
- REST API
- Plugin NEXUS
Execution and operations
The project follows reproducible execution flow with technical validation in production-like environments.
Screenshots
Talk about this project
Apply this implementation pattern in your environment and accelerate delivery with technical consistency.









