It was time for me to seriously start experimenting with an AI agent. I had been waiting for the perfect project to utilize it, and after I found it and applied a series of steps, everything worked as expected.
Thirty years ago, I created an application for MS-DOS that served as a visual (ASCII) editor for the forms and maps used in COBOL applications running on IBM3270 (CICS and MVS) mainframes. At that time, there was nothing like it. Think of it as a FrontPage for HTML, but for COBOL and BMS/MFS (the specific macro languages).
I developed the application, named MDF (Map Designers' Facility), using C and many native MS-DOS calls for video and keyboard manipulation, without using ncurses or similar libraries; just a simple widget and windowing system in all its 80x25, 16-color glory.
For years, I believed I had lost the source code for MDF until I recently discovered it on an old SATA hard disk. Using a SATA-USB adapter to connect to macOS and a UTM Debian VM to read the ext4 filesystem was quite an adventure by itself.
The plan was to use an AI agent to port MDF from a massive MSC 6.0 codebase, originally written for direct hardware access in MS-DOS, to a modern C toolchain with ncurses for portability. The target OS was Linux (running inside macOS in UTM, of course). This task would have taken me at least a week, and considering I was the original author.
As a Gemini user and fan, for this task I chose to use Antigravity. The steps involved were extensive, including rewriting deprecated C structures, porting old MSC includes to gcc, remapping video memory and keyboard access to ncurses, and replacing ASCII graphical designs with ncurses equivalents.
At the end, I wrote zero code. My only role was to click "Run" when prompted. The agent iterated on running "make" until the error count reached zero, resulting in the first compiled build. Although it initially segfaulted, Gemini didn't even blink: fixed it, ran it again. Done. All in 2 hours.
And after 30 years, I was able to see my beloved MDF running again! 🥹
I encountered only one (big) issue: Gemini detects when it could run a custom-made Python script to automate some of its tasks (which also saves tokens). For two times in a row, the script failed spectacularly, emptying ALL the files in the repositories instead of just modifying them; it was funny looking at the Agent running clueless, trying to find the files and eventually restoring the disaster from the git repository.
Side note: the whole development experience was also completely frictionless, even with my exotic setup: the codebase was inside a Linux VM running in macOS (via UTM). As I started the Antigravity IDE from macOS, it somehow detected that I was already running VSC connected in ssh to the Linux VM, and it just went and connected as well. It then knew exactly what to do, running command-line tools from within its integrated terminal and even suggesting "apt-get install" sequences.
Originally posted on LinkedIn.