Skip to content
HailLucifer666Public

About

Agent_OS

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

1,404 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MYTHOS header Typing SVG

Node Tests Phases Effectors Deploy License


MYTHOS JARVIS HUD

๐Ÿ›ฐ๏ธ The JARVIS HUD โ€” radial neural map, live entity state, voice mesh.


Important

Honest-inert by design. Missing keys, dead providers, failed calls show up as OFFLINE / DEGRADED โ€” never faked. Quota numbers are estimates. Errors surface verbatim. If something doesn't work, you see that it doesn't work.

A living system with an OODA loop, layered memory, tiered autonomy, immune system, and 8990 tests.

๐Ÿงญ Navigate

Architecture ยท OODA Loop ยท Brain ยท Memory ยท Immune System ยท Safety ยท Voice ยท 189 Tools ยท Engagements ยท Deploy ยท Screenshots ยท History ยท Stack ยท Docs


๐ŸŒ Architecture Overview

flowchart TB
    subgraph Cloud["โ˜๏ธ Cloud Providers"]
        direction LR
        NIM["NVIDIA NIM<br/>2 keys ยท rotation"]
        GQ["Groq<br/>70B ยท 1K RPD"]
        MI["Mistral<br/>Large ยท โˆž free"]
        CE["Cerebras<br/>Sub-100ms"]
        OR["OpenRouter<br/>Free models"]
        GOOG["Google<br/>Gemini Flash"]
        ZC["ZCode<br/>GLM-5.2"]
    end

    subgraph MYTHOS["๐Ÿ”ฎ MYTHOS Entity"]
        direction TB
        subgraph Foundation["Foundation"]
            CFG["Config"]
            BUS["Event Bus"]
            LIFE["Lifecycle"]
        end
        subgraph Cognition["Cognition"]
            CORT["Cortex<br/>OODA Loop"]
            BRN["Brain<br/>Chain Walk"]
            MEM["Memory<br/>5 Stores"]
            GOAL["Goals"]
            LEASH["Leash<br/>Safety"]
            IMM["Immune<br/>Self-Heal"]
        end
        subgraph IOLayer["I/O"]
            SENS["10 Sensors"]
            EFF["189 Effectors"]
        end
        CORT --> BRN --> Cloud
        SENS --> BUS --> EFF
    end

    subgraph Interface["๐Ÿ–ฅ๏ธ Interface"]
        HUD["JARVIS HUD<br/>Radial Neural Map"]
        VOICE["Voice Loop<br/>Push-to-Talk"]
        CAM["Camera<br/>Gesture Control"]
        API["REST API<br/>+ WebSocket v2"]
    end

    Interface <--> MYTHOS
Loading

โš”๏ธ Entity vs Agent

Property ๐Ÿค– Traditional Agent ๐Ÿ”ฎ MYTHOS Entity
Trigger User request OODA cognitive loop (1s tick)
Cognition On-demand chain walk Continuous cortex tick
Memory Session-only Layered persistent memory (5 stores)
Safety Confirm dialog Tiered autonomy + audit trail + immune
Failure Return error Self-diagnose โ†’ self-heal โ†’ degrade
Idle No work, no cost Idle ticks call zero LLM APIs
Deployment Serverless Long-running process + Docker

๐Ÿ”„ The OODA Cognitive Loop

Every second, MYTHOS runs a full observe โ†’ orient โ†’ decide โ†’ act cycle:

flowchart LR
    OBS["๐Ÿ‘๏ธ OBSERVE<br/>Timer ยท File ยท WS<br/>Job ยท Metric sensors"] --> ORI

    subgraph ORI["๐Ÿงญ ORIENT"]
        RANK["Rank salience<br/>vs goals + drives"] --> HIGH{"High?"}
        HIGH -->|yes| EPI["Record to<br/>episodic memory"]
        HIGH -->|no| SKIP["Skip"]
    end

    ORI --> DEC

    subgraph DEC["โš–๏ธ DECIDE"]
        ARB["Arbiter<br/>weighted score"] --> PLAN["Planner<br/>recall or Brain"]
    end

    DEC --> ACT

    subgraph ACT["โšก ACT"]
        CHK["Leash check"] --> BRK["Breaker allow"] --> DSP["Dispatch<br/>effector"]
        DSP --> CONF{"Tier โ‰ฅ 3?"}
        CONF -->|yes| AUD["Write audit<br/>then execute"]
        CONF -->|no| EXE["Execute"]
    end

    ACT --> REF["๐Ÿ”„ REFLECT<br/>consolidate memory<br/>every 60 ticks"]
    REF -.-> OBS

    style OBS fill:#0e4429,stroke:#43e5a0,color:#fff
    style ORI fill:#1a1a4e,stroke:#4fd8ff,color:#fff
    style DEC fill:#4a1a6b,stroke:#a78bfa,color:#fff
    style ACT fill:#4a2a0a,stroke:#eab308,color:#fff
    style REF fill:#1a3a1a,stroke:#22c55e,color:#fff
