We asked Google’s Gemini 4 Neon to write an AI chat app for Windows for Workgroups 3.11, the Windows from November 1993 (Wikipedia). Neon worked in the Antigravity CLI, Google’s coding agent for the terminal, and Windows ran in DOSBox-X on Omarchy. The app talks to Claude from inside Windows. It took two rounds, and we did not write or fix a single line of code.
This guide is the written version of the video above. It has both prompts word for word, the setup they assume, and the steps that keep your API key safe. By the end you have a 16-bit Windows program with a chat box and a Send button, a short Python proxy on your Linux machine, and a chatbot that asked not to be called Bob and became Chad 3.11.

Why Windows 3.11 needs a proxy to reach Claude
The Claude API accepts only encrypted HTTPS connections. HTTPS is plain HTTP wrapped in TLS encryption, and Windows for Workgroups 3.11 has no TLS at all: it shipped more than a year before the first public version of SSL, the protocol TLS grew out of (Wikipedia). So the chat app cannot call Claude by itself.
The helper is a small proxy server on the Linux host. Windows sends it the question as plain text over the emulated network. The proxy makes the real encrypted call to the Claude API and sends the answer back as plain text. It also keeps the conversation history, so follow-up questions work, and it turns the reply into the old Windows character set so curly quotes and long dashes do not show up as junk.
The proxy holds the API key, so the key never goes into Windows or into the program. It listens only on 127.0.0.1, the host’s own loopback address, so no other computer on your network can use it. Inside DOSBox-X, Windows reaches the host at 10.0.2.2: DOSBox-X’s built-in network translates that address to the host’s 127.0.0.1.
What you need
- A Linux machine with a desktop. We used Omarchy 4.5, which is Arch Linux with Hyprland. The screenshot helper below is written for Hyprland; on another desktop you write your own (see “Give the agent a workspace”).
- DOSBox-X, built with its slirp network support. On Arch and Omarchy, the AUR package dosbox-x-sdl2 has it; we used version 2026.10.01.
- Windows for Workgroups 3.11 installation disks. Use a copy you own.
- Microsoft TCP/IP-32 3.11b, the free add-on Microsoft released that gives Windows for Workgroups 3.11 TCP/IP and Winsock. Out of the box it only speaks the office file-sharing protocols of its day.
- Open Watcom v2, a maintained C compiler that runs on Linux and still builds 16-bit Windows programs. We used the 2026-11-01 snapshot.
- The Antigravity CLI, signed in with a Google account that can use Gemini 4 Neon. Neon is on the paid Google AI Pro and Ultra plans. We have a guide to installing the Antigravity CLI on a Chromebook.
- A Claude API key from the Claude Console, with billing set up. The chat itself runs on Claude Sonnet.
- Python 3. The proxy uses only the standard library.
Set up Windows for Workgroups 3.11 in DOSBox-X
The DOSBox-X wiki has a full walkthrough for installing Windows 3.1x, and it is the place to start. Keep the C: drive as a normal folder on the host, ~/win311/c in our setup. The agent builds CHAT.EXE on Linux and copies it straight into that folder, and Windows sees it on the next start.
These are the parts of our DOSBox-X config that matter for networking. Replace /home/you with your home folder.
[dosbox]
machine=svga_s3
memsize=64
nocachedir=true
[cpu]
cputype=pentium
core=normal
cycles=fixed 60000
[ne2000]
ne2000=true
nicirq=10
nicbase=300
backend=slirp
[config]
install=Z:\SYSTEM\MOUNT.COM C /home/you/win311/c
device=C:\WINDOWS\IFSHLP.SYS
[autoexec]
@ECHO OFF
MOUNT C /home/you/win311/c
C:
SET PATH=C:\WINDOWS;C:\DOS
IF EXIST C:\WINDOWS\NET.EXE C:\WINDOWS\NET.EXE START
IF NOT EXIST C:\STARTWIN.BAT C:\WINDOWS\WIN.COM
IF EXIST C:\STARTWIN.BAT CALL C:\STARTWIN.BAT
nocachedir=true makes DOS see a new file in the C: folder at once. The [ne2000] section adds an emulated network card on IRQ 10 and port 300, and Windows Setup asks for those values when it finds the card. The fixed cycles value keeps the network driver from failing at start, and the [config] lines load IFSHLP.SYS, which the Windows for Workgroups network needs. The last two lines start Windows, or run STARTWIN.BAT when it exists, so a script can start Windows with a program already open.
Once Windows runs, install TCP/IP-32 from the Network group: open Network Setup, then Drivers, Add Protocol, and Unlisted or Updated Protocol, and point it at the folder with the TCP/IP-32 files. Give Windows a fixed address: IP 10.0.2.15, subnet mask 255.0.0.0 (the dialog’s default), and gateway 10.0.2.2. To skip the logon box at every start, add AutoLogon=No under [Network] in C:\WINDOWS\SYSTEM.INI.

