Repository navigation
1 Overview
Relevant source files
CadenzaOS is a 64-bit bare-metal operating system written from scratch in Zig 0.16.0 for x86-64 hardware README.md1-7 Unlike traditional Unix-derived systems, CadenzaOS integrates behavioural intelligence directly into the kernel as a first-class citizen README.md7-9 The kernel continuously monitors system telemetry via src/kernel/conductor.zig, flags command velocity anomalies, and maintains execution security via src/kernel/composer.zigREADME.md19-30
Diagram: High-Level Kernel Architecture

Sources: README.md37-69docs/LAYOUT.md14-65src/kernel/kernel.zig1-51
The repository is structured around a clear separation between low-level boot handling, architectural memory and interrupt management, CodaFS storage, and behavioural analytics. The codebase isolates hardware abstractions in src/kernel/ while hosting user-facing programs and test binaries under userland/.
Diagram: Storage Layout and Disk Mapping Entities

Sources: docs/LAYOUT.md12-65README.md42-51
-
Getting Started and Build System — How to build and run:
build.shmodes (ci/run/clean), toolchain prerequisites, disk image layout,version.ziggeneration, and QEMU/Bochs launch instructions. For details, see Getting Started and Build System. -
Kernel Configuration and Global State —
config.zigconstants (disk LBAs, block size, buffers,CommandID,SystemPolicy, scheduler/timer tuning), along withglobals.zigandboot_info.zigruntime pointers. For details, see Kernel Configuration and Global State. -
Project Governance and Contributing — Contribution workflow, development principles, project roadmap, licensing details, issue templates, and
docs/folder contents. For details, see Project Governance and Contributing.
Sources: README.md1-101docs/LAYOUT.md1-134src/kernel/kernel.zig1-192
- Overview
- Getting Started and Build System
- Kernel Configuration and Global State
- Project Governance and Contributing
- Boot and Early Kernel Initialization
- Bootloader Stages and Linking
- kmain Boot Sequence
- Splash Screen and Branding
- Interrupts, Scheduling, and Syscalls
- IDT, PIC, APIC and IRQ Stubs
- Scheduler and Task Lifecycle
- System Call Interface
- Demonstration Tasks
- CodaFS Filesystem and Storage
- On-Disk Format and Operations
- Space Manager and Block Devices
- Binary Format and Program Loading
- Shell, Terminal, and Display
- Shell Command Pipeline
- Terminal, Input Devices and Prompts
- Display: VGA, Framebuffer, Console and Serial