Loading

Tip

Key insight: Idle ticks skip Brain entirely โ€” no LLM call, no cost. Only salient perceptions trigger reasoning.


๐Ÿ›๏ธ Six-Layer Stack

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              SERVER & UI v2                          โ”‚  Express + WS on :4478
โ”‚         JARVIS HUD ยท Voice ยท Camera                  โ”‚  Vanilla JS, zero build step
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚              IDENTITY                                โ”‚  self.md ยท boundaries.md
โ”‚         Human-editable persona                       โ”‚  Entity has no write path
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚     SENSORS   โ†โ†’   BUS   โ†โ†’   EFFECTORS             โ”‚  11 sensors ยท 189 effectors
โ”‚  timerยทfileยทwsยทjobยทmetricยทgmailยทscreenยทwindowยท       โ”‚  Publish/subscribe, never direct
โ”‚  reminderยทcalendar                                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚              CORTEX (OODA)                            โ”‚  1s tick, generation guard
โ”‚         observe โ†’ orient โ†’ decide โ†’ act               โ”‚  Breakers + timeouts
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  GOALS  โ”‚  BRAIN  โ”‚  LEASH  โ”‚  IMMUNE               โ”‚  Cognition subsystems
โ”‚  Arbitrage  Chain   Audit    Heal                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚           MEMORY (5 stores)                           โ”‚  Episodic ยท Semantic
โ”‚           Skills ยท Identity ยท Audit                   โ”‚  Vault-backed, persistent
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  CONFIG  โ”‚  BUS  โ”‚  LIFECYCLE  โ”‚  LOGGER            โ”‚  Foundation
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Note

Wiring rule: Modules never call across layer boundaries directly โ€” publish/subscribe on bus. Cortex is the only module that holds direct refs to memory, goals, brain, leash, and effectors.


๐Ÿง  Brain โ€” Multi-Provider Chain

7 cloud providers (NVIDIA NIM with 2-key rotation, Groq, Mistral, Cerebras, OpenRouter, Google, ZCode) plus a local Ollama fallback โ€” 8 lanes total, walking ranked preference tables with per-model cooldown.

flowchart LR
    THINK["brain.think()"] --> REG["Registry<br/>probe all providers"]

    subgraph Chain["Chain Walk"]
        direction LR
        A1["Groq 70B"] -->|fail| A2["Mistral Large"]
        A2 -->|fail| A3["Cerebras Gemma"]
        A3 -->|fail| A4["NIM Key 1"]
        A4 -->|fail| A5["NIM Key 2"]
        A5 -->|fail| A6["Google<br/>Gemini Flash"]
        A6 -->|fail| A7["OpenRouter"]
        A7 -->|fail| A8["ZCode GLM<br/>lane-config gated"]
        A8 -->|fail| A9["Ollama โˆž"]
    end

    A9 -->|fail| DEAD["chainExhausted<br/>offline: true"]
    A1 -->|success| RESP["Response"]

    style A1 fill:#0e4429,stroke:#43e5a0
    style A2 fill:#0e4429,stroke:#43e5a0
    style A3 fill:#0e4429,stroke:#43e5a0
    style DEAD fill:#4a0a0a,stroke:#ef4444
    style RESP fill:#0e4429,stroke:#22c55e
Loading

๐Ÿ›ฐ๏ธ Provider Fleet

Provider Model(s) Free Tier Lanes Rotation
Groq llama-3.3-70b-versatile 1K RPD / 100K TPD voice, simple โ€”
Mistral mistral-large-2512 No cap ยท 1 req/sec voice, build, simple, vision โ€”
Cerebras gemma-4-31b, zai-glm-4.7, gpt-oss-120b 2.4K RPD build, simple, text โ€”
NVIDIA NIM meta/llama-3.1-8b-instruct, vision models ~1K/month ยท 40 RPM voice, build, simple, text, vision โœ… 2 keys
OpenRouter hermes-3-405b, qwen3-coder, llama-3.3-70b 50 RPD voice, build, simple, text โ€”
Ollama qwen3:8b, ornith:9b, qwen3.5, qwen2.5vl Unlimited (local) voice, build, simple, text, vision โ€”
Google gemini-flash-lite-latest (+ gemini-3.6-flash, gemini-flash-latest per lane) Flash-tier only โ€” free keys get 429 on every Pro-tier Gemini model voice, simple, text, vision โ€”
ZCode glm-4.6 โ€” none by default (lane-config gated) โ€”

๐Ÿ”€ Failover Chains per Lane

graph TD
    subgraph Voice["๐ŸŽ™๏ธ VOICE"]
        V1["Groq 70B"] --> V2["Mistral Large"] --> V3["Cerebras"] --> V4["NIM"] --> V5["OpenRouter"] --> V6["Ollama"]
    end
    subgraph Build["๐Ÿ—๏ธ BUILD"]
        B1["Mistral Large"] --> B2["Cerebras GLM-4.7"] --> B3["Cerebras GPT-OSS"] --> B4["OpenRouter"] --> B5["NIM"] --> B6["Ollama"]
    end
    subgraph Simple["โœ‰๏ธ SIMPLE"]
        S1["Mistral"] --> S2["Cerebras"] --> S3["NIM"] --> S4["OpenRouter Hermes"] --> S5["Ollama"]
    end
    subgraph Vision["๐Ÿ‘๏ธ VISION"]
        VN1["Mistral (multimodal)"] --> VN2["NIM Vision"] --> VN3["Ollama qwen3.5"] --> VN4["Ollama qwen2.5vl"]
    end
Loading

๐Ÿ—„๏ธ Memory System

Five persistent stores, vault-backed, layered from short-term to long-term:

flowchart LR
    IN["Perception<br/>event"] --> WM["WorkingMemory<br/>15-item buffer"]

    WM -->|"high salience"| EP["Episodic Store<br/>time-series events"]
    WM -->|"consolidation"| SE["Semantic Store<br/>knowledge graph"]

    EP -->|"every 60 ticks"| CONS["Consolidation<br/>Brain distills"]
    CONS --> SE

    SE --> SK["Skills Store<br/>learned procedures"]
    ID["Identity Store<br/>self.md sections"]
    AU["Audit Store<br/>immutable log"]

    style WM fill:#1a1a4e,stroke:#4fd8ff,color:#fff
    style EP fill:#0e4429,stroke:#43e5a0,color:#fff
    style SE fill:#0e4429,stroke:#22c55e,color:#fff
    style AU fill:#4a1a1a,stroke:#ef4444,color:#fff
Loading
Store Purpose Retention Format
๐Ÿง  Working Memory 15-item perception buffer, drain on orient Tick-scoped In-memory
๐Ÿ“ผ Episodic Time-series of events and experiences 30 days (config) JSON files
๐Ÿ•ธ๏ธ Semantic Consolidated knowledge, relationships Permanent JSON + vector index
๐Ÿ› ๏ธ Skills Learned procedures and patterns Permanent JSON
๐Ÿชช Identity Persona sections (self.md, boundaries.md) Permanent Markdown
๐Ÿ“œ Audit Immutable action log for tier โ‰ฅ 3 Permanent JSON lines

๐Ÿ›ก๏ธ Immune System

Self-healing architecture with watchdog, healer, diagnostician, and circuit breakers:

flowchart TD
    WATCH["๐Ÿ• Watchdog<br/>polls every 2s"] -->|"stall detected"| DIAG["๐Ÿ”ฌ Diagnostician<br/>classify fault"]

    DIAG -->|"provider failure"| BRK["โšก Circuit Breaker<br/>3 fails โ†’ open 15s"]
    DIAG -->|"cortex stall"| HEAL["๐Ÿฉน Healer<br/>restart cortex"]

    BRK -->|"reset after 15s"| RETRY["Retry lane"]
    HEAL -->|"max restarts"| ANN["๐Ÿ“ข Announcer<br/>speak status"]

    ANN -.->|"voice"| TTS["Edge TTS<br/>322 voices"]

    style WATCH fill:#4a2a0a,stroke:#eab308,color:#fff
    style BRK fill:#4a1a1a,stroke:#ef4444,color:#fff
    style HEAL fill:#0e4429,stroke:#22c55e,color:#fff
Loading
Component Role Trigger
๐Ÿ• Watchdog Detects cortex stalls Polls every 2s
๐Ÿ”ฌ Diagnostician Classifies fault type Stall or anomaly event
โšก Breakers Trip on 3 consecutive fails Provider-level circuit
๐Ÿฉน Healer Restarts failed subsystems Diagnostician dispatch
๐Ÿ“ข Announcer Voice status updates Health events
๐Ÿ’พ Monitor Crash recovery on restart Boot-time checkpoint scan

๐Ÿ” Tiered Autonomy & Safety

