AI Agent News/stories/clawdos-runs-an-ai-coding-agent-on-a-1981-era-ibm-pc-xt.md

Frameworks

ClawDOS runs an AI coding agent on a 1981-era IBM PC XT

ClawDOS is an open-source AI chat and coding harness that runs natively on an IBM PC 5160 with an 8088 processor at 4.77 MHz and 640K of RAM. A TLS tunnel on a separate machine handles encryption, while the DOS program talks to the Claude Messages API itself.

Source: ricapar.net/ClawDOS

HARNESS.EXE, a 176 KB DOS program, writes the API requests, parses streamed replies, runs tools and stores every conversation as a file on the disk. The tool set includes file reads and edits, running DOS programs with optional screenshots, memory and port access, and PC speaker music, with eighteen tools in total. Claude wrote the project's code, which is about 13,000 lines of C and C++ built with Open Watcom.

The agent can compile programs with Turbo C 2.0 on the machine, run them, and capture the CGA screen as a PNG that is sent back to the model. It keeps notes in a memory directory and can resume earlier chats, and a flight recorder logs timing and token counts for each round.

The project's demos include a WarGames-style program written on the PC itself. The setup needs a Mac or Windows machine with Python 3 and an Anthropic API key, and the tunnel holds the key so it never reaches the PC's disk.

Why it matters if you build agents

Developers can see a complete agent loop with tool use, prompt caching and streamed responses running under very tight memory and bandwidth limits, which shows how much of the work can be pushed to a helper machine.

The project is GPLv3 and the source, setup scripts and docs are public, so it can serve as a reference for building a small, self-hosted client for the Messages API.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe