AI NewsDev toolsAnnouncement

ClawDOS runs Claude as a coding agent on a 1980s IBM PC

ClawDOS is a Claude-powered coding agent that runs on an IBM PC XT. It reads files, writes C, compiles with Turbo C and runs the program.

AI News

Editorial2 min read

LinkedInX
Reveneau illustration standing in for a ClawDOS repository hero

Why it mattersA reader who thinks a coding agent needs a modern machine sees a 4.77 MHz 8088 handle the loop. The 64-second round trip sets a floor on what is possible.

A coding agent on a laptop feels like the baseline. ClawDOS moves that baseline. It puts the same loop on an IBM PC from 1983 with 640 kilobytes of memory.

Ricapar published ClawDOS this week. The code is on GitHub and the Hacker News thread has 84 points. The machine is an IBM PC 5160. It has an 8088 processor at 4.77 megahertz, a CGA graphics card and 640 kilobytes of RAM. A user types CLAWDOS at the DOS prompt and chats with Claude.

What the agent does on the PC

The agent reads and edits files on the local disk. It writes programs. It compiles them with Turbo C 2.0, installed from the author's own floppy images. It runs the program and looks at what the program drew on screen.

The whole ClawDOS harness is 13,000 lines of C and C++. It is built with Open Watcom for the 8086 instruction set. The HARNESS.EXE binary is 176 kilobytes. The 8088 handles everything on the machine. TLS is the one job it does not do. A small tunnel on another machine moves bytes between the PC and api.anthropic.com on port 443.

The agent can switch models mid-session with a /model command. It keeps memory across sessions, so a program started one day can be edited the next.

The round trip and the WarGames demo

The author shows a simple primes program as the baseline. Claude read the task and wrote the code. Turbo C compiled it. The program ran on the 8088. Claude read the output. The whole round trip took 64 seconds after the Enter key. The compile, link and run inside that window took 26 seconds.

The author also asked for a WarGames tribute. Claude wrote five Turbo C files. The source is 15 kilobytes. The program draws a vector world map and arcs missiles over the pole. It plays a tic-tac-toe endgame. It feeds the PC speaker and an AdLib card. The compiled binary is under 10 kilobytes. A YouTube clip shows it running on the real 5160 hardware.

For a team building with coding agents

The news here is the floor the demo sets. The loop of read, write, compile and inspect fits on hardware three decades old. A modern machine only has to handle TLS. A team running coding agents on modern laptops has no excuse about machine class. The loop itself is the small part. The model on the other end of the tunnel is where the real work sits. That is where the budget goes.

Source

Ricapar, "ClawDOS: An AI coding agent for DOS". The ClawDOS repository is Ricapar/ClawDOS on GitHub. The Hacker News points are from the discussion at HN item 50586292.

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project