November 22, 2026AgentsCodingOpen Source

ClawDOS: A Whole Coding Agent in 176 KB, on a 1983 PC

An 8088 at 4.77 MHz. 640K of RAM. A CGA card. And a Claude coding agent that reads your files, writes C, compiles it with Turbo C, runs it and looks at the screen. ClawDOS hit 151 points on Hacker News on Saturday, and it is the best argument yet that the harness is the small part of an agent. Site: https://ricapar.net/ClawDOS/ , repo (GPL-3.0): https://github.com/Ricapar/ClawDOS

The whole harness is HARNESS.EXE, 176 KB, a DOS program that "speaks the Claude Messages API itself": it writes the requests, parses the streamed reply, runs the tools and keeps every conversation on its own disk. "The 8088 does everything but TLS." Encryption is too much for the chip, so a bridge machine runs a tunnel that copies bytes to the API, and it can hold the API key so the key never touches the old PC.

What fits in 176 KB is the full modern checklist. Eighteen tools: read, write, edit, search, run up to twelve DOS commands per call, peek, poke and port for raw memory and I/O, a PC speaker player, and memory_list, memory_read and memory_write for notes kept in C:\MEMORY. Screenshots: a timer interrupt copies CGA video memory and the 8088 itself encodes it as a 16 KB PNG for the model to see. Safe mode is on by default: anything that changes a file, memory or a port asks "Allow ...? (y/n)" first. Prompt caching means a tool result goes up in about 500 bytes. A one-line request for a primes program gets an answer on screen 64 seconds later, 26 of them spent compiling. It also wrote a WarGames tribute, 15 KB of source, under 10 KB compiled.

Two honesty notes from the author. Every screen on the page comes from a 5160 emulated in 86Box, though a video shows the WarGames demo on the author's real machine. And "100% of this repo is written by Claude," apart from one human note. So the agent built its own tiny body.

The lesson is not nostalgia. The loop, the tool registry, the memory folder and the approval gate, the things startups pitch as platforms, compile to 176 KB on a machine from 1983. The intelligence lives on a server and the harness is a thin client. If your agent framework needs gigabytes of dependencies, this is a good moment to ask what they are for.
← Previous
LookAtMyQuant Fits Inkling 2 Mini in 5.4 GB, a Day After Release
Next β†’
OpenSRE: Somebody Still Has to Fix the Build
← Back to all articles

Comments

Loading...
>_