Four tiers of action autonomy with human sovereignty baked in:

Tier Actions Human Gate Audit
0 Internal state changes โ€” โ€”
1 Memory writes, perception routing โ€” โ€”
2 Goal CRUD, kanban moves, pipeline advance โ€” โœ…
3 Code execution, file writes, agent dispatch Confirm โœ…
4 System-level changes, destructive ops Confirm + reason โœ…
flowchart LR
    ACT["Action request"] --> LCK["Leash.check()"]
    LCK --> T3{"Tier โ‰ฅ 3?"}
    T3 -->|yes| CONF["Confirm dialog<br/>30s TTL"]
    T3 -->|no| GO["Execute"]
    CONF -->|accept| AUD["Write audit line"]
    CONF -->|reject| DENY["Denied"]
    AUD --> GO

    style T3 fill:#4a1a1a,stroke:#ef4444,color:#fff
    style DENY fill:#4a0a0a,stroke:#ef4444,color:#fff
Loading

Tip

MYTHOS_DRY_RUN=true โ€” makes all tier โ‰ฅ 1 actions logged no-ops. Perfect for observing what the entity would do.


๐ŸŽ™๏ธ Voice System

Three integrated voice channels โ€” browser push-to-talk, speech-to-speech pipeline, and gesture control:

flowchart TB
    subgraph Input["๐ŸŽค Input Channels"]
        PTT["Push-to-Talk<br/>Hold Space / mic pill"]
        S2S["Speech-to-Speech<br/>Silero VAD + Whisper"]
        CAM["Camera Gestures<br/>MediaPipe ยท 5 gestures"]
    end

    subgraph Brain["๐Ÿง  Voice Brain"]
        STT["Speech-to-Text"] --> INT["Ollama JSON<br/>tool-calling"]
        INT --> TOOLS["20 Dashboard tools<br/>4 Computer tools<br/>10 PC tools"]
    end

    subgraph Output["๐Ÿ”Š Output"]
        TTS["Edge TTS<br/>322 Neural voices"]
        SYNTH["Browser<br/>speechSynthesis fallback"]
    end

    Input --> Brain --> Output
    CAM -->|"Confirm/Deny/Mute/Vision"| TOOLS

    style Input fill:#1a1a4e,stroke:#4fd8ff,color:#fff
    style Output fill:#0e4429,stroke:#43e5a0,color:#fff
Loading

โœ‹ Gesture Control

Gesture Action
๐Ÿ‘ Thumb Up Accept confirmation
โœŠ Closed Fist Reject confirmation
๐Ÿ–๏ธ Open Palm Mute the mic โ€” or unmute it, if it is already off
โ˜๏ธ Pointing Up Unmute the mic (only ever unmutes, never mutes)
โœŒ๏ธ Victory Vision Q&A โ€” describe scene

A pose is one press, however long you hold it: the same gesture cannot fire again until your hand leaves it, so a palm left in frame mutes once instead of flipping the mic back on. Mute is also reachable from the mic button, the core orb, and the global push-to-talk hotkey (Alt+Space by default).

๐Ÿ‘๏ธ What the camera can and cannot see

Camera is OFF by default, the same privacy posture as the mic, and stop() releases the hardware stream rather than only the timer.

While it is on, gesture recognition runs entirely on your machine โ€” MediaPipe WASM, no server round-trip, no frames leaving the process. A single JPEG frame is sent to the vision model only when you ask for it: the โœŒ๏ธ gesture, or an utterance like "what do you see", "look at this", "can you see this", "what am I holding". One question, one frame.

Webcam frames are never streamed continuously to the Live session โ€” that is screen-share only. So MYTHOS can look when asked; it is not watching the room.

๐Ÿ—ฃ๏ธ Voice Actions

  • Dashboard โ€” navigate, goals CRUD, pipeline capture/advance, kanban build, ask agents
  • Computer โ€” open folders, list files, read files, compose emails
  • Safety โ€” dangerous actions require spoken confirmation (30s TTL)

189-Tool Effectors

๐Ÿงฐ Every action MYTHOS can take goes through one of these 189 registered effectors. Counts are generated (mythos/scripts/sync-test-count.js, AD-10) from the real from-*.js tool arrays โ€” not hand-typed:

pie showData title Tool Distribution
    "PC Control" : 29
    "Dashboard" : 28
    "Browser Automation" : 24
    "Computer & Files" : 15
    "Phone (Android)" : 14
    "Memory & Notes" : 12
    "Calendar & Timers" : 9
    "Spotify" : 7
    "CUA Driver" : 4
    "Documents (RAG)" : 4
    "Gmail" : 4
    "System" : 4
    "WhatsApp" : 4
    "Other (17 modules, under 4 tools each)" : 31
