# lilorad/minios-omega architecture

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

- Interactive diagram: https://gitdiagram.com/lilorad/minios-omega
- Repository: https://github.com/lilorad/minios-omega

## Overview

MiniOS-Omega is a small interactive OS simulator. A user logs in, then enters commands in a shell that dispatches filesystem, process, and memory operations; the shell also offers basic system information. State is held in in-memory Python structures, not a persistent or external store. The README provides no capability details, so this map follows the sampled source; it does not imply that process or memory operations control real operating-system resources.

Main entry points: [`main.py`](https://github.com/lilorad/minios-omega/blob/main/main.py) (Command shell and dispatch), [`filesystem.py`](https://github.com/lilorad/minios-omega/blob/main/filesystem.py) (File commands), [`processes.py`](https://github.com/lilorad/minios-omega/blob/main/processes.py) (Process commands), [`memory.py`](https://github.com/lilorad/minios-omega/blob/main/memory.py) (Memory commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Shell interface"]
  node_boot["Startup and login flow<br/>[main.py]"]
  node_shell["Command shell and dispatch<br/>[main.py]"]
  node_system_info["System information<br/>[main.py]"]
end

subgraph group_identity["User identity"]
  node_login["Credential login<br/>[users.py]"]
  node_user_state["Current user state<br/>[users.py]"]
end

subgraph group_filesystem["Virtual filesystem"]
  node_file_commands["File commands<br/>[filesystem.py]"]
  node_file_state[("In-memory file tree<br/>[filesystem.py]")]
end

subgraph group_resources["Simulated resources"]
  node_process_commands["Process commands<br/>[processes.py]"]
  node_process_state[("Process table<br/>[processes.py]")]
  node_memory_commands["Memory commands<br/>[memory.py]"]
  node_memory_state[("Memory accounting<br/>[memory.py]")]
end

node_user(("User"))

node_user -->|"starts"| node_boot
node_boot -->|"calls"| node_login
node_boot -->|"starts after login"| node_shell
node_user -->|"enters commands"| node_shell
node_shell -->|"dispatches"| node_file_commands
node_shell -->|"dispatches"| node_process_commands
node_shell -->|"dispatches"| node_memory_commands
node_shell -->|"dispatches"| node_system_info
node_file_commands -->|"reads and updates"| node_file_state
node_process_commands -->|"reads and updates"| node_process_state
node_memory_commands -->|"reads and updates"| node_memory_state
node_system_info -->|"reads"| node_user_state
node_system_info -->|"reads"| node_memory_state

click node_boot "https://github.com/lilorad/minios-omega/blob/main/main.py"
click node_shell "https://github.com/lilorad/minios-omega/blob/main/main.py"
click node_login "https://github.com/lilorad/minios-omega/blob/main/users.py"
click node_user_state "https://github.com/lilorad/minios-omega/blob/main/users.py"
click node_file_commands "https://github.com/lilorad/minios-omega/blob/main/filesystem.py"
click node_file_state "https://github.com/lilorad/minios-omega/blob/main/filesystem.py"
click node_process_commands "https://github.com/lilorad/minios-omega/blob/main/processes.py"
click node_process_state "https://github.com/lilorad/minios-omega/blob/main/processes.py"
click node_memory_commands "https://github.com/lilorad/minios-omega/blob/main/memory.py"
click node_memory_state "https://github.com/lilorad/minios-omega/blob/main/memory.py"
click node_system_info "https://github.com/lilorad/minios-omega/blob/main/main.py"

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_boot,node_shell,node_system_info,node_user toneBlue
class node_login,node_user_state toneAmber
class node_file_commands,node_file_state toneMint
class node_process_commands,node_process_state,node_memory_commands,node_memory_state toneRose
```

## Components

### Shell interface

- [Startup and login flow](https://github.com/lilorad/minios-omega/blob/main/main.py): `main.py`
- [Command shell and dispatch](https://github.com/lilorad/minios-omega/blob/main/main.py): `main.py`
- [System information](https://github.com/lilorad/minios-omega/blob/main/main.py): `main.py`

### User identity

- [Credential login](https://github.com/lilorad/minios-omega/blob/main/users.py): `users.py`
- [Current user state](https://github.com/lilorad/minios-omega/blob/main/users.py): `users.py`

### Virtual filesystem

- [File commands](https://github.com/lilorad/minios-omega/blob/main/filesystem.py): `filesystem.py`
- [In-memory file tree](https://github.com/lilorad/minios-omega/blob/main/filesystem.py): `filesystem.py`

### Simulated resources

- [Process commands](https://github.com/lilorad/minios-omega/blob/main/processes.py): `processes.py`
- [Process table](https://github.com/lilorad/minios-omega/blob/main/processes.py): `processes.py`
- [Memory commands](https://github.com/lilorad/minios-omega/blob/main/memory.py): `memory.py`
- [Memory accounting](https://github.com/lilorad/minios-omega/blob/main/memory.py): `memory.py`

### Other components

- **User**

## Connections

- User → Startup and login flow: starts (evidence: `main.py`)
- Startup and login flow → Credential login: calls (evidence: `main.py`)
- Startup and login flow → Command shell and dispatch: starts after login (evidence: `main.py`)
- User → Command shell and dispatch: enters commands (evidence: `main.py`)
- Command shell and dispatch → File commands: dispatches (evidence: `main.py`)
- Command shell and dispatch → Process commands: dispatches (evidence: `main.py`)
- Command shell and dispatch → Memory commands: dispatches (evidence: `main.py`)
- Command shell and dispatch → System information: dispatches (evidence: `main.py`)
- File commands → In-memory file tree: reads and updates (evidence: `filesystem.py`)
- Process commands → Process table: reads and updates (evidence: `processes.py`)
- Memory commands → Memory accounting: reads and updates (evidence: `memory.py`)
- System information → Current user state: reads (evidence: `main.py`)
- System information → Memory accounting: reads (evidence: `main.py`)
