Adventures in Claude Code

Background

I started dabbling with a few AIs, and my first real project was getting an SSH server running on a clean Windows XP VirtualBox VM. The idea was pretty simple: I wanted to use VS Code from my Gentoo desktop and trigger builds on the XP VM. That is how all of this started.

I went looking for an old SSH server that would still run on Windows XP and came across KTS. KTS was last updated on 29 Jan 2011 at version 1.19c. It is old, but it had source code available and did what I needed. It was perfect for learning how to use an AI because KTS is written in C++ and I do not remember C++ from my past. What I did remember was I did not like using it. Using a few of the simpler AIs, I eventually got KTS compiling with Open Watcom V2 (OWV2) and working correctly on XP. Getting there turned into a bigger project than I originally expected.

KTS depends on cryptlib, so part of getting KTS building with OWV2 also meant getting the old cryptlib 3.3.3 source compiling with OWV2. Once that was working, I had a functioning SSH server again. But at that point I really didn’t want to stop with “it builds.” KTS was using a very old version of cryptlib along with a number of custom patches. What I really wanted was to update KTS to work with the current version of cryptlib and get rid of as many of those old KTS-specific cryptlib changes as possible. so it would be easier to just drop in a newer version of cryptlib.

That turned into quite a bit more work, but eventually everything was compiling and working. The resulting KTS source is available here: owkts. That repository includes the cryptlib library and DLL required to build and run KTS. If you also want to rebuild cryptlib itself with Open Watcom, those sources are here: cryptlib_ow.

Around this time, I switched to Claude Code, which honestly changed my perspective on what AI-assisted development could accomplish. I run Claude Code directly from the terminal on my Gentoo system, but more importantly, I began creating build environments that it could access and interact with.

Build Environment

I now have buildbot accounts on a clean Windows XP VM running KTS and on a clean ArcaOS 5.1.2 VM running OpenSSH. Getting SSH working correctly on ArcaOS was a pain, but once it was working it gave me another real target system that I could remotely build and test against. I also installed DOSBox on the Gentoo system for DOS builds.

The following image lays out the current build environment. It starts with my Gentoo desktop which is a System76 Thielio Mira which is able to handle all the VMs and more. The source is located on a Synology NAS share mounted by the desktop. All the VMs and emulators share the desktop NAS share. The stable source is stored in my self-hosted Gitlab instance. If a project is open, I it is set to mirror to Gitlab.com.

What started as “I want VS Code to trigger a build on an XP VM” eventually turned into something much more interesting. Given the go-ahead, Claude can build and test software after being given instructions. It can modify source code, invoke the appropriate Open Watcom build, examine compiler errors, make corrections, rebuild, and continue iterating. My role is mostly reviewing the results, testing the output, and feeding it additional information when needed.

I now have a Gentoo development machine that can remotely reach clean Windows XP and ArcaOS environments, along with a local DOS environment. Claude Code can modify the source, run the appropriate Open Watcom builds, see the compiler errors, make corrections, rebuild, and continue working through the problem. That is where my opinion of AI-assisted development really started to change. And once I had that infrastructure working, I started wondering just how far I could take it.

The Next Milestone: Jwasm and Jwlink

Now that all of this was working, I wanted something more substantial to test against. I looked at UASM and JWasm in combination with JWlink and eventually settled on JWasm/JWlink. JWasm was written by Japheth (Andreas Grech) as a MASM-compatible assembler derived from the Open Watcom assembler (WASM). UASM grew out of it as a separate fork.

JWasm is an open-source, MASM-compatible x86 assembler derived from the Open Watcom assembler (WASM). It converts assembly source code into object modules such as OMF, COFF, and ELF, and supports DOS, OS/2, Windows, and Linux targets across 16-, 32-, and 64-bit environments. Its companion linker, JWlink, is a fork of the Open Watcom linker (WLINK). Together they form a compact toolchain that works well with older MASM and Open Watcom projects while still supporting modern x86-64 targets.

The short version is that I simply turned Claude loose and let it work. I pulled in additional test cases and had it compare the output from older assemblers against JWasm and JWlink. As problems were found, it would make changes, rebuild, and test again. The final major test was building rxDOS 7.1.5, the last MASM-based release of rxDOS.

By this point, the infrastructure was doing exactly what I had hoped it would do. Claude would upload source code to the appropriate VMs, perform builds, create executables, and run tests across DOS, Windows XP, ArcaOS, and Linux. In other words, it was exercising software across essentially the same operating systems supported by Open Watcom itself. The result was jwasm_ow and jwlink_ow. I originally created them for my own use, but they are available for anyone who finds them useful.

Another unexpected benefit was documentation. Once the AI had spent days working through a code base, build scripts, compiler errors, and test results, documenting the project became dramatically easier. Instead of starting with a blank page, I could ask questions about design decisions, trace code paths, summarize changes, and generate first drafts that were already grounded in the actual source code and build process.

This was also the point where I started viewing AI as something more than a code generator. Generating code is useful, but having an AI that can build, test, compare results, examine failures, and then document what it learned is a very different experience. It begins to look less like autocomplete and more like a junior developer with an enormous amount of patience.

The Current Rabbit Hole

So, I have this neat build environment, an actively maintained compiler in OWV2, and the tweaked Jwasm/Jwlink. What is next?

How about an interoperability and software preservation study of the OS/2 MPTN networking DLLs, undertaken to better understand their behavior and to enable continued maintenance using modern toolchains such as Open Watcom V2? No original source code will be used. Any reconstructed source would be derived solely from analysis of the released binaries and publicly available documentation. Sounds like fun, so off I go…

What did I find that I did not know? Well, IBM pulled in a lot of available code from BSD and I think BIND 8, put in some of their stuff, and sold it for big money. Also, there are bugs in the DLLs that had to have been there probably for a very long time. I guess I thought that IBM started everything from the ground up, but it makes sense.

So, hypothetically if it worked, I might have tcpipdll.dll, so32dll.dll, tcp32dll.dll, and tcpip32.dll rebuilt, heavily tested and running for days on my ArcaOS 5.1.2 VM all built with Open Watcom V2.

Again, hypothetically, if the effort resulted in a fully usable replacement implementation, would IBM care? I honestly do not know. OS/2 has been effectively abandoned for decades, and the goal here is not to reproduce or distribute IBM source code. The goal is software preservation, interoperability, and keeping old systems usable. Whether anyone would object is a question for lawyers, not programmers.

I think these types of questions are going to come up more and more in the future.

Conclusion for Now

I am, for the most part, an AI believer. What I have been able to accomplish in just a few weeks has, in my opinion, saved me years of effort. At least in my experience with Claude Code, AI has proven to be a significant productivity multiplier.

I can see both sides of the debate. As a hobbyist programmer, I find AI incredibly useful, but I can also see how it could encourage a lazy, hands-off approach to software development. Generating a few lines of C code is one thing. Having an AI work against the actual compiler, libraries, operating system, and build environment that the software must ultimately run on is something entirely different. That is where the real productivity gains begin to appear.

In some ways, the current state of AI reminds me of my interest in and restoration of antique furniture. I spend time studying furniture from roughly 1900 to 1910, a period when furniture manufacturing was transitioning toward mass production. By modern standards, it was hardly mass production at all, but it represented a dramatic shift from the traditional craftsman model.

The Arts and Crafts movement arose, in part, as a reaction to these changes. Critics feared that machinery would replace craftsmanship, lower quality, and remove the human element from the work. Some of those concerns were justified, yet mass production also made furniture more affordable and accessible to people who previously could not have owned such pieces.

Looking back more than a century later, craftsmanship did not disappear. Handmade furniture still exists and is highly valued, but the industry itself was transformed. AI may ultimately follow a similar path, as so many disruptive technologies have throughout history. It is unlikely to eliminate skilled programmers, but it will almost certainly change how software is created and who is able to create it. The debate we are having today may, in retrospect, look very similar to the debate craftsmen were having when factory-made furniture first began appearing in workshops and showrooms.

For that reason, I understand much of the initial resistance to AI. New technologies often provoke concerns about quality, authenticity, and the future of skilled work. Yet AI is improving at a remarkable pace, and its practical utility is becoming increasingly difficult to ignore. Even many of its early skeptics now seem more interested in understanding where it can be applied responsibly than in arguing that it should be avoided altogether.

Whether AI ultimately proves to be as transformative as the assembly line, the personal computer, or the Internet remains to be seen. What seems increasingly clear, however, is that it is not going away. The more productive question is no longer whether AI should be used, but how it can be used responsibly, effectively, and without losing the craftsmanship and critical thinking that gave the work value in the first place.

So, do you think the punch card gurus were just as upset about being replaced?

Leave a Reply