Loading
๐Ÿ“‹ Full effector catalog (click to expand)
Catalog Module Tools Registered
PC Control from-pc.js 29 launch_app, list_windows, focus_window, close_window, media_key, get_volume, set_volume, set_app_volume, get_app_volume, set_app_mute, screen_look, capture_screenshot, ui_elements, ui_click, ui_type, send_key, click_at, see_and_click, move_window, snap_window, scroll_at, right_click_at, drag, write_note, ambient_awareness, show_desktop, media_status, screen_read_text, set_wallpaper
Dashboard from-dashboard.js 28 navigate, close_panel, open_web, open_artifact, delete_artifact, read_status, read_system_specs, web_fetch, web_search, job_status, create_goal, propose_goal, list_goals, toggle_goal, delete_goal, capture_idea, pipeline_status, pipeline_advance, pipeline_execute, kanban_status, kanban_add_card, kanban_move_card, kanban_assemble, kanban_build_card, ask_agent, camera_look, camera_on, daily_plan
Browser Automation from-browser.js 24 browser_navigate, browser_snapshot, browser_click, browser_type, browser_screenshot, browser_get_title, browser_get_text, browser_scroll, browser_tabs, browser_go_back, browser_wait_for, browser_fill_form, browser_dismiss_overlays, browser_check_captcha, browser_upload_file, browser_select_option, browser_press_key, browser_hover, browser_evaluate, browser_launch_debug, browser_switch, browser_video_list, browser_media_state, browser_media_control
Computer & Files from-computer.js 15 open_file, open_folder, list_folder, read_file, write_file, create_folder, delete_file, move_file, copy_file, rename_file, search_files, compose_email, clipboard_read, clipboard_write, think_deeply
Phone (Android) from-android.js 14 phone_list_devices, phone_screenshot, phone_notifications, phone_contacts_search, phone_sms_send, phone_call, phone_whatsapp_send, phone_wifi_toggle, phone_bluetooth_toggle, phone_hotspot_toggle, phone_app_launch, phone_app_close, phone_file_pull, phone_file_push
Memory & Notes from-memory.js 12 resume_interrupted_answer, suggest_procedures, note_take, note_read, note_search, self_capabilities, remember, forget_fact, log_incident, recall_memory, list_incidents, incident_status
Calendar & Timers from-calendar.js 9 reminder_add, reminder_list, reminder_cancel, reminder_approve_action, timer_add, timer_cancel, calendar_upcoming, commitment_list, commitment_dismiss
Spotify from-spotify.js 7 spotify_play_pause, spotify_next, spotify_previous, spotify_volume, spotify_play, spotify_search, spotify_status
CUA Driver from-cua.js 4 cua_list_windows, cua_bring_to_front, cua_get_window_state, cua_click
Documents (RAG) from-documents.js 4 document_ingest, document_list, document_search, document_answer
Gmail from-gmail.js 4 gmail_unread, gmail_read, gmail_send, gmail_draft
System from-system.js 4 get_time, get_weather, get_directions, system_status
WhatsApp from-whatsapp.js 4 whatsapp_send, whatsapp_contacts, whatsapp_contact_save, whatsapp_contact_delete
Desktop Task Operator from-desktop.js 3 desktop_task_start, desktop_task_status, desktop_task_control
Document Generation from-docs.js 3 generate_spreadsheet, generate_deck, generate_pdf
Forge (multi-file build) from-forge.js 3 build_project, revise_project, project_status
MCP Bridge from-mcp.js 3 mcp_list_servers, mcp_list_tools, mcp_call_tool
OKF Knowledge Exchange from-okf.js 3 okf_export, okf_list, okf_import
Code Search from-code-search.js 2 index_project, search_code
Mission Orchestrator from-mission.js 2 run_mission, mission_status
Persona from-persona.js 2 persona_status, set_persona_level
Widgets from-widgets.js 2 manage_widget, spawn_widget
App Reply from-app-reply.js 1 app_reply
DeepSeek Harness (build engine) from-dsh.js 1 dsh_task
Image Generation from-image-gen.js 1 generate_image
GitHub Installer from-installer.js 1 install_from_github
Project from-project.js 1 start_project
Command Runner from-runner.js 1 run_command
Skills from-skills.js 1 use_skill
Security Scan from-strix.js 1 security_scan

Warning

All dangerous tools (delete, execute, kill) require confirmation via the Leash system.


๐Ÿ“‹ Engagement Layer โ€” Structured Task Lifecycle

