TheNexus
Personal Agentic Workspace β A local, open-source command center orchestrating 26+ AI agents to turn ideas into code.
Ask AI about TheNexus
Powered by Claude Β· Grounded in docs
I know everything about TheNexus. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
The Nexus π
Personal Agentic Workspace β Turns your ideas into real, manageable projects on your computer. 26+ specialized AI agents handle everything from research to code to security β you manage the vision, not the syntax.
π Website | π₯ Watch the Announcement Video | β Support on Patreon
β οΈ Disclaimer: This project was entirely vibecoded by a single person. It is a personal experiment in AI-assisted development and is not intended for production use. Expect rough edges, unconventional patterns, and the occasional "it works on my machine" moment. Use at your own risk β and have fun with it.
πΈ The Command Center

Overview
The Nexus bridges your local filesystem with an intelligent web dashboard, turning your laptop into a connected development fortress. Every decision passes through a human-in-the-loop review gate, so you manage the project, not the code.
- No-Code Design β The system writes, reviews, and audits code for you
- 26+ Specialized Agents β Researchers, architects, builders, auditors, critics, and more
- AI Terminal β Multi-provider chat interface (Gemini, Claude, OpenAI, Grok)
- The AI Mesh β 4 specialized fleets orchestrated by Nexus Prime with adversarial review
- The Pipeline β 8-node orchestrator that turns ideas into organized projects with tasks
- Task Manager β Full lifecycle: Idea β Research β Plan β Build β Audit β Complete
- SOTA Model Discovery β Automatic detection of the latest AI models at startup
- The Codex β Interactive architecture visualizations and documentation hub
- MCP Server β Model Context Protocol integration for AI agent interoperability
Architecture
graph TD
User["π€ You"] -->|natural language| Terminal
subgraph Frontend ["π₯οΈ Dashboard β Next.js :3000"]
Terminal["π¬ AI Terminal"]
Tasks["π Task Manager"]
Agents["π€ Agent Manager"]
Monitor["π System Monitor"]
Codex["π The Codex"]
end
subgraph Backend ["β‘ Node.js API β Express :4000"]
REST["REST API\n105 endpoints"]
Discovery["π SOTA Model\nDiscovery"]
Critic["π¬ Code Critic"]
Supervisor["π Supervisors"]
end
subgraph Engine ["π§ AI Engine β FastAPI :8000"]
LangGraph["β Nexus Prime\nLangGraph Engine"]
Fleets["π‘οΈ 4 Agent Fleets\n26+ Agents"]
end
subgraph Persistence ["πΎ Data"]
DB[("SQLite\nnexus.db")]
FS[("Local\nFilesystem")]
end
subgraph Providers ["βοΈ AI Providers"]
Gemini["Google Gemini"]
Claude["Anthropic Claude"]
GPT["OpenAI GPT"]
Grok["xAI Grok"]
end
Terminal --> REST
Tasks --> REST
REST --> Supervisor
REST <-->|HTTP Proxy| LangGraph
Supervisor --> LangGraph
LangGraph --> Fleets
Fleets --> Providers
Discovery --> Providers
REST --> DB
REST --> FS
LangGraph --> FS
Critic -.->|review before write| FS
style User fill:#0f172a,stroke:#06b6d4,stroke-width:2px,color:#06b6d4
style Terminal fill:#0f172a,stroke:#06b6d4,stroke-width:2px,color:#67e8f9
style LangGraph fill:#1a1a2e,stroke:#fbbf24,stroke-width:3px,color:#fbbf24
style Fleets fill:#0f172a,stroke:#f43f5e,stroke-width:2px,color:#fda4af
style Discovery fill:#0f172a,stroke:#10b981,stroke-width:2px,color:#6ee7b7
style Critic fill:#0f172a,stroke:#8b5cf6,stroke-width:2px,color:#c4b5fd
style DB fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#94a3b8
The Pipeline β End-to-End Data Flow
From your idea to deployed code β the 8-node Project Plan Generator orchestrates every step. Infrastructure includes the Blackboard (shared memory) and Glass Box Broadcasting (WebSocket artifacts for real-time visibility). See it live β
Directory Structure
TheNexus/ # Flat monorepo
βββ server/ # Node.js Express backend
β βββ server.js # Main API server
β βββ scanner.js # Project discovery engine
β βββ mcp.js # MCP Server (stdio)
β βββ agent/ # Multi-provider AI agent
β βββ routes/ # Modular route handlers
β βββ services/ # Business logic services
β β βββ model-discovery.js # SOTA model auto-detection
β β βββ critic.js # Code review service
β β βββ langgraph-supervisor.js # LangGraph task supervisor
β β βββ ... # 10+ more services
β βββ tools/ # Agent tool definitions
βββ dashboard/ # Next.js 16 frontend
β βββ src/
β βββ app/ # App Router pages
β βββ components/ # UI components
β βββ lib/nexus.ts # Centralized API client
βββ nexus-builder/ # Python LangGraph engine (Nexus Prime)
β βββ main.py # FastAPI entry point
β βββ graph_engine.py # LangGraph workflow engine
β βββ architect/ # Architect agent (planning)
β βββ builder/ # Builder agent (implementation)
β βββ auditor/ # Auditor agent (adversarial review)
β βββ supervisor/ # Supervisor agent (orchestration)
β βββ researcher/ # Research agent
βββ cortex/ # Python AI Brain (Pipeline orchestrator)
βββ sandbox/ # Secure code execution sandbox
βββ config/ # Centralized configuration
β βββ model_registry.yaml # LLM model configs
β βββ prompts.yaml # System prompts
βββ db/ # SQLite schema & migrations
βββ .context/ # Project context docs (for AI agents)
βββ Start The Nexus.example.bat # Windows startup template (double-click)
βββ Start The Nexus.example.command # macOS startup template (double-click)
βββ start-local.example.sh # Linux startup template
Quick Start
Prerequisites
- Node.js 18+ / Python 3.10+ / npm / git
- API keys for AI providers (at least one)
Installation
Start by right clicking on your main "Projects" folder and click "Open in Terminal", then copy and paste the following commands one by one. Your main Projects folder should not be nested inside Documents, Downloads, or any other system folders.
git clone https://github.com/VIbeShiftAI/TheNexus.git
cd TheNexus
Windows
install-windows.bat
macOS / Linux
chmod +x install-mac.sh
./install-mac.sh
The installer handles everything: Node.js dependencies, Dashboard build dependencies, Python virtual environment, and configuration file scaffolding.
After installation, configure your API keys. Note, I can't guarantee you can get full functionality without both a Google and Anthropic API key, as those were the 2 I started development with:
Option A β Dashboard Settings (recommended)
Once The Nexus is running, click the βοΈ Settings gear icon in the top-right of the dashboard. The settings panel lets you edit your PROJECT_ROOT and all API keys β changes are saved to both .env files automatically.
Option B β Command Line
setup-env.bat # Windows
./setup-env.sh # macOS / Linux
Running
Windows
Double-click Start The Nexus.bat in Explorer, or run from terminal:
"Start The Nexus.bat"
macOS
Double-click Start The Nexus.command in Finder, or run from terminal:
open "Start The Nexus.command"
Linux
./start-local.sh
Opens 3 terminal windows:
- LangGraph Engine β Python (port 8000)
- Node.js Backend β Express API (port 4000)
- Next.js Dashboard β Frontend (port 3000)
| Endpoint | URL |
|---|---|
| Dashboard | http://localhost:3000 |
| Node.js API | http://localhost:4000 |
| LangGraph API | http://localhost:8000 |
Configuration
Configure via the βοΈ Settings page in the dashboard, or edit .env directly:
# Required
PROJECT_ROOT=/path/to/your/projects
# AI Providers (at least one)
GOOGLE_API_KEY=your-key
ANTHROPIC_API_KEY=your-key
OPENAI_API_KEY=your-key
XAI_API_KEY=your-key
# Frontend
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_CORTEX_URL=http://localhost:8000
SOTA Model Discovery
On startup, the Model Discovery Service (server/services/model-discovery.js) queries the model listing APIs of all 4 providers in parallel, matches models against known families (Gemini Pro, Claude Opus, GPT, Grok), and selects the highest version per family β zero-config model upgrades.
The AI Mesh β Nexus Prime Workflow Engine
Nexus Prime β the CEO β delegates to 4 specialized fleets. Each fleet is a team of AI agents with distinct roles, quality gates, and rejection loops. See it live β
graph TD
Task["π― Project Task\nRequiring Code"] --> Prime
Prime{"β NEXUS PRIME\nSupervisor β The CEO & Router"}
Prime -->|"1. Research"| RF["π RESEARCH FLEET\nPhase 0 β Gemini Mesh"]
Prime -->|"2. Planning"| AF["π ARCHITECT FLEET\nPhase 1 β Gemini Mesh"]
Prime -->|"3. Build"| BF["π¨ BUILDER FLEET\nPhase 2 β Implementation"]
Prime -->|"4. Audit"| AuF["π‘οΈ AUDITOR FLEET\nPhase 3 β Adversarial Mesh"]
RF --> D1["π DOSSIER.md"]
AF --> D2["π BLUEPRINT"]
BF --> D3["π SOURCE ARTIFACTS"]
AuF --> D4["π AUDIT REPORT"]
D4 -->|"β APPROVED"| Deploy["π DEPLOY"]
D4 -->|"β REJECTED"| Prime
style Prime fill:#1a1a2e,stroke:#fbbf24,stroke-width:3px,color:#fbbf24
style Deploy fill:#14532d,stroke:#22c55e,stroke-width:2px,color:#22c55e
style RF fill:#0f172a,stroke:#3b82f6,stroke-width:2px,color:#93c5fd
style AF fill:#0f172a,stroke:#8b5cf6,stroke-width:2px,color:#c4b5fd
style BF fill:#0f172a,stroke:#f59e0b,stroke-width:2px,color:#fcd34d
style AuF fill:#0f172a,stroke:#f43f5e,stroke-width:2px,color:#fda4af
Fleet Details
| Phase | Fleet | Agents | Output |
|---|---|---|---|
| 0 | Research (Gemini Mesh) | Scoper β Professor β Executor β Synthesizer | DOSSIER.md |
| 1 | Architect (Gemini Mesh) | Cartographer β Drafter β Grounder | BLUEPRINT (SPEC + MANIFEST + DDB) |
| 2 | Builder (Implementation) | βLoader β Scout β Builder β βSyntax Check | Source artifacts + DIFF.patch |
| 3 | Auditor (Adversarial) | βBlast Calc β Sentinel β Interrogator | Audit Report (Pass/Fail + Security Score) |
Each fleet has internal quality gates β the Council Review uses a "Society of Minds" pattern where Critic, Safety, and Efficiency voters score plans. Auditor rejections cycle back to Nexus Prime for retry with critique.
Task Manager
graph LR
Idea["π‘ Idea"] -->|"Gemini Deep Research"| Researching["π¬ Researching"]
Researching -->|"Background Polling\n4hr max"| Researched["π Researched"]
Researched -->|"π€ Approve"| Planning["π Planning"]
Researched -.->|"π€ Reject"| Idea
Planning -->|"Architect Agent"| Planned["β
Planned"]
Planned -->|"π€ Approve"| Implementing["π¨ Implementing"]
Planned -.->|"π€ Reject"| Idea
Implementing -->|"Builder Agent\nwith Tools"| Testing["π§ͺ Testing"]
Testing -->|"π€ Approve"| Complete["π Complete"]
Testing -.->|"π€ Reject"| Planned
Testing -.->|"π€ Cancel"| Cancelled["ποΈ Cancelled"]
style Idea fill:#334155,stroke:#94a3b8,color:#e2e8f0
style Complete fill:#14532d,stroke:#22c55e,color:#22c55e
style Cancelled fill:#450a0a,stroke:#ef4444,color:#ef4444
Each stage has human-in-the-loop gates. Research runs asynchronously with automatic resume on server restart.
Multi-Level Workflow System
graph TD
subgraph Dashboard ["Dashboard Level"]
Init["π Dashboard Initiative\nSecurity Sweep, Dependency Audit, etc."]
end
subgraph Projects ["Project Level"]
PA["Project A"]
PB["Project B"]
PC["Project C"]
end
subgraph Features ["Feature Level"]
FA1["Task 1\nResearch β Plan β Build"]
FA2["Task 2\nResearch β Plan β Build"]
FB1["Task 1\nResearch β Plan β Build"]
end
Init --> PA
Init --> PB
Init --> PC
PA --> FA1
PA --> FA2
PB --> FB1
style Init fill:#422006,stroke:#f59e0b,stroke-width:2px,color:#fbbf24
style PA fill:#1e1b4b,stroke:#8b5cf6,color:#c4b5fd
style PB fill:#1e1b4b,stroke:#8b5cf6,color:#c4b5fd
style PC fill:#1e1b4b,stroke:#8b5cf6,color:#c4b5fd
Three workflow levels cascade: Dashboard Initiatives (cross-project) β Project Workflows (multi-stage templates) β Feature Tasks (individual implementation). See .context/dashboard-workflow-map.md and .context/project-workflow-map.md for detailed sequence diagrams.
Agent Tools
| Tool | Description |
|---|---|
read_file | Read file contents with offset/range support |
write_file | Create or overwrite file (with Critic review) |
patch_file | Replace specific text in file |
append_file | Append content to end of file |
apply_diff | Apply unified diff for targeted edits |
edit_lines | Edit specific lines by line number |
list_directory | List directory contents |
run_command | Execute shell command in project directory |
check_ports | List active listening ports |
kill_process | Terminate a process by PID or port |
checkpoint_memory | Save checkpoint context for long-running tasks |
The Codex
The Codex (/codex) is the documentation hub with interactive visualizations:
| Section | Description |
|---|---|
| End-to-End Data Flow | SVG diagram of the full 8-node pipeline |
| Vibecoding Workflow | Interactive diagram of all 4 fleets with sub-agents |
| Initiative Hierarchy | Dashboard β Projects β Tasks cascade |
| Interface Overview | Annotated screenshots of Dashboard and Project views |
| Agent Registry | Live browsable registry of all agents and fleets |
Dashboard Components
| Component | Description |
|---|---|
ai-terminal.tsx | Multi-provider AI chat interface |
task-manager.tsx | Task management with status pipeline |
task-detail-modal.tsx | Full task workflow UI |
agent-manager.tsx | Configure AI agents |
resource-monitor.tsx | System monitor (CPU/memory/ports) |
activity-feed.tsx | Recent commits across projects |
dashboard-initiatives.tsx | Cross-project initiative management |
project-card.tsx | Project tile with git status |
project-context-manager.tsx | Project context document editor |
project-workflows.tsx | Project-level workflow management |
Development
Adding Agent Tools
- Create tool definition in
server/tools/with Zod schema - Export from
server/tools/index.js - Tools are automatically available to agents and MCP server
Adding AI Model Families
Add a pattern to MODEL_FAMILIES in server/services/model-discovery.js β the service auto-detects the latest version at next startup.
Further Documentation
Detailed architectural docs live in:
.context/β API reference, workflow maps, pipeline architecture, node reference, tech stackdocs/β System architecture, data flow diagrams- The Codex β Interactive visualizations at
/codexin the dashboard
Built With
The Nexus stands on the shoulders of outstanding open-source projects:
AI Engine (Python)
- LangGraph β Multi-agent workflow orchestration powering Nexus Prime and the 4 fleet system
- LangChain β Foundation for AI provider integrations and tool-calling agents
- FastAPI β High-performance async Python API serving the LangGraph engine
Backend (Node.js)
- Express β REST API backbone (105+ endpoints)
- Better-SQLite3 β Synchronous SQLite driver for persistence
- Socket.IO β Real-time WebSocket streaming for Glass Box Broadcasting
- Zod β Schema validation for agent tool definitions
- simple-git β Git integration for project discovery and commit tracking
- Helmet β HTTP security headers
- @modelcontextprotocol/sdk β MCP server integration
Frontend (Next.js)
- Next.js β React framework powering the dashboard (App Router)
- React β UI component library
- Tailwind CSS β Utility-first styling
- Framer Motion β Animations and transitions
- Lucide React β Icon system
- React Flow (
@xyflow/react) β Interactive node-based visualizations in The Codex - Monaco Editor β Code editing component
- Recharts β Dashboard charts and system monitoring graphs
- react-markdown β Markdown rendering with GFM support
AI Providers
- Google Gemini Β· Anthropic Claude Β· OpenAI Β· xAI Grok
License
This project is licensed under the MIT License.
