Back to list

ClawDOS

An AI coding agent that runs on a real IBM PC XT — an 8088 at 4.77 MHz, 640K of RAM, and a CGA card.

Faye Linden
Author
@Faye Linden
Project ShowcaseDeveloper ToolsOnline
0
0

Project intro

ClawDOS is an AI coding agent for DOS — built entirely by Claude, and running on a real IBM PC XT: an 8088 at 4.77 MHz, 640K of RAM and a CGA card. Type CLAWDOS at the C:\> prompt and talk to Claude: it reads and edits the files on your disk, writes programs, compiles them with Turbo C, runs them and looks at what they draw on the screen. It reached Hacker News' front page in November and already has 32 stars.

The whole harness is one 176 KB DOS program that speaks the Claude Messages API itself — it writes the requests, parses the streamed replies, runs the tools and keeps every conversation on its own disk. The 8088 does everything except TLS, which a small bridge machine handles. It has eighteen tools: reading and searching files, writing and editing, running DOS programs, peeking and poking memory and ports, PC speaker music, and its own notes in C:\MEMORY.

It really works: asked to write a primes program, compile it with Turbo C and run it, the answer was on the screen 64 seconds after Enter. On the XT itself it wrote a WarGames tribute — a vector world map, missiles arcing over the pole, tic-tac-toe, music for the PC speaker — five files of Turbo C, 15 KB of source. It even sees the screen: a timer hook copies the CGA's video memory, the 8088 encodes it as a PNG, and the picture goes back to Claude with the tool result.

Honest limits: you need an IBM PC XT or an emulator, a second machine for the TLS tunnel, and your own Anthropic API key — and everything runs at 1983 speed, so a build takes a minute, not a second. Safe mode is on by default: anything that changes a file, a memory or a port asks first. Free and open source under GPL-3.0 — 13,000 lines of C and C++, with 31 boot tests in DOSBox-X.

Actions

Visit project URL

Tech stack

c

Project info

Project category
Developer Tools
Project status
Online
Collaboration intent
None

Comments (0)

ME
0/1000
Loading comments...