Takes an intent (a sentence) and walks it through a structured lifecycle: interview โ†’ spec โ†’ plan โ†’ approval โ†’ execution โ†’ verification โ†’ repair โ†’ completion.

flowchart TB
    INTENT["Initial intent"] --> DRAFT["DRAFT"]
    DRAFT -->|startInterview| IV["INTERVIEWING"]
    IV -->|completeInterview| SPEC["SPEC_READY"]
    SPEC -->|buildPlan| PLAN["PLAN_READY"]
    PLAN -->|requestApproval| APPROVAL["AWAITING_APPROVAL"]

    APPROVAL -->|approve| EXEC["EXECUTING"]
    APPROVAL -->|rejectWithFeedback| PLAN

    EXEC -->|stageComplete| VERIFY["VERIFYING"]
    EXEC -->|stageFailed| REPAIR["REPAIRING"]
    EXEC -->|fatalError| FAIL["FAILED"]

    VERIFY -->|allVerified| DONE["COMPLETED"]
    VERIFY -->|verificationFailed| REPAIR
    VERIFY -->|noRepairsRemaining| BLOCK["BLOCKED"]

    REPAIR -->|retryReady| EXEC
    REPAIR -->|repairExhausted| BLOCK

    BLOCK -->|unblock| EXEC
    BLOCK -->|abandon| FAIL
    FAIL -->|restart| DRAFT

    style DONE fill:#0e4429,stroke:#43e5a0,color:#fff
    style BLOCK fill:#4a2a0a,stroke:#eab308,color:#fff
    style FAIL fill:#4a0a0a,stroke:#ef4444,color:#fff
Loading
Capability Modules What it does
State Machine state-machine.js, schema.js 12 states, 22 validated transitions with preconditions. Invalid transitions emit typed health anomalies.
Interview interview.js, interview-card UI Up to 5 questions, 5 variants (text, choice, confirm, multi-select, numeric), per-type validation.
Spec Builder spec-builder.js, recommendations.js Generates markdown specs from interview answers. Recommends build/research/hybrid approaches with confidence scores.
Plan Builder plan-builder.js Produces staged plans (setup, core, verify) with verification gates per stage.
Progress progress.js, progress-stream UI Real-time progress tracking, percentage-complete, repair budget monitoring.
Conversation Gateway gateway.js, intent-router.js Classifies messages as action/question/chat with 9 engagement action patterns.
Events events.js 18 typed bus event factories covering the full lifecycle.

Backend (15 modules): src/core/engagements/ (10) + src/core/assistant/ (5). Frontend (8 component + 3 view modules): 3-column dashboard, 5-tab detail panel, live WS-driven progress streaming, approval gate modals, interview cards, verification check cards, completion reports. Tests: 166 tests (121 engagement + 45 assistant) across 14 test files.


๐Ÿš€ Deploy

โ˜๏ธ Render (Cloud)

# render.yaml โ€” auto-detected by Render Blueprint
services:
  - type: web
    name: agent-os
    runtime: docker
    rootDir: mythos
    plan: free
    envVars:
      - key: PORT
        generateValue: true
      - key: MYTHOS_BIND
        value: "0.0.0.0"

Deploy steps:

  1. Push to main โ€” auto-deploys
  2. Set env vars in Render dashboard (API keys, model configs)
  3. Live at https://agent-xxxx.onrender.com

Dockerfile included โ€” Node 22 Alpine, zero build step. TTS is BYO โ€” edge-tts is never bundled (LGPL boundary; see mythos/THIRD_PARTY_NOTICES.md).

Important

Environment variables (set in Render dashboard, NOT in the repo): NIM_API_KEY ยท NIM_API_KEY_2 ยท GROQ_API_KEY ยท MISTRAL_API_KEY ยท OPENROUTER_API_KEY ยท CEREBRAS_API_KEY

๐Ÿ’ป Local (Windows)

Double-click Start Agent OS.bat โ€” that's it.

# Or manually:
cd mythos
npm install
node src/main.js
# Open http://127.0.0.1:4478

Copy .env.example to .env and fill in keys. Boots degraded without any keys โ€” status tiles show exactly what's offline.


๐Ÿ“ธ Screenshots

