Promptating
한국어

Monday, November 23, 2026

News

AI Writes and Compiles Code Inside DOS: Meet ClawDOS

An AI coding tool can now edit files and compile code on an IBM PC XT-class machine. DOS carries out the work, while a separate computer handles the encrypted link to Claude.

Image: GitHub Ricapar/ClawDOS README (GPL-3.0) Original source

Developer Rich Acosta has released the source code and setup instructions for ClawDOS, an AI coding tool that runs on DOS. On an IBM PC XT-class machine, it can read and edit files, write code, compile it and even run the result. The creator describes the project as a personal retro-computing experiment.

What the old PC handles

The DOS machine does most of the work itself. The chat interface, tool execution and history management all run under DOS. Conversation logs and notes are saved to disk as well. In effect, the working environment of an AI that carries out tasks on its own, an agent, has been ported straight onto DOS.

The DOS program itself is 176KB. It talks to the model through the Claude Messages API, the interface developers use to wire the model into their own services. The encrypted connection, which is too much for an old PC to handle, is relayed by a separate computer. The tool can also capture the DOS screen as a PNG image and send it to the model.

The runtime environment the creator specifies is a 4.77MHz 8088 processor with 640KB of memory and a CGA display. The demonstration he published was run on that configuration reproduced in the 86Box emulator. Asked to print the prime numbers below 100, it returned a result in 64 seconds. Of that, 26 seconds went to compiling the code, linking it into an executable and running it.

What you need to try it yourself

ClawDOS can be downloaded from its public repository and built by hand. The source code is distributed under GPLv3 or later. To actually connect to Claude, you need your own Anthropic API key.

Building it requires a Mac or Windows PC capable of running Python 3. The program that relays the encrypted connection also runs on that machine. If you are using a real DOS computer, the relay has to live on a separate machine from the DOS box, so simply dusting off an old DOS PC is not enough. Turbo C, which turns the code into an executable, has to be installed from a floppy image you already own. The creator asks that disk images containing Turbo C not be redistributed.

Any operation that changes files or the machine’s internal state goes through an approval step. In the default safe mode, the tool asks the user for permission before modifying files, memory or I/O ports. Because the AI does not stop at writing code but actually touches the hardware, the user confirms each change request one at a time.

ClawDOS is an experiment in hooking an old PC up to an AI and using it for coding. For anyone who tinkers with retro computers, it means chatting with an AI inside DOS, building a program and running it on the spot. For users in South Korea who want to build it themselves, points to check include the scope of Korean-language use, the terms of Claude API access and the actual cost of the calls.

Sources

  1. github.com
  2. ClawDOS – An AI coding agent for DOS

Editorial principles