hn.today

ClawDOS – An AI coding agent for DOS

ricapar.net156 points50 comments
Screenshot of ClawDOS – An AI coding agent for DOS

ClawDOS is an AI coding agent designed to run directly on an IBM PC XT, using an 8088 processor, 640 KB of RAM, CGA graphics and DOS. Its creator built it as an experiment in combining vintage hardware with modern AI: Claude wrote the project, while a separate modern computer handles the TLS encryption that the XT cannot manage. The 176 KB DOS harness connects to the Claude Messages API, streams replies, saves conversation history on the PC and invokes tools to inspect and edit files, run DOS programs, access memory and ports, make music, and capture screenshots. It includes compilers and other development tools, including Turbo C, and provides persistent notes and task-specific guides so later conversations can recall past work.

Demonstrations show ClawDOS creating, compiling and running a C program on the XT, and writing a five-file WarGames tribute with missile animations, a tic-tac-toe sequence and PC-speaker or AdLib music. It can request a screenshot, encode the CGA display as a PNG on the 8088, and send it to Claude for interpretation. The interface is built for CGA, with streamed text, transcript navigation and keyboard controls; conversations can be resumed, models switched, and actions that change files or hardware require approval by default. The project also documents setup for emulation or real hardware, offers an offline mock API, and includes DOS and emulator tests.

Read on ricapar.net50 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.