Retrieved article excerpt
Open article Β· Retrieved 2026-10-12T11:24:11.809687+00:00
# Veda: The Agentic-Native Operating System
Veda is an operating system with a voice agent built in. Say "Hey Veda,
switch my wallpaper to the dunes" and it does the work in any application,
through the same code as your keyboard and mouse. It asks you first before
anything that is hard to undo.
Everything is written from scratch in Rust and lives in this repository:
the UEFI bootloader, a capability-based microkernel, the system services,
the window system, the toolkit and the applications. A few mature crates
provide TCP/IP, TLS and cryptography (smoltcp, rustls, RustCrypto). Veda
runs on x86-64 PCs and in QEMU.
[The Veda desktop, with the agent's window open and listening](https://github.com/vahmoh25/Veda/blob/main/docs/images/desktop.png)
## Why agentic-native
Operating systems were designed for a person at a keyboard. An assistant
added later has to read the screen, imitate clicks or use the few
applications that have an API, and the system cannot hold it to anything.
In Veda, the agent is a first-class user of the system:
- **Part of the system.** The agent is a system service, started at boot
and restarted if it fails. It sleeps until you say its name, click the
ring on the taskbar or press **Super+Space**.
- **Native in every application.** Applications declare their actions
(typed parameters and a risk level) and report what they show as JSON.
The agent calls those actions, which run the same code as the keyboard
and mouse: no screen scraping, no simulated clicks. The built-in
applications offer more than 70 actions.
- **Consent enforced by the system.** Every action is *routine*,
*sensitive* or *destructive*. The agent service, not the language model,
holds the last two until you allow them. Only the desktop shell can
answer (`init` tells every service which program is calling), so
nothing the agent reads in a document can approve anything.
- **Real context.** Each conversation starts with the time, the open
windows, every application's actions, what the agent knows about you
and how your last conversation ended. Before acting, it reads the
applications' current state.
- **Memory you control.** It remembers only what you tell it plainly (your
name, the people in your life, how you like things done), never its own
guesses. The memory stays on your computer, and Settings shows and
forgets any part of it.
- **Voice first.** You can interrupt it at any time. Echo cancellation and
an echo gate keep it from hearing itself, and other sound drops 20 dB
during a conversation. Asleep, it listens with a voice detector that
runs locally, so no audio leaves the computer while nobody speaks.
- **The intelligence is a setting.** Speech recognition, the language
model and the voice come from Deepgram's Voice Agent API, with the audio
opted out of Deepgram's model improvement. The model (OpenAI's
gpt-4.1-mini by default), the voice and even the agent's name are
chosen in Settings.
## How the agent works
1. **Listening.** Asleep, the agent runs a voice detector on the computer.
Speech it hears goes to Deepgram's recogniser, with the agent's name as
a key term. A sentence that starts or ends with the name ("Hey Veda, β¦",
"β¦, Veda?") wakes the agent, and the rest of the sentence is its first
request.
2. **Conversation.** Waking opens a Deepgram Voice Agent session with the
agent's instructions, context and functions. Deepgram handles
turn-taking, the language model and the voice; Veda's audio service
carries the sound both ways.
3. **Action.** The model calls the agent's 17 functions (windows, files,
volume, Wi-Fi, wallpaper, notifications, timers and reminders, memory,
the system and its programs) and, through `use_app` and `read_app`,
every application's actions and state. Each call returns a structured
result.
4. **Consent.** A call that needs your OK waits in the agent's window, or
in a notification, saying exactly what will happen and to what. It runs
only if you allow it within three minutes. Sensitive actions can be
allowed for good; destructive ones are asked about every time.
[The agent](https://github.com/vahmoh25/Veda/blob/main/docs/AGENT.md) covers the design in full: the protocols, the
voice pipeline, consent, memory and testing.
## The operating system
- **Microkernel.** `vkernel` handles only isolation, scheduling, memory
and IPC: capability handles with rights, channels that carry messages
and handles, VMOs, events, futexes and interrupt objects. It supports
SMP with x2APIC, tickless timers and XSAVE.
- **Supervised services.** Drivers, the file system, the window system,
audio, networking and the agent are user-space processes. `init`
restarts the window system, the shell, audio, networking and the agent
if they crash, so the desktop comes back on its own.
- **Linux's drivers in a VM.** Veda drives only its disks (virtio-blk,
AHCI, NVMe). Linux drives everything else in the *driver VM*, on Veda's
own hypervisor (VMX with EPT, no emulated hardware). Devices go to it
whole, their DMA confined and their interrupts remapped by Veda's IOMMU
driver. A crashed driver takes down only the VM, which Veda resets and
restarts. See [the driver VM](https://github.com/vahmoh25/Veda/blob/main/docs/DRIVERVM.md).
- **Desktop.** A compositing window manager with server-side decorations,
shadows, animations, snapping and an Alt+Tab switcher with live
thumbnails. It composes on the GPU with Intel graphics and on the
processor elsewhere; once Linux drives the display, every frame is
flipped whole at the vertical blank. The shell has a taskbar, a
searchable start menu, desktop icons, a calendar and notifications.
- **Toolkit.** `vui` is an immediate-mode toolkit: widgets, menus,
dialogs, vector icons and anti-aliased text in Inter and JetBrains Mono.
Every `vui` application is agent-compatible.
- **3D graphics.** OpenGL ES 3.0 with GLSL ES 1.00 and 3.00, in Rust
(`vgl`, `vglsl`), every call checked as the specification requires. It
renders on the GPU through Mesa in the driver VM (Intel's iris; virgl on
the host's GPU under QEMU), or on a multi-threaded software renderer.
*Interceptor* shows it off, full screen: a bay city with its traffic,
physically based lighting, shadows, bloom and 4x multisampling.
- **Networking.** A network service with IPv4 and IPv6, DHCP, DNS, TCP,
UDP and ICMP, and a Wi-Fi service that joins WPA2, WPA3 and open
networks with management frame protection, remembers them, reconnects
and roams. Linux's drivers only move frames and never see a password.
Applications get TLS 1.3 and 1.2 from `vtls`, with certificates checked
against Mozilla's roots. See [Networking](https://github.com/vahmoh25/Veda/blob/main/docs/NETWORKING.md).
- **Audio.** A mixing service with echo-cancelled recording and ducking,
built for the agent's conversations as much as for music.
- **Storage.** The home directory has its own disk. It is saved half a
second after changes stop, alternating between two checksummed slots,
so an interrupted save never damages the previous one. The agent's
memory and key live in a private directory that only the agent can
open.
- **C and GCC.** The image includes GCC 16, binutils and musl: write a C
program in the Terminal, compile it and run it, in QEMU or on a PC. C
programs are static executables whose system calls go to `vposix`, a
POSIX layer in Rust. A cross compiler also builds C and C++ programs
for Veda on the development machine. See [C on Veda](https://github.com/vahmoh25/Veda/blob/main/docs/C.md).
## Applications
Every application is agent-compatible: what you can do with the mouse and
keyboard, the agent can do too.
| Application | What it does | What the agent can do |
| --- | --- | --- |
| **Text Editor** | Tabs, syntax highlighting (Rust, C, TOML, Markdown), find and replace, word wrap, zoom, unlimited undo. | Create, open, read and write documents; find and replace, undo, save; save as or discard changes (with your OK). |
| **Photos** | A thumbnail library of `~/Pictures` and a viewer with zoom, rotation, full screen and slideshows; PNG, JPEG, BMP and QOI. | Show, zoom and rotate a picture, go full screen, run a slideshow, set a picture as the wallpaper. |
| **Music** | A library of `~/Music` (QOA and WAV), cover art, a live spectrum visualiser, seeking, shuffle and repeat. | Play a song by name, pause, stop, skip, seek, shuffle, repeat, set the volume. |
| **Files** | Places, breadcrumbs, list and icon views with thumbnails, search, copy and paste, properties, and a Trash that restores items where they were. | Open, search, make folders; copy, move, rename and delete to the Trash (with your OK); restore; empty the Trash (asked every time). |
| **Terminal** | A shell with about fifty built-in commands (files, processes, `wifi`, `ping`, `curl`, ...), history and tab completion; runs C programs and GCC with pipes, redirections and Ctrl+C. | Run a command (with your OK), read its output, interrupt it. |
| **Task Manager** | Processes with CPU and memory use, "end task" and live performance graphs. | List processes, read the graphs, end a program (asked every time). |
| **Settings** | Wallpapers, the agent (key, name, voice, models, listening, memory, permissions), networks and Wi-Fi, the display and the system. | Open a page, change the agent's voice and speaking rate; rename it or change its model (with your OK). Never the key. |
| **Interceptor** | Police pursuits through a bay city in OpenGL ES 3.0: eight missions, quick chases and patrols, by day, at sunset, at night and in the rain, with synthesised engines, sirens and music. | Start a mission, a chase or a patrol; pause, resume, restart or quit; change the sound, units, camera and display. |
## Screenshots
| | |
| --- | --- |
| [The Text Editor showing a Rust program with syntax highlighting](https://github.com/vahmoh25/Veda/blob/main/docs/images/editor.png) | [Photos showing a library of eight pictures](https://github.com/vahmoh25/Veda/blob/main/docs/images/photos.png) |
| Text Editor, highlighting Rust | Photos, the picture library |
| [Music playing a song, with cover art and a spectrum visualiser](https://github.com/vahmoh25/Veda/blob/main/docs/images/music.png) | [Files showing pictures as thumbnails, with the Trash in its sidebar](https://github.com/vahmoh25/Veda/blob/main/docs/images/files.png) |
| Music, with its visualiser | Files, with thumbnails |
| [The Terminal, where GCC names an undeclared variable in a C program](https://github.com/vahmoh25/Veda/blob/main/docs/images/gcc.png) | [Interceptor: a chase at sunset on a road through the trees of the hills](https://github.com/vahmoh25/Veda/blob/main/docs/images/interceptor.png) |
| GCC 16 in the Terminal | *Interceptor*, in OpenGL ES 3.0 |
Every screenshot is 1280x800. They are taken in QEMU by `cargo xtask script docs/screenshots.vts`, with the agent talking to a stand-in for
Deepgram. Interceptor's is taken at 1920x1200 by `cargo xtask script docs/interceptor.vts --resolution 1920x1200` and scaled down.
## Quick start
### Requirements
Veda is built on an x86-64 PC with Linux.
- [Rust](https://rustup.rs), stable. `rust-toolchain.toml` makes rustup
install the extra targets on first use, and Rust's own linker
(`rust-lld`) links everything.
- [QEMU](https://www.qemu.org/download/) and the OVMF UEFI firmware (on
Debian and Ubuntu: `qemu-system-x86`, `qemu-system-gui`,
`qemu-system-modules-opengl` and `ovmf`), with access to `/dev/kvm`.
- For the driver VM: the build tools for Linux, a cross compiler and Mesa
(on Debian and Ubuntu: `build-essential`, `bc`, `curl`, `rsync`, `m4`,
`flex`, `bison`, `meson`, `ninja-build`, `libgmp-dev`, `libmpfr-dev`,
`libmpc-dev`, `python3-mako` and `python3-packaging`), and KVM's nested
virtualization (`kvm_intel nested=1`). See
[the driver VM](https://github.com/vahmoh25/Veda/blob/main/docs/DRIVERVM.md#