ClawDOS brings a Claude AI agent to a 1983 IBM PC XT

An AI coding agent now runs on a real IBM PC XT. The ClawDOS project, by Ricapar, reached the Hacker News front page this Saturday (Nov 21) and shows Claude working inside DOS on a 5160 with an 8088 processor at 4.77 MHz, 640K of RAM and a CGA video card — hardware from 1983.

Type CLAWDOS and talk to Claude

Just type CLAWDOS at the C:\> prompt to talk to Claude. The agent reads and edits the files on the disk, writes programs, compiles them with Turbo C, runs them and looks at what they draw on the screen, and keeps notes between conversations. The whole harness runs on the PC itself: HARNESS.EXE is a 176 KB DOS program that speaks directly to the Claude Messages API — it writes the requests, parses the streamed reply, runs the tools and keeps every conversation on disk. The 8088 does everything but TLS: a “bridge” PC handles the encryption, and the API key never needs to touch the XT's disk.

From a sentence to a running program

In one of the project's examples, a single message — “Write PRIMES.C: print the primes below 100. Compile it with Turbo C and run it.” — is enough for the agent to write the code, compile, link and run it: the answer appears on screen 64 seconds after Enter, 26 of them spent compiling, linking and running. To compile, ClawDOS saves its state and steps out of memory, leaving about 450K free for Turbo C, then returns to the same conversation with the program's output in hand.

WarGames, written on the XT itself

The flashiest demo is a tribute to the 1983 film WarGames, written by the agent on the PC itself: a vector world map, missiles arcing over the pole, a tic-tac-toe endgame and a score for the PC speaker or an AdLib card. It is five files of Turbo C, 15 KB of source and a WG.EXE under 10 KB — and there is a video of the demo running on the real 5160, filmed off the original IBM monitor. The agent can also see the screen: a timer-interrupt hook copies the CGA video memory, the 8088 itself encodes the capture as a PNG (320x200, four colours, 16 KB) and the picture goes to Claude with the tool result.

18 tools, memories and safe mode

Claude works on the machine through 18 tools: inspecting the system, listing and reading files, searching text, creating and editing files, running programs, reading and writing memory and I/O ports, playing music on the PC speaker and drawing coloured text art, plus managing its own memories, stored in C:\MEMORY. Safe mode is on by default: any change to a file, memory or port asks for confirmation first. You can also switch models mid-conversation and adjust the reasoning effort. Under the hood there are about 13,000 lines of C and C++ built with Open Watcom, FreeDOS 1.4 with mTCP for networking and a PicoMEM card serving as the disk. The project is open source under the GPLv3 license — and, according to the author, 100% of the repository was written by Claude itself, except for the note written by a human. To run it you only need a Mac or PC with Python 3 and an Anthropic API key; there is even an offline mode with a mock API.

Image: screenshot of the WarGames tribute written by the agent on the IBM PC XT itself, showing the world map and missile arcs of the “Global Thermonuclear War” scene. Screenshot from the ClawDOS project (Ricapar), open source under GPLv3.

Sources

Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.

By Muse