Skip to main content

our project is voice controled ai which does every tasks that to in windows and also works with lunix or mac os

About the project

🌟 Overview
J.A.R.V.I.S. is a voice-first, multi-agent AI engineering system designed for open-source maintainers, developers, and incident-response teams. Instead of a generic text chatbot or downloading multiple heavyweight LLMs, J.A.R.V.I.S. uses one single Gemma 4 model to dynamically instantiate a collaborative agent swarm that communicates over a Shared Global Project Blackboard, accepts spoken voice commands (in English, Hinglish, and Bengaluru Kannada), executes Voice OS actions (like playing YouTube songs), scaffolds multi-file codebases, and deterministically validates code against an AST symbol index to guarantee zero hallucinations.

🚀 Key Architectural Innovations

  1. 🧠 Single Gemma 4 Model Dynamic Swarm (Solving G1)
    Zero Heavy Multi-Model Overhead: Rather than downloading 4 separate models, a single Gemma 4 instance (e.g. gemma-4-12B-it or gemma-4-26B-A4B-it via Google AI Studio / Ollama) dynamically powers all agent roles via structured system prompts and <|think|> thinking tokens.
    Hierarchical Co-Leader & Chief Reviewer: The Co-Leader supervisor coordinates the swarm, reviews all sub-agent deliverables, and acts as the gatekeeper before final sign-off.
    Recursive Sub-Agent Spawning: When tasked with complex projects, parent agents can dynamically spawn specialized child sub-agents (e.g., SQLite Schema Sub-Agent, REST API Sub-Agent, Pytest QA Sub-Agent) on demand.
    Shared Global Project Blackboard: All agents read from and write to a centralized state bus containing the project blueprint, file registry, AST symbol table, and live team chat bus—ensuring every agent has the full picture of the project.
  2. 🎙️ Voice-First Interaction via Sarvam AI (Solving G2)
    Sarvam Saaras v4 STT (saaras:v4): Captures microphone audio with codemix mode and technical keyterm prompting (pytest, idempotency, GST, webhook, Gemma, YouTube), accurately transcribing English, Hinglish, and Bengaluru Kannada even in noisy hackathon venues.
    Sarvam Bulbul v4 Flash TTS (bulbul:v4-flash): Streams low-latency, natural 24 kHz speech feedback using the shubh_enhi_ads persona.
    Universal Fallback: Built-in browser Web Speech API ensures judges and teammates can test the voice interface on any device without configuring API keys.
  3. 🛡️ Four-Layer Zero-Hallucination Critic Guard
    Deterministic AST Symbol Indexing: Scans all repository modules, classes, functions, and line ranges into an exact AST symbol table.
    Execute-Then-Answer Verification: Before J.A.R.V.I.S. reports task completion, the Critic agent audits the proposed patch against the AST index and runs unit tests.
    Automatic Self-Correction Loop: If a patch references an unverified symbol (e.g., auto_magic_refund_sdk()), the Critic intercepts the call, blocks execution, and feeds the stderr back to the Builder agent to self-correct automatically.
  4. 🎵 Voice OS Actions & YouTube Dock
    Spoken instructions like “Jarvis, open YouTube and play Kesariya” trigger the Voice OS engine, launching a sleek embedded YouTube player dock alongside real-time voice feedback.
  5. 🪐 Futuristic 3D Holographic Swarm Core (Three.js)
    Interactive 3D holographic viewport showing the central J.A.R.V.I.S. core with dynamic orbiting nodes that appear in real time whenever child sub-agents are spawned.
    Animated 3D laser energy beams connecting collaborating agents during inter-agent message exchanges.
    Full mouse/touch drag rotation, zoom, auto-spin toggle, and camera reset.
    🏛️ System Architecture

📂 Project Structure
├── index.html # Self-contained 3D Holographic Web Application (Three.js + Tailwind)
├── jarvis_command_center.html # Primary Command Center interface
├── requirements.txt # Python backend dependencies
├── README.md # Project documentation & architecture
├── .gitignore # Clean git tracking rules
│
├── backend/
│ ├── main.py # FastAPI server with endpoints for STT, TTS, Swarm & OS Actions
│ ├── agents.py # SingleGemma4Engine, Shared Blackboard & Dynamic Recursive Swarm
│ ├── os_actions.py # Voice OS Engine (YouTube playback, project scaffolding)
│ ├── ast_grounding.py # Deterministic Python AST parser & zero-hallucination verification
│ ├── sarvam_voice.py # Sarvam Saaras v4 STT & Bulbul v4 Flash TTS pipeline
│ │
│ └── sample_repo/ # Indexed microservice codebase for Hackathon problems 1 & 2
│ ├── payment_service.py # Fintech microservice (GST calculation & webhook idempotency)
│ ├── auth_middleware.py # Authentication service (JWT expiration timestamp vulnerability)
│ └── issue_router.py # Hacktoberfest auto-triage & security router
⚡ Quickstart Guide
Option 1: Instant Standalone 3D Frontend (Zero Setup)
Simply open index.html (or jarvis_command_center.html) in any modern web browser!

Works 100% offline or on smartphones/laptops via built-in Web Speech API and mock simulation.
Click API Keys in the top navigation to connect your live Google Gemini API Key and Sarvam AI Key directly from the browser.
⚡ Hardware-Tuned Profile: NVIDIA RTX 5060 (8GB VRAM) + 24GB RAM
J.A.R.V.I.S. is customized and pre-tuned for NVIDIA GeForce RTX 5060 (8GB GDDR7 VRAM) + 24GB System RAM:

Resource Allocation (gemma-4-12B-it Q4_K_M) Safety Margin / Headroom
RTX 5060 VRAM (8.0 GB) 7.5 GB (6.4 GB Model Weights + 1.1 GB 8K KV Cache) ~500 MB Headroom (Zero-OOM Guarantee)
GPU Offloaded Layers 36 of 40 Layers (92.5% computed directly on GPU) 4 Fallback Layers buffered in DDR5 RAM
System Memory (24 GB) ~2.8 GB (CPU offload layers + OS background) >20 GB Free RAM
Generation Speed 45 - 55 tokens/second Hardware-accelerated via Blackwell Tensor Cores

One-Click Windows Launch for RTX 5060

run_jarvis_rtx5060.bat
Option 2: Full Python Backend + Live Voice Pipeline

  1. Clone & Install Dependencies
    git clone https://github.com/JeevanM26/project-hack.git
    cd project-hack
    python -m venv .venv

On Windows:

.venv\Scripts\activate

On Linux/macOS:

source .venv/bin/activate

pip install -r requirements.txt
2. Configure Environment Variables

Google AI Studio API Key (powers Gemma 4)

export GEMINI_API_KEY=“your_google_ai_studio_key”

Sarvam AI Key (powers Saaras STT & Bulbul TTS)

export SARVAM_API_KEY=“your_sarvam_subscription_key”

Choose your single Gemma 4 model

export JARVIS_GEMMA_MODEL=“gemma-4-12b-it” # Options: gemma-4-12b-it, gemma-4-26b-a4b-it, gemma-4-e4b-it
3. Run the FastAPI Server
cd backend
uvicorn main:app –reload –port 8000
Open http://localhost:8000/docs to test interactive Swagger API endpoints.

  1. Expose Publicly for Judges (Cloudflare Tunnel)
    npx cloudflared tunnel –url http://localhost:8000
    This generates an instant public https://*.trycloudflare.com URL that routes live voice commands from any phone or laptop straight to your agent swarm!

🏆 Hacktoberfest 2026 Live Demo Script (3-Minute Winning Pitch)
Step 1: Spoken Intent & Voice OS Action (G2):
Speak into the mic: “Jarvis, open YouTube and play Kesariya”.
Watch the floating YouTube Dock appear instantly and start streaming music while J.A.R.V.I.S. acknowledges with Sarvam Bulbul voice.
Step 2: Complex Project Scaffolding & Dynamic Swarm (G1):
Speak: “Jarvis, build a task manager project with SQLite, REST API, and pytest test suite”.
Watch the 3D Holographic Core rotate as 3 new specialist sub-agents (SQLite Schema, REST API, Pytest QA) dynamically spawn into 3D orbit, exchange messages over the Shared Blackboard, and output clean code.
Step 3: Zero-Hallucination Critic Demonstration (G1):
Toggle “Demo: Test Critic Blocking a Hallucination” in the HUD and run a mission on payment_service.py.
Show the judges how the Critic agent catches an ungrounded function call (auto_magic_refund_sdk()), displays the AST validation failure, and forces the Builder to self-correct before final approval!
👥 Team
Jeevan M (@JeevanM26)
Built for Hacktoberfest Hack Day Bengaluru 2026 at Startup Park, Bengaluru.
Powered by Google Gemma 4 & Sarvam AI.

Built with

huggingfacegemini

AI tools

Coded withAntigravityGemini 4 ArgonGemini 3.8 FlashGemma 4 26B A4BOlder Gemini

Prize Categories Entered

  • Deepmind Google

    Best Use of Gemma 4

    Submitted
  • DigitalOcean

    Best Open-Source AI Project

    Submitted
  • Sarvam AI

    Best Use Of Sarvam

    Submitted