# sandesh362/nexos architecture

> Architecture diagram of the GitHub repository sandesh362/nexos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sandesh362/nexos
- Repository: https://github.com/sandesh362/nexos

## Overview

NEXOS is a planned Ubuntu-based distribution for bounded, AI-assisted workstation tasks, not a working runtime in this repository. Its intended user workflow is to describe an outcome, review and authorize a plan, execute scoped tools, and verify observable results. The repository contains architecture documentation and document-generation utilities rather than the planned application, engine, installer, or ISO; component paths therefore point to the documentation describing them. Relationships reflect README descriptions, not inspected runtime code.

Main entry points: [`README.md`](https://github.com/sandesh362/nexos/blob/main/README.md) (nexosd service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["User experience"]
  node_assistant["Native assistant<br/>[README.md]"]
  node_cli["CLI<br/>[README.md]"]
end

subgraph group_execution["Task execution"]
  node_daemon["nexosd service<br/>[README.md]"]
  node_intent["Intent handling<br/>[README.md]"]
  node_planner["Plan and validation<br/>[README.md]"]
  node_scheduler["Scheduler and agents<br/>[README.md]"]
  node_permissions["Permission broker<br/>[README.md]"]
  node_localtools["Local tools<br/>[README.md]"]
  node_connectors["External connectors<br/>[README.md]"]
  node_ollama["Ollama inference<br/>[README.md]"]
  node_cloudmodels["Cloud model providers<br/>[README.md]"]
end

subgraph group_state["State and verification"]
  node_sqlite[("SQLite task state<br/>[README.md]")]
  node_memory["Task memory<br/>[README.md]"]
  node_verifier["Verifier and audit<br/>[README.md]"]
end

subgraph group_delivery["Distribution delivery"]
  node_ubuntu["Ubuntu base<br/>[README.md]"]
  node_packages["Native packages<br/>[README.md]"]
  node_coreiso["Core ISO<br/>[README.md]"]
  node_offlineiso["Offline demo ISO<br/>[README.md]"]
  node_vm["Prebuilt VM<br/>[README.md]"]
end

node_user(("User"))

node_user -->|"states goal"| node_assistant
node_assistant -->|"sends task"| node_daemon
node_cli -->|"communicates with"| node_daemon
node_daemon -->|"handles intent"| node_intent
node_intent -->|"forms plan"| node_planner
node_planner -->|"provides plan"| node_scheduler
node_scheduler -->|"requests authorization"| node_permissions
node_permissions -->|"authorizes actions"| node_localtools
node_permissions -->|"authorizes actions"| node_connectors
node_scheduler -->|"requests inference"| node_ollama
node_scheduler -.->|"may request inference"| node_cloudmodels
node_daemon -->|"persists task state"| node_sqlite
node_daemon -->|"preserves context"| node_memory
node_verifier -->|"checks outcomes"| node_localtools
node_verifier -->|"checks outcomes"| node_connectors
node_verifier -->|"reports results"| node_assistant
node_ubuntu -->|"hosts components"| node_packages
node_packages -->|"integrated into"| node_coreiso
node_coreiso -->|"variant includes model"| node_offlineiso
node_coreiso -.->|"optional export"| node_vm

click node_assistant "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_cli "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_daemon "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_intent "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_planner "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_scheduler "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_permissions "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_localtools "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_connectors "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_ollama "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_cloudmodels "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_sqlite "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_memory "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_verifier "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_ubuntu "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_packages "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_coreiso "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_offlineiso "https://github.com/sandesh362/nexos/blob/main/README.md"
click node_vm "https://github.com/sandesh362/nexos/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_assistant,node_cli,node_user toneBlue
class node_daemon,node_intent,node_planner,node_scheduler,node_permissions,node_localtools,node_connectors,node_ollama,node_cloudmodels toneAmber
class node_sqlite,node_memory,node_verifier toneMint
class node_ubuntu,node_packages,node_coreiso,node_offlineiso,node_vm toneRose
```

## Components

### User experience

- [Native assistant](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [CLI](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`

### Task execution

- [nexosd service](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Intent handling](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Plan and validation](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Scheduler and agents](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Permission broker](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Local tools](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [External connectors](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Ollama inference](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Cloud model providers](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`

### State and verification

- [SQLite task state](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Task memory](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Verifier and audit](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`

### Distribution delivery

- [Ubuntu base](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Native packages](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Core ISO](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Offline demo ISO](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`
- [Prebuilt VM](https://github.com/sandesh362/nexos/blob/main/README.md): `README.md`

### Other components

- **User**

## Connections

- User → Native assistant: states goal (evidence: `README.md`)
- Native assistant → nexosd service: sends task (evidence: `README.md`)
- CLI → nexosd service: communicates with (evidence: `README.md`)
- nexosd service → Intent handling: handles intent (evidence: `README.md`)
- Intent handling → Plan and validation: forms plan (evidence: `README.md`)
- Plan and validation → Scheduler and agents: provides plan (evidence: `README.md`)
- Scheduler and agents → Permission broker: requests authorization (evidence: `README.md`)
- Permission broker → Local tools: authorizes actions (evidence: `README.md`)
- Permission broker → External connectors: authorizes actions (evidence: `README.md`)
- Scheduler and agents → Ollama inference: requests inference (evidence: `README.md`)
- Scheduler and agents → Cloud model providers: may request inference (evidence: `README.md`)
- nexosd service → SQLite task state: persists task state (evidence: `README.md`)
- nexosd service → Task memory: preserves context (evidence: `README.md`)
- Verifier and audit → Local tools: checks outcomes (evidence: `README.md`)
- Verifier and audit → External connectors: checks outcomes (evidence: `README.md`)
- Verifier and audit → Native assistant: reports results (evidence: `README.md`)
- Ubuntu base → Native packages: hosts components (evidence: `README.md`)
- Native packages → Core ISO: integrated into (evidence: `README.md`)
- Core ISO → Offline demo ISO: variant includes model (evidence: `README.md`)
- Core ISO → Prebuilt VM: optional export (evidence: `README.md`)
