A developer has managed to get an AI coding agent running on an IBM PC XT—the original 8088-based machine with 640K of RAM and a CGA display. The tool, named ClawDOS, is a 176 KB executable that operates entirely under DOS, handling code editing, compilation, and even remembering the context of past projects. It connects to Claude’s Messages API, but everything except encrypted connections is processed on the XT itself.
You launch the agent by typing CLAWDOS at the DOS prompt. From there, it can read and modify files, generate source code, compile with Turbo C, and run the binaries on the same hardware. The agent keeps notes between sessions and resumes previous conversations, turning a decades-old PC into an interactive programming environment powered by AI.
How ClawDOS builds and runs code
ClawDOS responds to prompts like Write PRIMES.C: print the primes below 100. Compile it with Turbo C and run it. It consults its guides for the available compilers, produces the source, and automates the build and execution. On the 4.77 MHz XT, the full cycle from receiving the prompt to displaying the program’s output takes 64 seconds, with the build process itself using 26 seconds. During compilation, ClawDOS frees as much RAM as possible by saving state and exiting memory, then returns with the result after Turbo C completes.
Persistent context and memory
The agent tracks the history of your projects. Each conversation is saved as a file on disk in the API’s message format. Memories (what you’ve built and discussed) and skills (shipped guides for compilers and demo effects) are stored as plain text. For example, after building a WarGames-inspired demo—complete with graphics, missile arcs, and sound—ClawDOS can later recall and extend it just by referencing it in a new chat. The agent browses these memories with the F4 key, and can resume interrupted chats after a power loss.
Real-time interaction and hardware integration
Replies are streamed as text to an 80-column CGA chat interface, word-wrapped and timed to avoid display artifacts. The transcript scrolls in hardware and navigation is mapped to PgUp and PgDn. ClawDOS can take screenshots by capturing CGA video memory and encoding PNGs directly on the 8088, sending results back via the bridge PC. It supports multiple development tools: Turbo C 2.0, Bruce’s C, GW-BASIC, TINYASM, WASM, and lDebug, all proven to work on the original hardware. Music playback through the PC speaker and text art in colour are also supported.



