JARVIS (LlamaOrchestrator) is an autonomous, domain-agnostic multi-agent cognitive architecture prototype built for the Meta Global AI Developer Hackathon. Designed to explore host-level digital agency beyond passive chat interfaces, JARVIS operates directly on the developer's machine to translate high-level natural language directives into structured, verified deliverables.
-
6-Stage Autonomous Lifecycle: Intent Analysis
$\rightarrow$ Knowledge Harvesting$\rightarrow$ Dynamic DAG Synthesis$\rightarrow$ Worker Execution$\rightarrow$ Automated Pytest Verification$\rightarrow$ Evaluator Gatekeeper Certification. -
Topological Dependency Resolution: Task ordering resolved via Kahn's algorithm
$O(V+E)$ , ensuring prerequisite modules strictly precede downstream dependent tasks. - 80 Enterprise MCP Tools: Standardized Model Context Protocol (MCP) tool suite covering browser automation, web crawling, desktop GUI control, binary inspection, telephony dispatch, and persistent storage.
- Closed-Loop Self-Healing: Dynamic worker engines intercept non-zero return codes and stderr tracebacks, autonomously diagnosing failures and re-running test suites until verification passes.
-
Dual Execution Modes:
- Live LLM Inference Mode: Connects to Meta Llama models (Llama 3.3 70B, Llama 3.1 8B, Llama 3.2 Vision) via local Ollama runtimes for total data privacy, or through cloud endpoints (Groq, Together, OpenRouter) for high-throughput scaling.
- Deterministic Offline Simulation Mode: When API keys are absent or during CI test runs, the system falls back to high-fidelity, deterministic template generators and sandboxed testbeds. This guarantees hackathon judges can clone, inspect, and verify the entire 209-test suite with zero API keys and zero cost.
To evaluate the flexibility of the autonomous DAG compiler across different computational boundaries, JARVIS includes modules for four distinct domains:
| Domain | What the Pipeline Executes | Verification & Output |
|---|---|---|
| 1. Software Engineering | Decomposes requirements into full-stack codebases (e.g., Next.js 14 App Router + Tailwind + SQLite), generates unit tests, and launches local web runners. | Evaluator Gatekeeper certifies syntax, runs automated pytest suites, and binds to http://localhost:3000. |
| 2. Quantitative Finance | Simulates cross-exchange orderbook depth across spot markets, calculates triangular arbitrage spreads, and checks risk limits. | Sub-second algorithmic execution certified with latency and spread logging. |
| 3. Cybersecurity & Forensics (REA) | Reverse Engineer Anything (REA) engine parses binary file structures, analyzes PE/ELF headers, checks binary hardening (ASLR, DEP/NX, Stack Canaries), and scans for leaked credentials. | Produces structured security audit reports and evidence bundles. |
| 4. B2B Outreach & Communications | Synthesizes grounded B2B leads from Google Maps datasets across 30 US metros, drafts personalized short-form emails, and stages browser tabs for review. | Outputs clean CSV/JSON registries with anti-spam rotation staging. |
flowchart TD
User["Developer / Directive CLI (python jarvis_cli.py)"] --> CentralBrain["Stage 1: Central Brain Router<br/>(Intent Classification, Clarification Gate)"]
CentralBrain --> Knowledge["Stage 2: Knowledge Harvester<br/>(Grounded Domain Research & Synthesis)"]
Knowledge --> DAGCompiler["Stage 3: DAG Swarm Compiler<br/>(Kahn's Topological Sort O(V+E))"]
DAGCompiler --> WorkerSwarm["Stage 4: Dynamic ReAct Worker Swarm<br/>(Sub-Agents with Scoped MCP Tool Access)"]
WorkerSwarm --> PytestQA["Stage 5: Automated Pytest QA Testbed<br/>(Closed-Loop Stderr Diagnosis & Patching)"]
PytestQA --> Gatekeeper["Stage 6: Evaluator Gatekeeper<br/>(Audit Report & Deliverable Certification)"]
Gatekeeper --> Artifacts["Workspace Deliverables<br/>(Next.js Apps, Datasets, PRDs, Runbooks)"]
Task DAGs in core/orchestrator.py and core/founder_engine.py are resolved using Kahn's topological sort algorithm:
- Calculates in-degrees for all task nodes based on declared prerequisite dependencies.
- Enqueues independent tasks (
$in_degree = 0$ ) and iteratively resolves downstream dependents. - Guarantees that data engines, schema definitions, and storage managers are compiled before dependent business logic, test suites, or documentation generators execute.
All tools are encapsulated within core/mcp_server.py following the Model Context Protocol standard:
| Category | Available Tools in core/mcp_server.py |
Description |
|---|---|---|
| Web Crawling | tool_crawl_url, tool_crawl_batch, tool_crawl_auth_walled, tool_crawl_doctor |
Asynchronous web scraping, structured markdown extraction, and authenticated content retrieval. |
| Browser Automation | tool_browser_click, tool_browser_navigate, tool_browser_screenshot, tool_browser_type, tool_browser_scroll, tool_browser_swipe, tool_browser_open_tab, tool_browser_interact, tool_browser_use_execute |
Playwright-driven browser interaction, automated form fills, and headless/visible session management. |
| Desktop GUI Operator | tool_desktop_click, tool_desktop_screenshot, tool_desktop_type, tool_desktop_hotkey, tool_desktop_focus_app, tool_desktop_list_apps, tool_desktop_execute |
Hardware mouse and keyboard actuation (Bézier cursor glides, native keystrokes, cross-platform fallbacks). |
| Reverse Engineering (REA) | tool_rea_inspect_binary, tool_rea_inspect_pe_details, tool_rea_inspect_elf_details, tool_rea_scan_secrets, tool_rea_unpack_electron, tool_rea_audit_security, tool_rea_extract_strings, tool_rea_harvest_routes, tool_rea_inspect_dotnet_assembly, tool_rea_inspect_go_binary, tool_rea_inspect_rust_binary, tool_rea_inspect_sqlite_database, tool_rea_inspect_wasm_artifact, tool_rea_inspect_android_package, tool_rea_inspect_python_pyc, tool_rea_inspect_network_capture, tool_rea_inspect_ipc, tool_rea_analyze_traffic, tool_rea_clone_client, tool_rea_synthesize_agent_env, tool_rea_get_evidence_bundle |
Binary disassembly, header inspection, ASAR archive unpacking, security audits, and string extraction. |
| Outreach & Lead Data | tool_reach_harvest_leads, tool_autonomous_lead_hunt, tool_verify_email_syntax, tool_verify_lead_data, tool_reach_universal_search, tool_reach_read_target, tool_reach_doctor, tool_send_mock_booking |
Google Maps lead harvesting, DNS/MX resolution, structured CSV synthesis, and multi-inbox rotation. |
| Voice & Telephony | tool_voice_call_campaign, tool_voice_call_dispatch, tool_voice_call_doctor, tool_voice_call_list_campaigns, tool_voice_duplex_control |
Outbound telephony orchestration, 5-dial cadence management, and voice duplex recording controls. |
| Terminal & Git | tool_terminal_execute, tool_terminal_open_window, tool_terminal_doctor, tool_run_command, tool_git_status, tool_git_diff, tool_git_log, tool_git_commit_and_push |
Command execution, desktop terminal spawning, and Git version control automation. |
| Filesystem & Sandbox | tool_file_read, tool_file_write, tool_file_list, tool_import_external_path, tool_read_external_path, tool_export_to_host, tool_http_request, tool_web_search, tool_synthesize_tool |
Scoped workspace file I/O, deliverable export to host Downloads, and dynamic tool synthesis. |
| Scheduler & Health | tool_schedule_add, tool_schedule_delete, tool_schedule_list, tool_schedule_toggle, tool_system_health_check, tool_executive_briefing, tool_ambient_vision_status |
24/7 background cron job registration, system telemetry inspection, and health auditing. |
- Localhost Binding: The FastAPI kernel defaults to
HOST=127.0.0.1andPORT=8000. It will not bind to0.0.0.0unless explicitly configured via environment variables. - CORS Whitelist: Cross-Origin Resource Sharing is restricted by default to local origins (
localhost:3000,127.0.0.1:3000,localhost:8000,127.0.0.1:8000). - Local Development Security Model: The API server is architected as an internal developer harness and local automation kernel. In accordance with local developer use, it binds to loopback (
127.0.0.1) without external token auth. Do not expose this local development port to untrusted public networks without an authenticating reverse proxy. - Sandbox Boundaries: File operations and binary unpacking are scoped to session workspace folders (
workspaces/<session_id>/), with path containment checks preventing unintended modifications to host directories. - No Tracked Runtime Leaks: Runtime artifacts (
history.json,workflows.json, ephemeral session logs) are explicitly listed in.gitignoreto maintain clean repository checkouts.
All core modules are designed to run cross-platform:
- Windows: Native support for Windows Terminal (
wt.exe), PowerShell, and Windows SAPI audio synthesis. - Linux / macOS: Windows-specific APIs (
ctypes.windll,winmm.dll) are conditionally guarded with platform checks (sys.platform == "win32"), enabling the entire test suite and server to run cleanly on Linux and containerized environments.
- Python 3.10, 3.11, or 3.12 (Python 3.14 compatible)
- Git
git clone https://github.com/ansh1325/ORCHESTRATOR.git
cd ORCHESTRATOR
# Linux / macOS
python3 -m venv venv
source venv/bin/activate
# Windows (PowerShell)
python -m venv venv
.\venv\Scripts\Activate.ps1pip install -r requirements.txtThe entire 209-test suite runs hermetically in offline simulation mode without requiring API keys:
pytest tests/ -vExpected output:
======================= 209 passed, 0 failed =======================
python jarvis_cli.pyType directives directly into the prompt:
JARVIS > show leads
JARVIS > do cybersecurity analysis of our project
JARVIS > execute it
python main.py- Interactive Swagger UI:
http://localhost:8000/docs - MCP Tool Catalog:
http://localhost:8000/api/tools/list - Swarm Telemetry:
http://localhost:8000/api/agents/telemetry
ORCHESTRATOR/
├── core/
│ ├── orchestrator.py # Central Brain, Intent Analysis & Kahn's DAG Compiler
│ ├── worker.py # Dynamic ReAct Worker Engine & Closed-Loop Self-Healing
│ ├── mcp_server.py # 80 Standardized MCP Tool Functions & Sandboxing
│ ├── nextjs_generator.py # Next.js 14 App Router Full-Stack Code Generator
│ ├── google_maps_harvester.py # 500-Lead Discovery & B2B Outreach File Writer
│ ├── founder_engine.py # Unbounded Pod DAG Compiler
│ ├── browser_controller.py # Playwright & Host Browser Session Bridge
│ ├── terminal_engine.py # Terminal Execution & Automated Git Lifecycle
│ ├── rea_engine.py # Reverse Engineering & Binary Forensics
│ ├── voice_duplex.py # Voice Synthesis & Audio Capture Engine
│ ├── scheduler.py # 24/7 Persistent Background Daemon
│ ├── config.py # Meta Llama Model & Runtime Configuration
│ └── models.py # Pydantic Schemas for DAGs, Events, and Tasks
├── tests/ # 208 Automated Pytest Testbeds across all subsystems
├── workspaces/ # Session Workspaces, Datasets, and Deliverables
├── jarvis_cli.py # Interactive Terminal Directive Interface
├── main.py # FastAPI Kernel & MCP REST Service
├── requirements.txt # Verified Python Dependencies (requests, psutil, Pillow, etc.)
└── README.md # System Documentation
This project is licensed under the MIT License. Developed by Ansh Tiwari for the Meta Global AI Developer Hackathon.