Skip to content

๐Ÿง  DeepThink AIOS

Fully Local Multi-Agent AI Operating System, Semiconductor EDA Studio & Autonomous Research Fleet

An orchestrated fleet of specialized SLMs/LLMs running on consumer hardware โ€” zero cloud dependencies.

Python 3.10+ React 18 Vite 8 License AGPL 3.0 Architecture Multi-Agent Semiconductor 2nm Benchmarks 11 Suites Security Hardened Tests Passing


DeepThink AIOS is an enterprise-grade, fully local multi-agent AI Operating System that routes user queries across specialized neural pipelines for software engineering, theoretical mathematical reasoning, machine learning forecasting tournaments, 2-volume university textbook authoring, 3D physical semiconductor layout synthesis (from 180nm planar to 2nm GAAFET), and hardware-accelerated benchmarking โ€” all running locally with dynamic hardware scaling from Intel iGPUs to NVIDIA H100s.


๐Ÿ’ป System Requirements

Specification Minimum (Lightweight LLMs) Recommended (Full Swarm Fleet)
System RAM 8 GB RAM (using 1.5Bโ€“3B quants) 16 GB โ€“ 32 GB RAM (for 7Bโ€“9B quants)
GPU VRAM Integrated iGPU / 2โ€“4 GB VRAM 8 GB โ€“ 16 GB+ VRAM (Vulkan / CUDA / Metal)
Storage 10 GB free disk space 30 GB SSD space for full local GGUF fleet
OS Linux (Ubuntu/Debian), macOS (Apple Silicon), Windows 10/11 Linux / Kaggle Cloud VM / macOS

โœจ Key Features & Specialized Pipelines

  • ๐ŸŽจ Human-Centered Modernized UI/UX โ€” Production-grade glassmorphic interface engineered with Lucide SVG icons across all navigation and modal controls, a 30+ Design Token CSS architecture, a unified accessible <Modal> primitive, code blocks with syntax highlighting (vscDarkPlus) & line numbers, an interactive empty-state with 1-click starter prompt cards, dynamic "Jump to Section" heading navigation, and responsive mobile breakpoints (768px/900px).
  • ๐ŸŽ“ Master 2-Volume Study Engine (๐ŸŽ“ Study) โ€” Pedagogical textbook synthesis powered by DeepSeek-R1. Authors 15โ€“20 page master reference books with centered display KaTeX formulas ($$ ... $$), embedded Mermaid architectural flowcharts, pedagogical alert callouts (> [!TIP], > [!IMPORTANT]), a 1-Page High-Yield Formula Cheat-Sheet, multi-dimensional comparison tables, a 10-Problem Solved Question Bank, and a Standardized University Mock Exam. Supports direct PDF/Slide ingestion.
  • ๐Ÿ”ฎ Maximum Power Prediction Engine (๐Ÿ”ฎ Predict) โ€” High-precision time-series forecasting across Financial Markets, Climate/Weather, Energy & Battery State-of-Health (SOH) degradation over 500 charge-discharge cycles, and Cloud Telemetry. Features a 14-Signal Alpha Feature Space, an 8-Algorithm Tournament with Bayesian Softmax Inverse-Loss Stacking ($\beta = 3.5$), and Conformal Prediction Probabilistic Uncertainty Bands ($80%$ & $95%$ corridors in Plotly).
  • ๐Ÿ”ฌ Scientific Semiconductor EDA & 3D Physical Die Visualizer โ€” Synthesizes synthesizable Verilog/SystemVerilog HDL and SPICE netlists across all process nodes (180nm Planar to 2nm RibbonFET / GAA Nanosheets with Backside Power Delivery). Supports 6 full silicon architectures with procedural WebGL/Three.js silicon die rendering and a live clock stepping toolbar.
  • โšก Zero-Hallucination Category-Aware Mathematical Reasoning (โšก Reason) โ€” Solves complex theoretical derivations across General Relativity, Real/Complex Analysis, Quantum Mechanics, and General Mathematics. Features dynamic category prompt routing, publication-grade centered KaTeX display formulas ($$ ... $$), automatic line-break sanitization, and verified closed-form fallbacks (exact 9 Schwarzschild Christoffel symbols, Kretschmann scalar $K = \frac{48G^2M^2}{c^4 r^6}$, and the Bose-Einstein Riemann Zeta integral $\int_0^\infty \frac{x^3}{e^x - 1} dx = \frac{\pi^4}{15}$).
  • ๐Ÿ’ป Production-Grade Autonomous Coding Pipeline โ€” Multi-phase software engineering with Big-O complexity optimization ($O(N)$ / $O(N \log N)$), automated AST Static Analysis Linting (SAST), strict type annotations, Google-style docstrings, C++17 shared mutex concurrency (std::shared_mutex, lock-free SPSC queues), and multi-language execution sandboxes.
  • ๐Ÿ›ก๏ธ Enterprise Security & Air-Gap Hardening โ€” Full sandbox protection with SSRF prevention (blocking private, loopback, and link-local CIDR ranges), Path Traversal guards in git workspace commits, Supply-Chain Auto-pip Allowlisting (restricted to ~35 vetted scientific packages), TarSlip/ZipSlip guards in archive extraction, and shell=False process safety.
  • ๐Ÿ“Š Benchmark Studio & Telemetry Dashboard โ€” Parallel evaluation across 11 standard suites (HumanEval, MBPP, GSM8K, MATH, GPQA, AIME, MuSR, MMLU-Pro, SWE-bench Lite, SWE-bench Pro, SearchQA) with real-time scoring vs GPT-4o and Claude 3.5 Sonnet baselines, live throughput ($\text{tok/s}$), and JSON report exports.
  • ๐ŸŒ 100% Keyless Multi-Tier Web Search (๐ŸŒ Search & ๐Ÿ”ฌ Extreme) โ€” Scrapes live financial quotes, real-time weather, and multi-source academic publications with deep synthesis without API keys.
  • โšก Elastic VRAM Management (EVM) & DMA โ€” Zero-cost dynamic model hot-swapping between System RAM and GPU VRAM with thread-safe progress locks and bounded SQLite vector memory recall (LIMIT 500).

