How kuntalsaha05/jarvis-os works
JARVIS-OS combines a bare-metal educational x86-64 kernel with a host-side AI companion. The kernel workflow boots into hardware and interrupt services, then supports process scheduling, memory, IPC, storage, networking, shell access, and a graphical desktop; algorithm simulations and diagnostics provide educational and inspection capabilities. Separately, host requests enter the agent loop, which selects tools under policy, may communicate with the kernel over the JSON bridge, and synthesizes a response through a configured LLM backend. Several subsystem links rely on README descriptions because their implementation files were not sampled.
Main entry points: kernel.c Kernel Startup · shell.c Kernel Shell · agent.py Agent Cycle · ipc.c IPC and Sync
Components 25
Kernel Core
- Kernel Startup
kernel/kernel.c - Hardware Abstraction
kernel/hal/hal.c - Interrupt Handling
kernel/interrupts/idt.c - Console and Input
kernel/drivers/terminal.c
Kernel Services
- Processes
kernel/process/process.c - Scheduler
kernel/process/scheduler.c - Memory Management
kernel/memory/page.c - IPC and Sync
kernel/ipc/ipc.c - JARVIS-FS
kernel/storage/fs.c - Block Device
kernel/storage/block.c - Network Stack
kernel/net/netstack.c - Security Controls
kernel/security/security.c - System Diagnostics
kernel/diagnostics/diagnostics.c
User Interfaces
- Kernel Shell
kernel/shell/shell.c - Graphical Desktop
kernel/gui/desktop.c - Window Manager
kernel/gui/wm.c
Host Companion
- Host CLI
jarvis/main.py - Agent Cycle
jarvis/agent/agent.py - Tool Registry
jarvis/tools/registry.py - LLM Manager
jarvis/llm/manager.py - LLM Backends
jarvis/llm - JSON Serial Bridge
jarvis/bridge
OS Demonstrations
- OS Algorithms
kernel/algorithms
Other components
- Bootloader
- Host User
Connections 31
- Bootloader → Kernel Startup: boots
- Kernel Startup → Hardware Abstraction: initializes
kernel/kernel.c - Kernel Startup → Interrupt Handling: initializes
kernel/kernel.c - Kernel Startup → Processes: initializes
kernel/kernel.c - Kernel Startup → Scheduler: initializes
kernel/kernel.c - Kernel Startup → IPC and Sync: initializes
kernel/kernel.c - Kernel Startup → JARVIS-FS: initializes
kernel/kernel.c - Kernel Startup → Block Device: uses
kernel/kernel.c - Interrupt Handling → Scheduler: ticks
kernel/interrupts/idt.c - Processes → Interrupt Handling: configures
kernel/process/process.c - IPC and Sync → Processes: blocks tasks
kernel/ipc/ipc.c - IPC and Sync → Scheduler: uses
kernel/ipc/ipc.c - JARVIS-FS → Block Device: reads and writes
kernel/storage/fs.c - Kernel Shell → JARVIS-FS: dispatches filesystem commands
kernel/shell/shell.c - Kernel Shell → Network Stack: reports network status
kernel/shell/shell.c - Kernel Shell → IPC and Sync: runs IPC demos
kernel/shell/shell.c - Kernel Shell → OS Algorithms: runs simulations
kernel/shell/shell.c - Kernel Startup → Memory Management: uses
kernel/kernel.c - Kernel Startup → Kernel Shell: starts
kernel/kernel.c - Graphical Desktop → Window Manager: uses
- Graphical Desktop → System Diagnostics: reads telemetry
- Hardware Abstraction → Console and Input: registers devices
kernel/hal/hal.c - Host User → Host CLI: submits request
jarvis/main.py - Host CLI → Agent Cycle: runs cycle
jarvis/main.py - Agent Cycle → Tool Registry: selects and executes
jarvis/agent/agent.py - Agent Cycle → LLM Manager: requests generation
jarvis/agent/agent.py - LLM Manager → LLM Backends: routes requests
jarvis/llm/manager.py - Host CLI → JSON Serial Bridge: starts companion
jarvis/main.py - JSON Serial Bridge → Kernel Startup: exchanges JSON
- Agent Cycle → Host CLI: returns answer
jarvis/main.py - Security Controls → Tool Registry: enforces permissions