Can an AI coding agent run on an IBM PC XT?
An AI coding agent now runs on an IBM PC XT, a machine that shipped in the early 1980s. The project, called ClawDOS, runs entirely on the original hardware: an Intel 8088 processor at 4.77 MHz, 640K of RAM and a CGA graphics card. Users type CLAWDOS at the C:\> prompt and start a conversation with Claude, which can then work on the machine's files and programs.
The developer built the project for fun. In the project notes, the author describes a childhood spent on the family's first personal computer, an IBM PC that was already outdated by the time they were old enough to use it. The author still owns that machine and a collection of vintage hardware, including a fully upgraded IBM PC 5160. The author says the goal was to see how far an AI coding agent could be pushed under constraints far removed from modern computing. The author also wanted to know whether the agent could build tools that build other tools.
The core program, HARNESS.EXE, is a 176 KB DOS application. It writes the requests to the Claude Messages API, parses the streamed replies, runs the tools the model asks for and saves every conversation to its own disk. Each conversation is stored as a file in the API's own message format, so a chat cut off by a power loss can be reopened.
How does ClawDOS reach the Claude API from a vintage PC?
The one part the PC cannot do is encryption. The 8088 is not powerful enough to handle the TLS layer that secures modern web traffic, so the project relies on a "bridge" computer. A tunnel program running on a Mac or Windows PC copies data between the XT and the API's secure endpoint. The tunnel can also hold the API key, which means the key never has to be stored on the vintage machine's disk.
In a demonstration described in the project documentation, a single message asked ClawDOS to write a program that prints the prime numbers below 100 and to compile and run it with Turbo C. The agent read a guide to the compilers installed on the machine, wrote the source code, then compiled, linked and ran the program in one tool call. The answer appeared on screen 64 seconds after the user pressed Enter. About 26 of those seconds went to compiling, linking and running.
The agent has also built a tribute to the 1983 film WarGames. The program draws a vector world map, shows missiles arcing over the pole, includes a tic-tac-toe endgame and plays a score through the PC speaker or an AdLib sound card. The project documentation says the tribute uses five files of Turbo C source, about 15 KB in total, and compiles to an executable under 10 KB. A video of the demo running on the real 5160 has been posted to YouTube.
ClawDOS can also look at its own screen. A timer-interrupt routine copies the CGA's video memory at a chosen moment, the 8088 encodes the image as a PNG file and the picture is sent to Claude along with the tool result. The documentation includes an example of a 320-by-200 image in four colors, about 16 KB in size, that the agent analyzed.
What can the ClawDOS agent do on a DOS machine?
The agent has 18 tools. They let it list directories, read and search files, edit text in place, run DOS programs and batch files, read and write memory and I/O ports, play PC speaker music and display colored text art. A separate set of tools lets the agent save and retrieve its own notes in a memory folder on the disk, so it can pick up earlier work in later conversations.
Safety features are built in. Safe mode is on by default, and any action that changes a file, a memory entry or a port requires the user to approve it first. Users can turn safe mode off with a function key. The harness also includes a flight recorder that logs time to first token, upload and download sizes, and token counts for every round of conversation.
Users can switch between AI providers without losing a conversation. The project says any host that supports the Messages API will work. Users who want to run it need a Mac or Windows PC with Python 3, an Anthropic API key and, for the Turbo C compiler, their own floppy images. The developer notes that disk images containing Turbo C should not be redistributed.
The project is licensed under the GNU General Public License, version 3 or later. It builds on mTCP, FreeDOS, Open Watcom, the PicoMEM storage card, 86Box and DOSBox-X, all of which the project credits. Instructions for running it on real hardware, including a PicoMEM microSD card that emulates a hard drive, are included in the documentation.
Este artículo fue escrito con la asistencia de IA.
News Factory APP - noticias agénticas para impulsar tu SEO y AEO.