๐ŸŒŸ Flagship Golden Prompts Showcase

Pipeline Example Prompt to Try in the UI Key Output Artifacts
๐Ÿ”ฌ Chip Design Design a 2nm GAAFET TPU with an 8x8 Systolic Array of Bfloat16 PEs, Backside Power Delivery (BSPDN), synthesizable Verilog, and 3D silicon layout. Synthesizable RTL, self-checking testbench, SPICE deck, and interactive 3D WebGL silicon die with live clock stepping
๐Ÿ”ฎ Prediction Predict lithium-ion battery State-of-Health (SOH) degradation over 500 charge-discharge cycles under high ambient temperature stress. Multi-feature polynomial & Bayesian stacking forecast, SOH capacity decay curve, and Plotly 80%/95% confidence corridor
โšก Reasoning (Math) Compute the exact definite integral of x^3 / (e^x - 1) from x=0 to infinity, showing the Riemann zeta function connection and full series expansion. Publication-grade KaTeX derivation ($$ ... $$) demonstrating $\zeta(4) = \frac{\pi^4}{90}$ and final value $\frac{\pi^4}{15}$
โšก Reasoning (GR) Derive the Schwarzschild metric from Einstein's field equations R_uv = 0, computing all Christoffel symbols, Newtonian limit, and Kretschmann invariant. Full step-by-step tensor derivation, exact 9 non-zero Christoffel symbols, and Kretschmann scalar invariant proof
๐Ÿ’ป Coding Implement a lock-free SPSC ring buffer queue in Rust with atomic operations, memory ordering, doc tests, and cache-line padding. Production-grade Rust module, AST verified, memory-order annotated, passing unit test harness
๐ŸŽ“ Study Teach me Transformer Attention Mechanism (Self-Attention, Multi-Head, KV-Cache) from first principles as an exhaustive graduate textbook. 2-Volume Master Treatise with Mermaid architecture diagram, display math, 1-page formula cheat-sheet, 10 solved problems & mock exam

๐Ÿค– System Model Fleet

System Role Model Name HuggingFace Repo ID GGUF Filename & Projector Quants
Master Router Phi-3.5-Mini / Llama-3.2 bartowski/Phi-3.5-mini-instruct-GGUF Phi-3.5-mini-instruct-Q6_K.gguf Q6_K / Q4_K
Agentic Coder Qwen2.5-Coder / Ornith deepreinforce-ai/Ornith-1.0-9B-GGUF ornith-1.0-9b-Q6_K.gguf Q6_K / Q4_K
Reasoning Engine DeepSeek-R1 Distill unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF DeepSeek-R1-Distill-Qwen-7B-Q6_K.gguf Q6_K / Q4_K
Syntax Linter VibeThinker 3B prithivMLmods/VibeThinker-3B-GGUF VibeThinker-3B.Q6_K.gguf Q6_K / Q4_K
Vision & OCR Qwen-2.5-VL / Qwen3-VL unsloth/Qwen2.5-VL-7B-Instruct-GGUF Qwen2.5-VL-7B-Instruct-UD-Q6_K_XL.gguf + mmproj-BF16.gguf Q6_K / Q4_K / Q8_0

๐Ÿ”€ Pipeline Architecture

