ClawDOS – An AI coding agent for DOS
124 points by Ricapar 11 hours ago | 37 comments
jtxt 2 hours ago
Very cool. It would be interesting to see how far it can take demo scene type projects that stretch the hardware. See this project and prompt for ideas: https://github.com/Noniv/abyssal-garden. But the harness is competing for the same resources, so perhaps better from a distance/ to a vm?
replyfsiefken 3 hours ago
I'd like a freepascal, zig or odin coding agent that can run natively on a pentium3 with 1G ram natively on either cpu or gpu - on dos, freebsd or linux at > 10 t/s.
can this conceivably be done and how?
Gemini says it can be done.
replyI also think the ai compression algorithms focus on PPM, BWT or CM as these take less cpu and memory then Tr and LSTM https://mattmahoney.net/dc/text.html
Tiberium 9 hours ago
It feels very cute and mischievous to start agents in unusual environments (DOS, Linux running on a feature phone, Windows 95, etc) and see how they react :)
replyunleaded 9 hours ago
Yep, I've made one in win32 earlier this month for that exact reason. It's always amusing seeing DeepSeek's CoT realise it's running inside NT 4.0 once it does a directory listing. It handles it pretty well too, I gave it a intentionally broad prompt to "write a 3d shooter game" pretty much, and it went and found the DirectX SDK that comes with VS6 and oneshotted it.
replyshashanoid 4 hours ago
Man the first thing that came to my mind was. From this stage if we ask AI to self build to current windows OS or Mac level. I can't help but put this fake scenario in my mind that imagine if we had this back in the day.
replyahofmann 4 hours ago
SCNR: Could someone please rewrite this in Go and call the result Gla(w)DOS?
replydrob518 2 hours ago
Old and busted: Running Doom on every piece of old/tiny gear.
replyNew hotness: Running an AI agent on every piece of old/tiny gear.
fg137 4 hours ago
Does this prove that Claude Code doesn't have to be shipped as 200MB binaries?
replyrelistan 3 hours ago
This is great. Love to see people pushing the boundaries on vintage computers.
replyshevy-java 8 hours ago
Making DOS great again!
replyFinally it can outperform TempleOS.
Someone should rewrite the old Lemmings game with AI as well.
[0] https://psicode.ai/
https://github.com/FMXExpress/PasClaw/
For seriously older stuff, I'd run the disk image in a VM.
If they interact with legacy systems and/or virtualizing is no option and/or they have no internet access, a simple USB-to-COM adapter can create wonders. I remeber doing that on a win3.1 machine using TERMINAL.EXE many many years ago.
The agent session manager talks to the LLM gateway over HTTP using a standard internal protocol, then the gateway has adapters for each upstream provider and translates between their external API format and the standard internal one.
The tool server is a separate jar running as a separate server process with its own systemd unit and the agent session manager talks to the tool server over a beanstalkd queue. The primary motivation for having 2 processes was total separation for unprivileged agent tool call execution (ie. the tool server systemd unit runs as a user with no sudo whereas the agent session manager can execute as root, so the user can run scripts through the interface that do things like install packages and access secrets, but the agent can't do that.
The tool server could just as easily be talking to beanstalkd over a Cloudflare tunnel or ssh port forward, though, and a session could be routed to different machines, allowing execution of tool calls in different environments within the same context window/agent session.
https://github.com/kristopolous/old-agent
I've used it on plenty of old things.
I'd probably do a pure .vbs version if it was windows or a static pure win32 exe.
I took the same path with my for-fun/learning GUI coding agent in Tcl/Tk: https://wiki.tcl-lang.org/page/Featherweight. It shells out to curl for the networking.
I've just tried to get it running on Windows XP SP3. (I have a VM for an old Canon all-in-one printer.) I grabbed a legacy Tcl 8.6.6 installer from https://github.com/dbohdan/tcl86-nsis-installer (mine) and a 2017 build of curl with certificates from https://winampplugins.co.uk/curl/. The harness was developed against curl 8 and didn't work with curl 7.53.1. MiMo-V2.6-Flash, running in the same harness on modern Linux with Wine for `curl.exe`, found that the necessary change was minimal and only touched `--write-out`:
Here are two screenshots of the result. Featherweight is running in Tcl 8.6.6 on Windows XP.https://paste.dbohdan.com/1ng3b5y-kb4yd/greenshot-1.png https://paste.dbohdan.com/1ng3b5y-kb4yd/greenshot-2.png
It would not make a whole lot of sense to me.