ClawDOS – An AI coding agent for DOS

166 points · 52 comments on HN · read original →

Points and comments are a snapshot, not live.

ClawDOS runs an AI coding agent on an original IBM PC XT with 640K RAM.

ClawDOS is an AI coding agent that runs on an IBM PC 5160 (8088 at 4.77 MHz, 640K RAM, CGA). The 176 KB HARNESS.EXE speaks the Claude Messages API directly, handling HTTP but relying on a separate TLS tunnel. It offers 18 tools including file operations, compiling with Turbo C, running DOS programs, and capturing CGA screenshots. Claude wrote the entire codebase. A demo shows ClawDOS writing, compiling, and running a primes program in 64 seconds. It also wrote a WarGames tribute with vector graphics and PC speaker audio.

What commenters are saying

Commenters are delighted by the project, calling it creative and fun. Several share their own experiences running AI agents on old systems: one ran an agent on Windows NT 4.0 that found and used the DirectX SDK to write a 3D shooter. Another built a Tcl/Tk agent for Windows XP. A few note the lack of AI agents targeting legacy Windows (XP, 7) for debugging work. Some discuss practical concerns like sandboxing and TLS tunneling on old hardware. One commenter wonders how far modern knowledge could push DOS capabilities.