What happened
- The author built an AI coding agent named ClawDOS to run on an original IBM PC 5160. This computer uses an 8088 processor running at 4.77 MHz and has 640 KB of random access memory (RAM).
- The system was created as a personal experiment to blend vintage hardware with modern AI capabilities. The author notes that 100% of the code was written by the AI model Claude, except for the explanatory text.
- The project aims to see how far an AI can push its own limits when building software under strict, old-fashioned constraints. It also tests if the AI can build tools that then build other things.
How it works
- Users type CLAWDOS at the DOS prompt to start a conversation with the AI. The main program, HARNESS.EXE, is a 176 KB file that handles the chat and file operations.
- The DOS computer cannot handle secure internet connections directly, so it uses a bridge PC. This second computer manages the secure connection to the AI service while the old PC does the work.
- ClawDOS can read and edit files, write code, and compile programs using Turbo C. It can also run these programs and view the results on the screen.
- The system saves conversation history and state on the local disk. This allows it to pick up where it left off if the computer is turned off and restarted.
Performance and features
- In one test, the AI wrote a program to list prime numbers below 100. It compiled and ran this code in 64 seconds, with 26 seconds spent on the build process.
- The AI can create complex graphics and sound, such as a tribute to the 1983 film WarGames. This demo includes a vector world map and music played through the PC speaker.
- ClawDOS can capture screenshots of the screen as PNG images. It sends these images to the AI so the model can see what the program is drawing.
- Text scrolls smoothly without flicker, and the system uses a spinner to show activity while waiting.
Tools and safety
- The disk includes a development kit with several tools. These include Turbo C 2.0, GW-BASIC, and two assemblers called TINYASM and WASM.
- Safe mode is turned on by default to protect the system. Any action that changes files or system settings asks the user for permission first.
- Users can switch between different AI models during a conversation without losing their chat history. They can also adjust how much effort the AI puts into thinking.
- The system uses prompt caching to save data. After the first message, it only sends new information, which keeps data usage low on slow connections.
What is not stated
- The article does not say if this software is available for purchase or download by the general public. It is described as a personal project and a repository.
- The article does not provide specific pricing for the hardware or the AI API usage. It only mentions that the system is easy on slow links due to caching.
- The article does not state if the AI can run on other old computers besides the IBM PC 5160. It focuses specifically on the 8088 processor and CGA graphics.