๐Ÿ›ฐ๏ธ JARVIS HUD โ€” Radial Neural Map ๐Ÿ—‚๏ธ Agent Kanban โ€” Planner / Builder / Reviewer
JARVIS HUD Agent Kanban
๐ŸŒŒ Memory Galaxy โ€” Vault as a Starfield ๐ŸŽฏ Goals โ€” CRUD + Voice Input
Memory Galaxy Goals
โš™๏ธ Pipeline โ€” Capture โ†’ Gate โ†’ Execute โ†’ Ship ๐Ÿ“ก The Radar โ€” RSS Signal Aggregation
Pipeline Radar
๐Ÿง  Mastermind โ€” 13 Concurrent AI Seats ๐Ÿค– Agent Room โ€” Multi-Model Streaming
Mastermind Hermes
๐ŸŽฎ Game Studio ๐ŸŽต Music Studio ๐ŸŽฌ Video Studio ๐Ÿ–ผ๏ธ Thumbnail Studio
Game Studio Music Studio Video Studio Thumbnail Studio

๐Ÿ“ˆ Build History

20 phases shipped. Linear history on main. 8990 tests green.

gantt
    title Phase History
    dateFormat YYYY-MM-DD
    axisFormat %b %d
    section Foundation
    P0 Foundation               :done, p0, 2026-07-08, 2d
    P1 Memory                   :done, p1, after p0, 2d
    P2 Brain                    :done, p2, after p1, 2d
    P3 Cortex (OODA)            :done, p3, after p2, 2d
    P4 Goals                    :done, p4, after p3, 1d
    section Safety
    P4.5 Spec Remediation       :done, p4b, after p4, 1d
    P5 Leash                    :done, p5, after p4b, 2d
    P6 Immune System            :done, p6, after p5, 2d
    section I/O
    P7 Sensors + 45 Effectors   :done, p7, after p6, 3d
    P8 Identity                 :done, p8, after p7, 2d
    P9 UI v2 + JARVIS HUD       :done, p9, after p8, 3d
    section Hardening
    P10 Chaos Drills            :done, p10, after p9, 2d
    P11 Token Streaming         :done, p11, after p10, 1d
Loading
๐Ÿ“Š Test growth per phase (click to expand)
Phase Scope Tests
P0 Foundation: config, bus, lifecycle, logger, vault 26
P1 Memory: 5 stores, consolidation, working memory 70
P2 Brain: chain walk, provider registry, failover 113
P3 Cortex: OODA loop, orient/decide/act cycle 161
P4 Goals: arbitrage, budget, CRUD, priority scoring 161
P4.5 Spec-conformance remediation (13 criticals closed) 174
P5 Leash: tiered autonomy, confirmation gating, audit 184
P6 Immune: watchdog, healer, breakers, announcer 234
P7 45 effectors, 5 sensors, voice, build-runner 272
P8 Identity: self.md, boundaries.md, persona injection 293
P9 UI v2: JARVIS HUD, WS v2, REST routes, overlay panels 316
P10 Chaos drills: 6 drills against real shipped code 327
P11 Token streaming, gap-closing (D-23/D-57 fixes) 402
P17/18 Engagement Layer: lifecycle FSM, interview, spec, plan, store, assistant, UI 568

Full history: ROADMAP.md ยท MYTHOS-ARCHITECTURE.md


๐Ÿ› ๏ธ Tech Stack

Tech stack icons

