ClawDOS: An AI Coding Agent for IBM PC XT
ClawDOS is a specialized AI coding agent designed to operate within the constraints of an original IBM PC XT (8088 processor at 4.77 MHz, 640K RAM). By offloading TLS encryption to a modern bridge PC, the system allows a vintage machine to interact directly with the Claude Messages API, enabling it to write, compile, and run C code using Turbo C, as well as manage files and perform system tasks.
Architecture and Operation
The system consists of a 176 KB DOS program, HARNESS.EXE, which manages the user interface, API communication, and tool execution. Because the 8088 processor lacks the resources for modern TLS encryption, the harness connects to a "bridge" PC via plain HTTP. This bridge acts as a tunnel, handling the secure connection to the Anthropic API.
ClawDOS provides the model with 18 specialized tools, including:
- File Management:
read,search,edit,delete, andmkdir. - Execution: A
runtool that executes DOS programs and captures output. - System Interaction:
peek,poke, andportfor direct hardware access. - Memory: A persistent
C:\MEMORYdirectory where the agent stores notes and state between conversations.
Capabilities and Performance
ClawDOS demonstrates that modern AI agents can function effectively on extremely limited hardware. When tasked with writing and compiling a program, the agent can perform the entire lifecycle—writing source, invoking the compiler, and executing the binary—in approximately one minute. The system also supports screen introspection; by using a timer-interrupt hook, the agent can capture a screenshot of the CGA display, encode it as a PNG on the 8088, and send it to the model for analysis.
For complex tasks, such as the included "WarGames" demo, the agent manages multiple source files, handles memory-resident state, and utilizes CGA palette tricks. The agent maintains a "flight recorder" log (CLAWDOS.LOG) that tracks performance metrics, including time-to-first-token and API latency, proving that the system is efficient enough for slow network links.
Community Reception
Discussion surrounding ClawDOS on Hacker News highlights the creative intersection of vintage computing and modern AI. Community members noted the irony of the "new hotness" being the deployment of AI agents onto increasingly archaic hardware, mirroring the long-standing tradition of "running Doom" on every available device.
"Seriously speaking, I feel the market is sorely lacking an Agent for the large number of existing devices running WinXP, Win7, and the like. Not for developing on them, but for all kinds of debugging work it would be very useful."
Others pointed to the potential for optimizing legacy system configurations:
"This can maybe optimize config.sys/autoexec.bat memory usage."
Technical observers also questioned whether the project's lightweight implementation suggests that modern AI coding tools could be significantly more efficient than current industry standards:
"Does this prove that Claude Code doesn't have to be shipped as 200MB binaries?"
Getting Started
ClawDOS is open-source and available on GitHub. To run it, users require a modern machine (Mac or Windows) to act as the TLS tunnel and an Anthropic API key. The project provides scripts to build a bootable disk image (CLAWDOS.IMG), which can be used with emulators like 86Box or on real hardware via a PicoMEM card.