Build a DOS coding agent for an old PC

Claude made a tiny DOS tool that could talk to Claude and write code on an IBM PC XT.

Done with Custom agent· Advanced

What they did
Claude built ClawDOS, a 176 KB DOS application for an IBM PC XT with an 8088 processor, 640K of RAM, and CGA support. Since the 8088 could not manage TLS on its own, the system handed that part off to a second machine and used a tunnel to reach the Claude Messages API. The agent exposed 18 tools for working with files, starting programs, capturing screens, and saving memory notes, and it was built with Turbo C. In safe mode, it stopped for user approval before making changes.
How it went
A single request led to a working primes program in 64 seconds. Claude also created a WarGames-inspired demo on the machine. The images shown were taken from 86Box, while the demo was additionally recorded on physical hardware.
Tips
You need another Mac or Windows PC running Python 3 plus an Anthropic API key to handle the tunnel and build process. Turbo C must be sourced from your own floppy images, and approval should be required before any destructive or external action.

Try it yourself with Claude Code

I want to make a small coding agent for [retro computer, DOS machine, or limited emulator]. First, outline what the hardware can realistically handle. Then write the program in [C, Turbo Pascal, or another fit-for-purpose language] so it can take a typed instruction, send it to [model API or local model], and present the response on the screen. Before you do anything that deletes, submits, sends, or pays for something, stop and ask for my approval. Once the first version is ready, help me test it on [emulator or hardware] and confirm it can produce one successful reply.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.