Layer Choice Rationale
Runtime Node.js โ‰ฅ 18 Zero config, universal
Server Express 5 + ws Battle-tested, minimal
Frontend Vanilla JS SPA No framework, no bundler, no build step
UI JARVIS HUD (Canvas) Radial neural map, floating widgets
Data Filesystem vault Obsidian-compatible JSON + Markdown
Realtime WebSocket v2 Streaming, broadcasts, subscriptions
Voice Edge TTS + Web Speech API 322 Microsoft Neural voices, free
Vision MediaPipe gestures 5 gestures: confirm, deny, mute, unmute, vision
Tests Built-in node:test 8990 tests, zero test framework deps
Deps 9 total @huggingface/transformers ยท @mediapipe/tasks-vision ยท exceljs ยท express ยท kokoro-js ยท onnxruntime-web ยท playwright-core ยท pptxgenjs ยท ws
Deploy Docker (Render) One Dockerfile, auto-deploy on push
๐Ÿ“ Project layout (click to expand)
Agent_OS/
โ”œโ”€โ”€ mythos/                      # MYTHOS entity runtime
โ”‚   โ”œโ”€โ”€ Dockerfile               # Docker image for cloud deploy
โ”‚   โ”œโ”€โ”€ .env.example             # All config knobs (documented)
โ”‚   โ”œโ”€โ”€ package.json             # 9 deps, 8990 tests
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ main.js              # Boot sequence (13 lifecycle steps)
โ”‚   โ”‚   โ””โ”€โ”€ core/
โ”‚   โ”‚       โ”œโ”€โ”€ brain/           # chain.js, registry.js, lanes, spend
โ”‚   โ”‚       โ”œโ”€โ”€ bus/             # Event bus (pub/sub, middleware, storm guard)
โ”‚   โ”‚       โ”œโ”€โ”€ config/          # Schema validation + env loading
โ”‚   โ”‚       โ”œโ”€โ”€ cortex/          # OODA loop + orient/decide
โ”‚   โ”‚       โ”œโ”€โ”€ effectors/       # 189 tools, build-runner, orchestrator
โ”‚   โ”‚       โ”œโ”€โ”€ goals/           # Arbitrage + budget system
โ”‚   โ”‚       โ”œโ”€โ”€ identity/        # self.md + boundaries.md
โ”‚   โ”‚       โ”œโ”€โ”€ immune/          # watchdog, healer, breakers, announcer
โ”‚   โ”‚       โ”œโ”€โ”€ leash/           # Tiered autonomy + audit
โ”‚   โ”‚       โ”œโ”€โ”€ lifecycle/       # Boot/shutdown sequencing
โ”‚   โ”‚       โ”œโ”€โ”€ memory/          # 5 stores + working memory
โ”‚   โ”‚       โ”œโ”€โ”€ sensors/         # timer, file, ws, job, metric
โ”‚   โ”‚       โ”œโ”€โ”€ engagements/     # 10 modules: lifecycle, FSM, interview, spec, plan, store
โ”‚   โ”‚       โ”œโ”€โ”€ assistant/       # 5 modules: gateway, intent routing, response planning
โ”‚   โ”‚       โ””โ”€โ”€ voice/           # Voice agent + spoken text
โ”‚   โ”œโ”€โ”€ providers/               # 23 providers (openai-compat factory)
โ”‚   โ”‚   โ”œโ”€โ”€ nim.js / nim2.js     # NVIDIA NIM (2-key rotation)
โ”‚   โ”‚   โ”œโ”€โ”€ groq.js              # Groq LPU
โ”‚   โ”‚   โ”œโ”€โ”€ mistral.js           # Mistral La Plateforme
โ”‚   โ”‚   โ”œโ”€โ”€ cerebras.js          # Cerebras Cloud
โ”‚   โ”‚   โ”œโ”€โ”€ openrouter.js        # OpenRouter free models
โ”‚   โ”‚   โ””โ”€โ”€ ollama.js            # Local inference
โ”‚   โ”œโ”€โ”€ server/                  # Express + WebSocket v2
โ”‚   โ”œโ”€โ”€ ui/public/               # JARVIS HUD (canvas + widgets)
โ”‚   โ”‚   โ”œโ”€โ”€ js/                  # app.js, ws.js, voice, neural-map
โ”‚   โ”‚   โ””โ”€โ”€ css/                 # 10 stylesheets, design tokens
โ”‚   โ”œโ”€โ”€ test/                    # 8990 tests (node --test)
โ”‚   โ””โ”€โ”€ vault/                   # Persistent data (gitignored)
โ”œโ”€โ”€ render.yaml                  # Render Blueprint (cloud deploy)
โ”œโ”€โ”€ Start Agent OS.bat           # Windows launcher
โ”œโ”€โ”€ ROADMAP.md                   # Full phase history
โ”œโ”€โ”€ MYTHOS-ARCHITECTURE.md       # Architecture spec (16 sections)
โ””โ”€โ”€ README.md                    # โ† You are here

๐Ÿ“š Documentation

Doc What it covers
๐Ÿ“œ ROADMAP.md Phase-by-phase build history, test counts, drift tracking
๐Ÿ—๏ธ MYTHOS-ARCHITECTURE.md Complete 16-section architecture spec with code
โš™๏ธ mythos/.env.example Every config knob, documented with defaults
๐Ÿ“‹ ENGAGEMENT-CHANGELOG.md Engagement Layer changelog โ€” modules, test counts, event types
๐Ÿ”Œ docs/WIRING-AUDIT.md Wiring audit โ€” what's connected, what's not
๐Ÿงช docs/live-verification-runbook.md Live verification procedures

๐Ÿ“Š Repository Stats

Agent_OS repo card



Activity graph

โš–๏ธ License

Personal / hobby use. The bring-your-own edge-tts integration reverse-engineers Microsoft Edge's Read Aloud endpoint and is not licensed for commercial deployment. Provider integrations require their respective API keys and are subject to those providers' terms. No warranty.


footer

Designed for the local-first operator. Built honestly. Deployed to the cloud.

From NOVA requestโ†’respond dashboard โ†’ MYTHOS continuous autonomous entity.

โญ If this project interests you, drop a star โ€” it helps.

About

Agent_OS

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages