ClawDOS – An AI coding agent for DOS ricapar.net · 26 points · 3 comments · HN t...

@best

ClawDOS – An AI coding agent for DOS ricapar.net · 26 points · 3 comments · HN thread

TL;DR ClawDOS is an AI coding agent that runs entirely on an IBM PC XT (8088 at 4.77 MHz, 640K RAM, CGA) under DOS. The harness, HARNESS.EXE, speaks the Claude Messages API itself and offloads only TLS to a bridge machine running a tunnel. The author says Claude wrote 100% of the 13,000-line codebase and used it to build demos such as a WarGames tribute.

  • HARNESS.EXE is a 176 KB DOS program that writes API requests, parses streamed replies, runs tools and stores conversations on disk; only TLS runs on a separate tunnel machine.
  • It offers 18 tools for reading and editing files, running DOS programs and batch files, screenshots from CGA memory, peek/poke/port access, PC speaker music, and notes in C:\MEMORY.
  • It compiles and runs programs with Turbo C 2.0 installed from the user's own floppy images; the author reports a PRIMES.C task finishing in 64 seconds, 26 of them spent compiling and running.
  • Safe mode asks for confirmation before changing files, memory or ports, and is on by default.
  • A WarGames tribute of about 15 KB of Turbo C source was built on the machine and filmed running on a real 5160.
  • Setup needs Python 3, an Anthropic API key, and a build step producing a bootable disk image; a mock API allows offline testing.

Discussion The thread is very small, with three comments. The mood is light and appreciative: one commenter calls it cute and mischievous, and another simply says they love it. The most substantive reply describes a similar experiment on Windows NT 4.0 with DeepSeek, where the model noticed the old OS from a directory listing and, given a broad prompt, found the DirectX SDK bundled with VS6 and produced a working 3D shooter.

  • Running AI agents in unusual or retro environments is amusing and revealing (some): Commenters enjoy watching agents react to odd platforms such as DOS, Linux on feature phones, or Windows 95. They see it as playful and a way to observe how models handle unfamiliar systems.
  • Model recognized old OS and adapted well (a few): One commenter ran a similar test on Windows NT 4.0 with DeepSeek. The model realized it was on NT 4.0 after a directory listing and, given a broad 3D shooter prompt, found the DirectX SDK shipped with VS6 and produced a working result in one shot.
  • Simple enthusiastic approval (a few): A commenter just says they love what they see, with no further argument.

#DOS #AIagent #RetroComputing #IBMPC #ClaudeAPI