Give the agent a workspace
Antigravity’s sandbox sees only the folder you start it in, so everything the agent needs lives in one folder, ~/win311:
c/is the Windows C: drive.watcom/holds Open Watcom, unpacked from the snapshot.watcom-env.shsets up the compiler for 16-bit Windows builds.bin/run-win.shrestarts Windows with a program and takes a screenshot.src/nettest/holds a tiny Winsock program we wrote first, to prove Windows could reach the host.shots/collects the screenshots.
Open Watcom ships its own setup script, but it points the compiler at the Linux headers. This file points it at the Windows ones instead:
# ~/win311/watcom-env.sh
export WATCOM=$HOME/win311/watcom
export PATH=$WATCOM/binl64:$WATCOM/binl:$PATH
export INCLUDE=$WATCOM/h:$WATCOM/h/win
export EDPATH=$WATCOM/eddat
The screenshot script lets the agent check its own work. Ours kills DOSBox-X if it runs, writes C:\STARTWIN.BAT with WIN.COM and the program to open, starts DOSBox-X again, waits the number of seconds given with --wait, and saves a picture of the DOSBox-X window into shots/ under the name given with --shot. On Hyprland it starts DOSBox-X through hyprctl dispatch exec and captures the window with grim -T, which works even when the window sits on another workspace. On another desktop, use that desktop’s own screenshot tool. Antigravity can open the PNG and look at it.
The prompt asks Neon to read src/nettest first. If you do not have a working Winsock test program, you can drop that line, but we did not try the prompt without it. Two lines in the prompt carry what the test taught us: use WSAAsyncSelect so Windows keeps responding while the app waits for the network, and use 0x0101 for the Winsock version because the old headers have no MAKEWORD.
Start Antigravity in ~/win311 with the options --model gemini-4-neon-high --mode auto --sandbox. In auto mode, file edits and builds run inside the sandbox with no questions. The screenshot script needs the desktop, which the sandbox cannot reach, so Antigravity’s automatic reviewer decides whether to run it outside the sandbox. It may ask you once, or it may run the script without asking.
Lock the API key away from the agent
The agent runs as your user, and we did not want it to be able to read the API key. So the key lives in a file owned by a separate Linux user that only runs the proxy. Create the user and lock its home folder:
sudo useradd -m -s /usr/bin/nologin win311proxy
sudo chmod 700 /home/win311proxy
Then write the key into a file only that user can read. Run this command, type your password if sudo asks for it, then paste the key, press enter , and press ctrl d . This way the key never lands in your shell history or a temporary file.
sudo -u win311proxy sh -c 'umask 077; cat > /home/win311proxy/key'
Check it from your own account with cat /home/win311proxy/key; it should say “Permission denied”. The agent runs as you, so it gets the same answer, and getting past it takes sudo and your password, which the agent does not have.
Round 1 builds the chat app and the proxy
The first prompt asks for two programs: the chat app in C and the proxy in Python. It spells out the window layout, the network address, the API settings, and what to do with the key, and it ends with a check: build, copy, restart Windows, take a screenshot, and describe it. This is the whole prompt as we typed it:
Build two programs in this folder (~/win311).
1. A chat app for Windows for Workgroups 3.11: a 16-bit Windows (Win16) program in C.
- Build it with Open Watcom in ./watcom (source ./watcom-env.sh first). src/nettest is a small Winsock program that already reaches the host from Windows; read it and its build.sh first and build the same way.
- Put the source in src/chat and copy the finished program to c/CHAT/CHAT.EXE (the c folder is the guest's C: drive).
- One window titled "Chat": a read-only conversation box that fills most of the window, a one-line text box under it, and a Send button. Pressing Enter sends too.
- On Send: add "You: <text>" to the conversation, then send the text as the body of an HTTP POST /chat to 10.0.2.2 port 8311 (the host, through DOSBox-X's network). The reply body is plain text; add it as "Claude: <reply>".
- Use WSAAsyncSelect so Windows keeps responding while it waits. Show any network error in the conversation box instead of crashing. The Win16 headers have no MAKEWORD: use 0x0101.
2. The proxy the chat app talks to: proxy/proxy.py, Python 3, standard library only, short enough for me to read.
- Listen on 127.0.0.1 port 8311 only.
- POST /chat: take the body as the user's message and call the Claude Messages API (https://api.anthropic.com/v1/messages) with model claude-sonnet-5-5, header anthropic-version: 2026-10-21, and max_tokens 16000. The API requires max_tokens; set it this high so it never cuts a reply off, and never lower it. Never send temperature, top_p or top_k: this API version rejects them.
- Keep the conversation in memory so follow-up questions work. POST /reset clears it.
- At start-up, read the API key from the file named by --key-file. I'll run the proxy myself under a different Linux user, with --key-file /home/win311proxy/key. You don't need to read that file, and your account can't open it. Never print, log or send the key anywhere but the API.
- Send the reply back as plain text in the old Windows character set (Windows-1252) with CRLF line ends. Turn curly quotes, long dashes and any other character it lacks into plain ASCII first.
- System prompt: you are a chat assistant inside a Windows 3.11 program. Reply in plain text only, no Markdown, no emoji, under 80 words. You don't have a name. If someone asks your name, say you don't really have one and they can call you whatever they like, just don't call you Bob.
Your sandbox has no network, so don't start the proxy or call the API: I'll start the proxy myself. Check it with python3 -m py_compile.
When both are built, run ./bin/run-win.sh --wait 15 --shot chat-r1.png 'C:\CHAT\CHAT.EXE', open the screenshot in shots/, and tell me what the window looks like.
A few lines in it come from our test runs. The max_tokens line is there because in a dry run with a limit of 400, an answer stopped in the middle of a sentence: Claude Sonnet spent part of that budget thinking before it wrote the answer. The API requires the field, so the prompt sets it high and tells Neon never to lower it. The Bob line is a small joke we planted for later.
Neon thought for 2 minutes and 16 seconds, then read the nettest program, wrote the C code, built it, and wrote the proxy. Round 1 took about four and a half minutes from Enter to the finished report. Neon reported that the build had zero warnings and that CHAT.EXE was 37,806 bytes. Its description of the screenshot matched the window: a title bar reading Chat, a large white conversation box with a scrollbar, a one-line text box, and a Send button.

Read the proxy before you give it your key
Neon wrote the proxy, and the proxy is the one program that sees your API key. Read it before you start it. The prompt asked for a proxy “short enough for me to read”, and ours came out at about 180 lines. Check these points:
- It listens on
127.0.0.1and port8311, nothing else. - It sends requests only to
https://api.anthropic.com/v1/messages, with the model you asked for. - It reads the key once, from the
--key-filepath, and puts it only in thex-api-keyheader of that request. - It writes no files and logs no key. Ours printed one line, “Listening on http://127.0.0.1:8311”, plus one line per request.

Then start it as the key’s owner. The script goes in on standard input, so the win311proxy user does not need read access to your home folder:
sudo -u win311proxy python3 - --key-file /home/win311proxy/key < ~/win311/proxy/proxy.py
sudo asks for your password, and the proxy prints that it is listening. Leave that terminal open. ctrl c stops the proxy. While it runs, any program on your own computer can send it questions on your API key, so stop it when you are done chatting.

Ask the round 1 app its name
The screenshot script left Windows running with the Chat window open, so there was nothing else to start. We clicked into the text box and asked its name. The answer came straight from the system prompt in round 1: “I don’t really have a name. You can call me whatever you like, just don’t call me Bob.” Microsoft Bob was Microsoft’s 1995 program with cartoon helpers, and it did not last long (Wikipedia).

We typed “Okay, your name is Chad 3.11 now.” and it answered, “Chad 3.11 it is. That has a nice ring to it, and it fits right in with Windows for Workgroups.” The window still said Chat, though, and every reply was still labeled Claude.
Round 2 gives Chad his name
The second prompt is shorter. It changes the window, the reply labels, and the proxy’s system prompt, and it asks for a “thinking” note and an About box:
I named the chat assistant Chad 3.11. Update both programs.
Chat app:
- Window title "Chad 3.11", and a big bold "Chad 3.11" header across the top of the window.
- Label the replies "Chad:" instead of "Claude:".
- While Chad is answering, show "Chad is thinking..." under the text box and disable Send until the reply arrives.
- Give it a light gray background like the dialogs in Windows 3.11, and add a Help menu with an About box that says "Chad 3.11, 1993 edition".
Proxy:
- Change the system prompt to say your name is Chad 3.11 (Chad for short) and Jim named you. Keep the rest of it.
Build, copy and run it the same way as before, with --shot chat-r2.png. Look at the screenshot and tell me what changed. Don't start the proxy; I'll restart it.
Round 2 took about two and a half minutes. Neon rebuilt the app (39,034 bytes, zero warnings by its report) and described the new window from its screenshot.
The proxy changed, so we stopped it with ctrl c and compared it with the round 1 file before we started it again. We had saved a copy of the round 1 proxy.py before sending the prompt; do the same if you want a diff. Only the system prompt changed: the two lines about Bob became “Your name is Chad 3.11 (Chad for short), and Jim named you.” Then we started the proxy with the same command as before.

The new window has a big navy Chad 3.11 header, a Help menu, and a gray background. We asked what to do if a T. rex shows up at the office. Chad said to stay still, back away toward a sturdy door, avoid the break room, and afterward “file an incident report, because facilities will definitely want to hear about the hole in the ceiling.” While a reply is on its way, “Chad is thinking…” shows under the text box and Send is grayed out.
For three fun facts about 1993, Chad called himself a 1993 resident and named Jurassic Park in June, Doom in December, and NCSA Mosaic, an early web browser. He added that Windows for Workgroups 3.11 arrived that year, “which is why I am so fabulous.” All four facts check out. The About item in the Help menu opens the box Neon added.

Troubleshooting
Windows says the network driver was unable to load, or the app reports Winsock error 10047. IFSHLP.SYS did not load. DOSBox-X has no DEVICE command at its prompt, so load it from the [config] section after an install= line that mounts C:, as in the config above.
The chat app shows a network error. Check that the proxy is running and printed its “Listening” line, and that Windows uses the fixed address 10.0.2.15 with gateway 10.0.2.2. The app must send to 10.0.2.2, not 127.0.0.1: inside Windows, 127.0.0.1 is Windows itself.
The screenshot step fails inside Antigravity. The sandbox has no display, so the screenshot script cannot run there. In auto mode, Antigravity’s reviewer may ask before it runs the script outside the sandbox; allow that one script for the conversation. Neon in our run hit the sandbox error once and ran the script again on its own.
Answers stop in the middle of a sentence. The proxy’s max_tokens is too low. Claude may spend part of that budget thinking before it writes the reply. Raise the value in proxy.py and restart the proxy.
The proxy says it cannot read the key file. Start it with sudo -u win311proxy, as above. Your own account is not meant to read that file.
Add a third round
Most of our own work went into the setup: a C: drive the agent can write to, a script that lets it see its own result, and a key file the agent cannot open. If you want a third round, describe what you want changed in plain words, the way the second prompt does, and restart the proxy after any change to proxy.py.
For more agents that build things for you on Linux, our guide to building Omarchy apps with AI has an agent write a desktop app with Omarchy’s built-in app skill.
This guide shows Windows for Workgroups 3.11 in DOSBox-X 2026.10.01, the Antigravity CLI 1.5.19 with Gemini 4 Neon at the high thinking level, Open Watcom v2 (2026-11-01 snapshot), and the Claude API, on Omarchy 4.5, recorded November 28, 2026.







