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.