flowchart TD
    %% โ”€โ”€ TOP-LEVEL INGESTION โ”€โ”€
    USER([User Prompt / Image / PDF]) --> MODE_CHECK{"Pipeline Mode Selected?"}
    
    MODE_CHECK -->|๐ŸŽ“ Study| STUDY_PIPE["Study Pipeline: 2-Volume Master Curriculum + Mermaid + 10 Problems + Exam"]
    MODE_CHECK -->|๐Ÿ”ฎ Predict| PREDICT_PIPE["Predict Pipeline: 14-Signal Alpha Features + 8-Model Bayesian Tournament"]
    MODE_CHECK -->|๐Ÿ”ฌ Extreme| EXTREME_PIPE["Extreme WebSearch: Multi-Source Academic Survey"]
    MODE_CHECK -->|๐ŸŒ Search| SEARCH_PIPE["Simple Search: Live Real-Time Web Data"]
    MODE_CHECK -->|๐Ÿ“Š Benchmark| BENCH_PIPE["Benchmark Studio: 11-Suite Parallel Worker Evaluation"]
    MODE_CHECK -->|Auto / Prompt| ROUTER["Fast-Path & Router Intent Classifier"]

    %% โ”€โ”€ Intent Classification Branches โ”€โ”€
    ROUTER --> PATH_CODING["1. CODING (AST Linter + O(N) Complexity + Type Hints)"]
    ROUTER --> PATH_REASONING["2. REASONING (SymPy CAS Grounding & Kretschmann Scalar)"]
    ROUTER --> PATH_CHIP["3. CHIP DESIGN (2nm GAAFET, BSPDN & 3D Live Clock)"]
    ROUTER --> PATH_VISION["4. VISION & OCR"]
    ROUTER --> PATH_SIMPLE["5. DIRECT / CONVERSATIONAL"]

    %% โ”€โ”€ Execution Pathways โ”€โ”€
    STUDY_PIPE --> STUDY_OUT["Master Textbook + 1-Page Cheat Sheet + 10 Solved Problems + Mock Exam"]
    PREDICT_PIPE --> PREDICT_OUT["8-Model Bayesian Stacking + 80%/95% Conformal Fan Chart"]
    BENCH_PIPE --> BENCH_OUT["Real-Time Throughput / Accuracy Telemetry vs Baselines"]
    PATH_CODING --> CODE_SB{"Execution Sandbox"} --> CODE_PASS["Verified Working Polyglot Code"]
    PATH_REASONING --> PAL_SB{"SymPy / Math Sandbox"} --> PAL_PASS["Verified KaTeX Proof ($$ ... $$)"]
    PATH_CHIP --> EDA_SB{"Icarus / Yosys / SPICE"} --> CHIP_OUT["Verilog Module + Interactive 3D Die Visualizer"]
Loading

โšก Quick Start

1. Local System Startup

git clone https://github.com/Arpit104147/DeepThink-AIOS.git
cd DeepThink-AIOS

# Launch servers (Backend on :8000, Web UI on :5173)
./start.sh

Open http://localhost:5173 in your browser.


2. Kaggle / Remote Cloud GPU Setup (Continuous Runner)

Paste and run this complete Python script inside a single Kaggle Notebook cell:

# =========================================================================
# ๐Ÿš€ DEEPTHINK-AIOS: KAGGLE BACKEND + CLOUDFLARE TUNNEL (CONTINUOUS RUNNER)
# =========================================================================

import os, subprocess, time, re, sys

# 1. Clone or Auto-Update Repository
if os.path.exists("/kaggle/working/DeepThink-AIOS"):
    os.chdir("/kaggle/working/DeepThink-AIOS")
    subprocess.run(["git", "pull", "origin", "main"], check=True)
else:
    os.chdir("/kaggle/working")
    subprocess.run(["git", "clone", "https://github.com/Arpit104147/DeepThink-AIOS.git"], check=True)
    os.chdir("/kaggle/working/DeepThink-AIOS")

# 1.5 Install System EDA Chip Design Tools (Icarus Verilog, Yosys, NGSPICE, KLayout)
print("๐Ÿ”ฌ Installing System EDA Chip Design Tools (iverilog, yosys, ngspice, klayout)...", flush=True)
subprocess.run(["apt-get", "update", "-y", "-q"], check=False)
subprocess.run(["apt-get", "install", "-y", "-q", "iverilog", "yosys", "ngspice", "klayout"], check=False)

# 2. Install dependencies & Pre-compile CUDA llama-cpp-python for Kaggle GPU
print("โšก Installing requirements & pre-compiling CUDA llama-cpp-python for Kaggle GPU...", flush=True)
subprocess.run([sys.executable, "-m", "pip", "install", "-r", "requirements.txt", "-q"], check=True)

try:
    import torch
    if torch.cuda.is_available():
        print("๐Ÿ”ฅ Pre-installing CUDA-accelerated llama-cpp-python for Kaggle GPU...", flush=True)
        env = os.environ.copy()
        env["CMAKE_ARGS"] = "-DGGML_CUDA=on"
        env["FORCE_CMAKE"] = "1"
        subprocess.run([
            sys.executable, "-m", "pip", "install",
            "llama-cpp-python", "--force-reinstall", "--no-cache-dir", "-q"
        ], env=env, check=False)
except Exception as e:
    print(f"โš ๏ธ CUDA setup note: {e}")

# 3. Download Cloudflare Tunnel binary
subprocess.run(["wget", "-q", "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64", "-O", "/tmp/cloudflared"], check=True)
subprocess.run(["chmod", "+x", "/tmp/cloudflared"], check=True)

# 4. Launch FastAPI Backend
print("โณ Launching FastAPI Backend on Port 8000...", flush=True)
backend_proc = subprocess.Popen([sys.executable, "-m", "uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "8000"])

# 5. Create Cloudflare Tunnel
print("๐ŸŒ Creating Secure Cloudflare Tunnel...", flush=True)
tunnel_proc = subprocess.Popen(
    ["/tmp/cloudflared", "tunnel", "--url", "http://localhost:8000"],
    stdout=subprocess.PIPE,
    stderr=subprocess.STDOUT,
    text=True
)

time.sleep(4)

# 6. Extract & Print Public URL
public_url = None
for line in tunnel_proc.stdout:
    match = re.search(r"https://[a-zA-Z0-9-]+\.trycloudflare\.com", line)
    if match:
        public_url = match.group(0)
        print("\n" + "="*72, flush=True)
        print("๐ŸŽ‰ YOUR KAGGLE BACKEND PUBLIC URL:", flush=True)
        print(f"๐Ÿ‘‰ {public_url}", flush=True)
        print("="*72, flush=True)
        print("๐Ÿ“Œ COPY the URL above and paste it into your local Laptop Frontend!", flush=True)
        print("="*72 + "\n", flush=True)
        break

# 7. Continuous Heartbeat to keep Kaggle alive overnight
start_time = time.time()
print("โšก Backend is ACTIVE & serving requests continuously...", flush=True)

try:
    while True:
        time.sleep(120)
        elapsed_min = int((time.time() - start_time) // 60)
        print(f"๐Ÿ’“ [HEARTBEAT - {elapsed_min}m elapsed] DeepThink-AIOS Backend Running | URL: {public_url}", flush=True)
except KeyboardInterrupt:
    print("Stopping server...", flush=True)
    backend_proc.terminate()
    tunnel_proc.terminate()

Copy the printed https://xxxx.trycloudflare.com URL, open http://localhost:5173 in your local browser, click Settings (โš™๏ธ), and paste the URL into Server URL.


๐Ÿงช Comprehensive Automated Verification Suites

The system includes automated pre-flight audit suites that test every Python file, frontend build, mathematical post-processor, and router fast-path:

# 1. Run 6-Stage Deep Line-by-Line System Audit
python3 backend/test_deep_line_by_line_audit.py

# 2. Run 7-Subsystem End-to-End Project Audit
python3 backend/test_full_project_audit.py

# 3. Test React 18 / Vite Production Bundle
npm run build --prefix frontend

๐Ÿ’ป Tech Stack

  • Backend: FastAPI, Uvicorn, Python 3.10+, PyTorch, Vulkan SDK, llama-cpp-python, ChromaDB, PyPDF, Scikit-Learn, Icarus Verilog, Yosys, NGSPICE, SymPy, NumPy, Pandas
  • Frontend: React 18, Vite 8, Lucide React (lucide-react), React Syntax Highlighter (react-syntax-highlighter), KaTeX Typography, Plotly.js, Three.js / WebGL, CSS Design Tokens
  • Hardware Acceleration: Vulkan Compute (NVIDIA, AMD, Intel iGPU/dGPU), NVIDIA CUDA, Apple Metal MPS, Multi-Core CPU Fallback
  • Security: Safe SAST Execution Sandbox, SSRF Defense, Path Traversal Defense, Supply-Chain Package Allowlisting, TarSlip/ZipSlip Guards

๐Ÿ“„ License

GNU Affero General Public License v3.0 (AGPL-3.0) โ€” see LICENSE for details.

This project is licensed under the GNU AGPLv3. Any modification, redistribution, or remote network interaction (e.g., deploying or running DeepThink AIOS over a computer network, demoing as a service, or participating in hackathons/competitions) strictly requires providing access to the complete Corresponding Source code of the modified version to all users under the exact same AGPL-3.0 terms, with all original copyright and attribution notices preserved.

About

DeepThink-AIOS is a fully local, multi-agent System with dual-sandbox code/logic verification, ChromaDB RAG memory, and dynamic VRAM multiplexing .

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages