TannX OS GitHub

The wish log

From a 16-bit boot sector to a desktop that asks a model.

Every milestone below plants a fir in the forest behind this page. The notes come from docs/HISTORY.md, which keeps the reasoning and the mistakes; the three entries marked wish are the wishes typed into the running OS and harvested with make wishes. Most later work came from the roadmap and the previous version's documented limitations.

Timeline

  1. v0.1 – v0.72026 · the 16-bit kernel

    One file, real mode, no libc, no DOS underneath.

    AgentOS starts as a 16-bit real-mode kernel in agentos.S. v0.3 replaces the BIOS with its own VGA text driver, v0.5 makes agents the core (spawn, task, a scheduler in the timer interrupt), v0.6 brings its own keyboard and ATA drivers and AgentFS on disk sectors, v0.7 a 16550 serial console and the first automated test over COM1.

  2. v0.8protected mode

    A second, complete kernel: agentos32.S.

    GDT, an IDT built at runtime, PIC remap, the last BIOS call before the jump. The 16-bit kernel stays beside it for a while; one test.sh tests both.

  3. v0.9multitasking

    Every agent becomes a real thread.

    The timer interrupt preempts and distributes the CPU round-robin; each agent gets a 4 KB stack and a synthetic frame. The shell is thread 0 and stays usable while agents compute.

  4. v1.0paging

    A memory fault kills only the culprit.

    Identity mapping of the first 32 MB, page 0 deliberately unmapped. The #PF handler reads CR2 and decides: an agent is shot down and its task marked ERROR; the shell long-jumps back to its prompt. dump 0 is caught.

  5. v1.1ring 3

    Agents move to userspace, behind INT 0x30.

    Full privilege separation: user code and data segments, a TSS, two stacks per agent, and exactly one DPL-3 gate. hlt, cli and port I/O from ring 3 now cost an agent its life.

  6. wish2026-06-06"UEFI boot support"

    A hand-written PE32+ loader, no compiler.

    agentos-uefi.S loads the kernel from the ESP, calls ExitBootServices and descends from long mode to protected mode; the full shell runs under OVMF. Found on the way: firmware hands over with CR0.WP=1, which made the kernel's U=1/W=0 trick fault recursively. v1.5 adds the framebuffer console with its own 8×16 font.

  7. wish2026-06-07"make the wish loop work on bare metal"

    Hybrid stick, medium marker, a NIC in pure assembler.

    One image boots BIOS and UEFI; the AGENTOS-MEDIUM marker protects foreign disks; wishes come back over COM1 (wish-bridge) or as netwish over UDP through an RTL8139 driver. With that, wish works on a diskless real machine too.

  8. wish2026-06-08"build me space invaders" · via netwish from the test PC

    The first wish through the acknowledged return channel.

    v1.31: 32 aliens marching as a block, bombs, one bullet, win and lose. Fixed in the same session as prerequisites: the RTL8168 receive wedge (v1.28), the symmetric STATUS/ACK channel (v1.29) and acknowledged netwish with retry (v1.30).

  9. v1.9 – v1.11first boot on silicon

    The segment-nulling triple fault QEMU had hidden.

    spawn math rebooted the real Haswell test PC. A real CPU NULLs DPL-0 data segments on the first return to ring 3; QEMU never did. Fix: load the target ring's segments before the iret. Also: an e1000 driver, a help pager, and PXE network boot so the dev loop no longer needs the stick.

  10. v1.52 – v1.57AHCI

    A storage driver written blind, verified over the wire.

    The test PC exposes SATA only through AHCI. The driver reported its own registers over UDP from a machine without screen or keyboard: port 4, link up, an ATAPI DVD drive – and then the model string and "no media" from a real SCSI round-trip.

  11. v1.92 – v1.95USB

    The keyboard echo bug: one clobbered register.

    The EHCI HID driver saw every key, nothing echoed. The periodic USB poll, called from the idle loop, clobbered EDI – the shell's line-buffer pointer. One pushal/popal pair.

  12. v2.41 – v2.472026-06-11 · one session

    The wish loop goes live, then literal.

    A spinlock closes the SMP claim race. llm <text> goes out as a ring-3 HTTP POST over the OS's own TCP stack. An AC97 driver so the headless gate can assert sound. The script engine turns every shell command into a statement. Then llmscript: the model answers with nothing but TannX commands, the OS stores them through the single disk-write door and runs them. Live: "find the 100th prime and celebrate with a beep" – 541, and a beep.

    v2.47 found that the harvest had been reading the wrong sectors for about 70 versions. All three host-side readers healed.

  13. v2.60diskless autopilot

    A protective refusal that blocked the headline feature.

    On the PXE-booted test PC diskon refused, because the only disk was a foreign Linux install. Now it arms RAM-backed slots instead: nothing persists across reboots, the foreign disk is never written, and a real model wrote a script into RAM slot 7 that the OS executed (count 1..100 = 5050).

  14. v2.74SMP

    smpon becomes opt-in.

    A faulting application processor boot-loops real hardware, so the kernel never wakes the other cores on its own. QEMU keeps gating an explicit -smp 4 smoke path.

  15. v2.872026-11-10 · first public release

    TannX OS goes public.

    Formerly AgentOS, then AgentForest OS. Kernel in one GNU-assembler file, agents as first-class citizens, the wish loop with a 49-suite headless QEMU gate, the desktop and fourteen apps, BIOS/UEFI/PXE boot, verified on a Haswell desktop and a dual-socket Xeon Gold server. Boot images for BIOS, UEFI and a hybrid USB stick on the download page.