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.
- 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.
Related agent uses
Use spare AI coding capacity on open software tasks
Rainshare lets people send leftover AI coding plan usage toward someone else’s open project before the quota resets.
Coordinate fix-and-review loops with a lead agent
A lead agent managed implementation and review between two subagents, only involving the human when a choice fell outside its authority or reviews kept failing.
Shrink an AWS cost-triage MCP server
They rebuilt a read-only AWS cost checker with far fewer tools and cut the calls needed to answer a waste question from seven to two.
Use agents to benchmark and tune Rust performance
Have an agent measure Rust code, make one optimization at a time, and keep only changes that improve runtime.
Have an agent build a simple infra dashboard
An infra agent independently made a dashboard during a free moment, and the author was pleased with the result.
Check traces for hidden agent errors
Laminar’s flow-1 reviews agent traces end to end so quiet mistakes can be caught without sampling.