返回资讯中心
外部精选
软件工程
#开发者实时流

VedaOS Demo Video: A Mind-Blowing Agentic Operating System

Veda is an operating system with a voice agent built in. Say "Hey Veda,

Hacker News 最新vahmohh102026/10/14 · 2026/10/1430 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

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.

The system is written 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. Where a proven, widely used library exists, Veda uses it rather than its own: TCP/IP, TLS and cryptography (smoltcp, rustls, RustCrypto), image codecs (zune, qoi, fast_image_resize) and math (libm, glam, rand). Veda runs on x86-64 PCs and in QEMU.

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:

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.

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.

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.

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 covers the design in full: the protocols, the voice pipeline, consent, memory and testing.

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.

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.

Audio. A mixing service with echo-cancelled recording and ducking, built for the agent's conversations as much as for music.

Video. FFmpeg and dav1d, ported to Veda, decode the common formats (AV1, VP9, H.264, HEVC and more) in a sandboxed process that reaches nothing but the file it is given: a damaged file that crashes or hangs it costs a moment, not the video. Pictures come through shared memory and are shown in time with the sound, timed to the screen's refresh. See Architecture.

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.

Rust's standard library. The toolchain builds Rust from its release, with Veda among the compiler's targets: programs that use the standard library (threads, files, processes, panics with backtraces) run on Veda, where it stands on the C library. See Rust on Veda.

Screenshots

The desktop, the agent's window open and listening

Text Editor, highlighting Rust Photos, the picture library

Music, with its visualiser Files, with thumbnails

Videos, AV1 decoded by dav1d Agent Settings

GCC 16 in the Terminal Interceptor, in OpenGL ES 3.0

Every screenshot is 1280x800. They are taken in QEMU by cargo orchestration script documentation/screenshots.vts, with the agent talking to a stand-in for Deepgram. Interceptor's is taken at 1920x1200 by cargo orchestration script documentation/interceptor.vts --resolution 1920x1200 and scaled down.

Requirements

Veda is built on an x86-64 PC with Linux.

cargo orchestration doctor

Build and run

First, build the driver VM's Linux (its kernel, a cross compiler and Mesa), which takes a while. Without it, Veda boots with no keyboard, mouse, sound or network.

cargo orchestration linux

Then build and run Veda:

cargo orchestration run

This builds every component, writes target/veda/veda.img and boots it in a QEMU window at 1920x1080. The first build also renders the sample pictures, music and videos. Later builds are incremental.

Videos plays videos with FFmpeg and dav1d, which the toolchain builds (it needs nasm), with GCC for the image and Rust for Veda's target (with CMake). Build it once, in about half an hour, and the images built after it include the decoder:

cargo orchestration toolchain

cargo orchestration run --resolution 1280x800 --smp 4 --memory 2048 cargo orchestration run --cmdline "run=editor"

run=NAME starts /system/bin/NAME.exe after boot. The machine reaches the Internet through a wired card on QEMU's NAT (--net none leaves it out). cargo orchestration help lists every command and option.

cargo orchestration iso

This writes target/veda/veda.iso, a live system. To start it:

Veda runs from memory and starts no disk driver, so it never reads or writes the PC's disks. Its home directory lasts until the PC is turned off. To try the stick in QEMU first, run cargo orchestration run --live.

The stick keeps a log of every start in VEDA/LOGS, one numbered folder per start (the newest has the highest number): VEDA.TXT from Veda and LINUX.TXT from the driver VM. They are synced every second, so even a start that shows nothing can be diagnosed on another computer.

Linux's drivers in the driver VM support:

Without VT-x and VT-d, Veda drives only the disks (with VT-x alone, PS/2 keyboards and mice too). USB disks, the stick included, are left alone. Status shows how far each device class has come. To try USB input or HD Audio in QEMU:

cargo orchestration run --input usb cargo orchestration run --sound hda

Talking to Veda

Open Settings → Agent and add your Deepgram API key. The agent's name, voice, language model, listening and memory are on the same page.

Say "Hey Veda", click the ring at the right of the taskbar or press Super+Space.

Talk naturally and interrupt whenever you like. Say goodbye when you are done, and it goes back to sleep.

Veda uses the PC's microphone and speakers, under QEMU too. It speaks English only for now. Deepgram bills every minute of conversation; asleep, only the short recognitions that check for its name are billed, at most ten minutes an hour.

Agent support is part of the vui application platform. An application describes its actions, reports its state and performs actions; vui::run registers it with the agent service and answers the agent between frames:

use vui::agent::{self, Action, AppAgentInfo, Risk, Value, arg_path, arg_str, json, show_path};

impl vui::App for Notes { fn update(&mut self, ui: &mut vui::Ui) { /* ... */ }

fn agent_info(&self) -> Option<AppAgentInfo> { Some(agent::info( "A notes app: one note per file in ~/Notes.", vec![ Action::new("add_line", "Adds a line at the end of the note shown") .param("text", "string", "The line", true) .build(), Action::new("delete_note", "Deletes a note for good") .param("path", "string", "The note's file, such as ~/Notes/Ideas.txt", true) .risk(Risk::Destructive) .build(), ], )) }

fn agent_state(&self) -> Value { json!({ "note": self.title.as_str(), "lines": self.lines.len() }) }

fn agent_invoke(&mut self, action: &str, args: &Value) -> Result<Value, String> { match action { "add_line" => { self.append(arg_str(args, "text")?); Ok(json!({ "lines": self.lines.len() })) } "delete_note" => { let path = arg_path(args, "path")?; self.delete(&path).map_err(|e| format!("{} could not be deleted: {e}", show_path(&path)))?; Ok(json!({ "deleted": show_path(&path) })) } other => Err(format!("Notes has no action called {other}")), } } }

Write action descriptions for a language model: short, imperative, with units and defaults spelled out. Declare each action's risk, name its target explicitly (an approved action may run minutes later), and run it through the same code as the keyboard and mouse. Consent, memory and the conversation are the system's job, not the application's. See Making an application agent-compatible.

cargo orchestration test

This runs the libraries' unit tests on the host, then boots Veda headless with the systest integration tests (IPC, memory, threads, the file system, crash recovery of the window system, C and C++ programs). Any panic fails the run.

cargo orchestration test --ui

This adds the GUI scripts in verification/ui/ (with verification/ui/arch/amd64/, those that hold only on QEMU's PC) and the agent's scripts in verification/agent/. They click through the desktop and the applications, check logs and screenshots, and break things on purpose (Linux in the driver VM crashes, a cable is pulled, services and drivers are killed) to check that Veda recovers by itself. Scripts that need GCC or the video decoder are skipped without the C toolchain. Videos is also tested without it, with a stand-in decoder (verification/fakedec) that draws its pictures and crashes, hangs or falls behind when asked.

The agent's scripts run against a stand-in for Deepgram on the host, so they are deterministic, offline and free. They cover conversations, function calls, interruptions, echo, consent, waking by name over music and every application's actions. verification/real/ talks to the rea

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →