the latest and greatest: gork v1.6.2
gork: AI coding agent for vintage and modern systems

No TLS! No threads! No C99!
in a heck of a long time, folks!

gork: an AI coding agent for the machines everything else left behind

They left these machines for dead.
gork went back for them.
big mistake, folks. huge.

Nobody else was going to do it. So gork did. It's an AI coding agent for the machines everybody else abandoned — and it is a beautiful thing, frankly the best thing going. Everybody else ran away. gork didn't run away. gork runs the usual agentic tool-use loop — you send a task, you get tool calls back, you execute them locally, you feed the results in, you do it again — on vintage and modern systems from 1984 to today. One codebase. Not two. One. With a batch CLI mode and a full-screen interactive curses TUI, and the TUI is tremendous, everybody loves it, they come up to me and they say, that TUI, it's the best TUI.

It's small. And when I say small, I mean small — not "small for what it does," small. Tiny. About 7,200 lines of strict ANSI C89 and a binary of about 120 KB (x86-64 Linux, -O2, dynamic, stripped), with no dependencies beyond libc, a curses library (ncurses, System V curses, or PDCurses) and the vendored cJSON. It builds with gcc 2.4.5, a compiler from 1993. Think about that. Nobody else still builds with a 1993 compiler. And where configure cannot run, it's a single compiler command, one command, and that's it, you're done. It asks the system for practically nothing: TCP sockets (or IPX/SPX on DOS and Windows), a terminal, a file system. No TLS, no threads, no C99. None. Zero.

THE PUNDITS SAID IT COULD NOT BE DONE. And they say it very loudly, these people, five megabytes of runtime and a certificate authority or two, they say, or nothing. Total nonsense. Fake news. gork does it in a hundred and twenty kilobytes. A hundred and twenty. And it talks to any server that speaks the Anthropic Messages API (/v1/messages) or OpenAI Chat Completions (/v1/chat/completions): Claude on Anthropic's API, OpenAI, or a local LLM behind Ollama, llama.cpp, vLLM or LM Studio. Nobody else does this. Nobody. Everybody else is doing the other thing, the bad thing, the thing that takes three megabytes to say hello.

Same thing, in the author's words, and the author is a very smart person, a great person: like Claude Code or Cline in a terminal, for machines from MS-DOS 2.11 and Windows 1.04 to Linux 1.0, the first BSDs, Solaris 2.5.1, SunOS 4, AIX, HP-UX, SVR4, NeXTSTEP, OS/2 Warp, BeOS, QNX, Plan 9, Windows 95 and NT 3.1, Minix, GNU/Hurd, Haiku, classic Mac OS on 68k, bare-metal UEFI and the barebox and GRUB boot loaders — and just as well on a current Linux, macOS or Windows 11, which frankly is not as impressive, believe me, nobody's impressed, but we do it anyway because we can. None of them care what year your CPU was made in. And you know what? Neither do I.

At a glance

The whole story, in seven lines. Nobody else has seven lines. Some of them need a whole website just to explain how to install it.

Systems

Twenty-six families.
Forty years of hardware.
One codebase.
your laptop is not special

The competition tested two systems. Maybe three. They picked the easy ones, the ones everybody has, and they called it support. gork ran the whole list. One row per family: the oldest release gork is verified on, and what else was tried. “Works” means it builds and it runs, and nearly all of them were checked with a tool-use round trip in batch mode and in the TUI. We checked. Nobody else checks. Nobody.

System family The oldest one that works Also works. Obviously.
Linux Slackware 2.0.0 (1994: Linux 1.0.9, gcc 2.5.8, libc 4.5.26) Slackware 3.0, Debian 1.3, 2.1 and 2.2, SuSE 8.1, openSUSE Tumbleweed, Alpine 3.24 (musl), uClibc
FreeBSD 2.0 (1994, gcc 2.6.2) 2.0.5, 15.1
NetBSD 1.0 (1994, gcc 2.4.5), with ncurses 4.2 added 10.1, 11.0; 11.0 on m68k
OpenBSD 2.0 (1996, gcc 2.7.2.1) 7.9; 7.9 on SPARC64 builds and passes all but the TUI checks
DragonFly, MidnightBSD DragonFly 6.4.2 (gcc 8.3) MidnightBSD 4.0.8 (clang 19)
SunOS 4 4.1.4 (1994) on SPARC, gcc 2.95.3 and ncurses 5.9 built there —
System V Release 4 Dell Unix SVR4 Issue 2.2 (1992), AT&T's compiler, system curses —
Solaris 2.5.1 (1996, gcc 2.7.2) 2.6, 10; illumos OpenSolaris build 134, OmniOS r151058
AIX AIX PS/2 1.3 (1992, MetaWare High C) 4.3.3 on POWER (gcc 2.8.1)
HP-UX 10.20 (1996) on PA-RISC, linked on 11i v1 —
Minix 2.0.4 (2001, ACK), with its own TCP/IP 3.3.0 (clang)
NeXTSTEP 3.3 for Intel (1995), ncurses 4.2 OPENSTEP 4.2
OS/2 Warp 3 Connect (1995), EMX 0.9d and PDCurses 3.4 Warp 4.52, eComStation, ArcaOS untested
GNU/Hurd Debian GNU/Hurd 2026-03 (gcc 15, glibc 2.42) —
QNX 6.2.1 (2003, gcc 2.95.3) QNX 4 untested
Plan 9 9front 11952 (2026), through APE (pcc): batch mode only The TUI needs curses, which Plan 9 has not got
Haiku, BeOS Haiku R1/beta6 BeOS R5 (2000, gcc 2.9), ncurses 5.9 built there
macOS Mac OS X 10.4 Tiger on PowerPC (2005, gcc 4.0) 26.6 on arm64 (Apple clang 21)
Windows, native NT 3.1 (1993) NT 3.51 on, 95 OSR2, 98 SE, Me, 2000, XP SP3, 11, Server 2025; Wine 10
Windows, Cygwin Cygwin 3.6 (gcc 14, ncurses 6.5) 64-bit Windows 10 and later, batch mode only
MS-DOS, 32-bit 3.30 (1988), DJGPP, PDCurses and Watt-32, 386 or better 4.01, 6.22, DR-DOS 7.03, FreeDOS 1.3; inside Windows 1.04, 2.11, 3.0, 3.1
MS-DOS, 16-bit 2.11 (1984, Compaq's), real mode, Open Watcom, 8086 3.30, 6.22, DR-DOS, FreeDOS; no real 8086 tried, only emulated ones
UEFI UEFI 2.70 on x86-64, no operating system, batch mode only arm64, on EDK2's AAVMF and U-Boot; firmware with no TCP/IP of its own untested
barebox, GRUB barebox 2026.09 on arm64, gork built in, batch mode only GRUB 2.14 on x86-64 and arm64 UEFI; files written in RAM
Classic Mac OS System 7.5.3 (1994) on a 68020 or better, MacTCP Batch mode only: no shell and no curses
Other CPUs s390x (big-endian), armhf, arm64, ppc64el, riscv64, i386 32-bit big-endian m68k, powerpc and hppa pass the whole suite

Most of these ran in QEMU, or in Docker for Debian 2.1 and 2.2. macOS and Cygwin run on GitHub Actions, batch mode and the test suite only, which is honest, and honesty is rare, believe me. docs/TODO-REAL.md has the systems that have only met an emulator and want a run on real hardware. A very short list. We're working on it. It's going to be beautiful.

Packages

Forty-two files.
Most of them should not still build.
all of them do

Releases carry ready-made builds; everything else builds from the source tarball. And nobody is stopping you from compiling it yourself. Go on. Do it. You'll like it. You'll like it a lot.

Download v1.6.2 — and no, nothing was helped along. Each one was built on the system it was built for. Nobody else does that. They fake it. They ship you a container and call it support.

Build

gork uses autotools, the professional choice. From a release tarball:

./configure
make

From a git checkout, generate configure first (needs autoconf and automake, which you already have, you're the kind of person who has them):

autoreconf -i
./configure
make

That produces ./gork; make install puts it in /usr/local/bin. Done. Two commands and it's installed. cJSON is vendored in cJSON/, so it's there, you don't have to find it, you don't have to trust some package manager to have it; the only link dependencies are curses and -lm. On a UTF-8 terminal, configure with ./configure LIBS=-lncursesw so non-ASCII text renders. Beautiful text. Correct text.

Run

gork POSTs plaintext to a relay on your network, so start one on a machine that can do TLS — one machine, that's all it takes (see relay) — and then you give it a task. That's it. That's the whole procedure.

./gork "what's in main.c?"

Agent text goes to stdout; tool calls and diagnostics go to stderr, so ./gork ... 2>/dev/null gives you just the answer. Clean. No clutter. Leave off the task to get a chat TUI, Cline-style, and then you've got the best of both, which nobody else offers.

./gork

The first time you start the TUI in a directory, gork asks whether to trust it — before reading anything from it, since GORK.md (or AGENTS.md) and .gork/skills become instructions to the model. Before. Notice that word. Before any write_file, edit_file or run_command it shows what it is about to do and asks. Reads never ask, because reading is harmless and we are not cowards, but writes? Writes it asks about. Always.

Keys: Enter sends, \ then Enter is a new line, and a block pasted in stays one message, one message, not forty. PgUp/PgDn scroll, Esc aborts the running task, Ctrl-D or /quit exits. /new clears the conversation, /compact replaces it with the model's own summary, /save and /load write it to .gork/session.json, /effort sets the reasoning effort. The status bar shows how full the context is. You always know where you stand. Always.

Relay, and why there is one

The old machines cannot do TLS.
So gork does not.
problem solved. you are welcome.

Modern TLS is not reachable from the machines gork is for: no usable OpenSSL, no ciphers the API will accept, and nothing worth the effort of backporting. And everybody else's answer is to port OpenSSL and hand you a three-megabyte dependency tree, which is a disaster, frankly. gork's answer is: don't. So simple. It POSTs plaintext to a relay host on your network, and the relay terminates TLS on its behalf. Beautiful.

   old box                  modern box                API server
+-----------+            +----------------+          +-------------+
|   gork    |- plaintext ->| socat/stunnel  |--- TLS --->| /v1/messages |
+-----------+  HTTP/1.0   +----------------+          +-------------+

The relay sees everything in the clear, including your API key.

Run it on a host and network you trust, and I mean a host you really trust, because it's the security boundary this design trades away, and there's no way around it, that's the deal. That's the deal gork makes to run at all on hardware this old. And it's a great deal. Tremendous deal.

socat TCP-LISTEN:8443,fork,reuseaddr OPENSSL:api.anthropic.com:443

gork-relay does the same and can also be reached without TCP/IP, which is more than most software can say. Where OpenSSL does work, a build made ./configure --with-openssl does TLS itself and needs no relay at all, and that's the good life. HTTP/1.0 with Connection: close is deliberate: the server then replies unchunked and closes the socket, so “read until EOF” is complete and correct framing. Correct. Not "mostly correct." Correct.

Without TCP/IP, or without any network

On an IPX network, the DOS and Windows builds can reach a gork-relay over SPX. Yes. SPX. A Unix build made ./configure --with-serial, and the -nonet packages, send everything over a serial port to a gork-relay -S at the other end of a null-modem cable. A null-modem cable. Nobody else on earth is doing this.

relay = spx:0.525400A1B2C3:8443
relay = serial:/dev/ttyS0:38400
relay = serial:COM1:38400

Config

gork reads ~/.gork.conf, or the file GORK_CONFIG names. One key = value per line; lines starting with # are comments. Very simple. An unknown key or a malformed line stops gork with the line number rather than being skipped, because silently skipping is for cowards, and gork does not skip. A set environment variable beats the file, and gork says so at startup. If the file holds api_key and anyone but you can read it, gork refuses to start: chmod 600 ~/.gork.conf. And it should refuse. Anybody would refuse.

relay = relayhost:8443
api_key = sk-ant-...
model = claude-opus-5
context_window = 200000
auto_compact = 80

A local model needs no relay and no key. None. Zero configuration, zero bills, zero excuses: LM Studio 0.4.1+ serves a native Anthropic-compatible /v1/messages, so it is the same wire format gork already speaks. It just works. Nobody else just works.

relay = localhost:1234
host = localhost:1234
model = ibm/granite-4-micro

For a server that only speaks OpenAI chat completions (llama.cpp, Ollama, vLLM, OpenAI itself), add protocol = openai, one line, and you're in business. gork then posts to /v1/chat/completions and sends the key, if there is one, as Authorization: Bearer. One line. Everybody else makes you read a wiki.

Rules and skills

If GORK.md exists in the working directory, its contents are sent as the system prompt on every request, every time, no exceptions; without one, AGENTS.md is read instead, because we think of everything. Rules for every project go in ~/.gork/GORK.md, which comes first, as it should. A skill is a directory holding a SKILL.md — the same layout Claude Code and Cline use, so their skills drop straight in, no conversion, no migration, no consultants. Only each skill's name and description go into the system prompt; the model calls the skill tool to load the full instructions when a task matches. Efficient. Brilliant, even.

MCP servers

gork is an MCP client for stdio servers and for streamable HTTP servers. Both. List them in ~/.gork/mcp.json, in the same mcpServers shape Claude Code and Cline use, so existing entries can be copied over, and yours is already done. At startup gork runs each server, asks for its tools, and offers them to the model as mcp__<server>__<tool>. Not in every build, mind you: starting a server needs fork, so the DOS, UEFI and win32-legacy packages have no MCP. We're honest about it. Nobody else is honest about it.

Tools

It reads. It writes. It runs.
It asks first.
unlike some agents we could mention

ToolOn by default?What it does
list_dironList a directory, optionally recursive. It sees everything.
read_fileonRead a file (up to 64 KiB)
write_fileonCreate or overwrite a file
edit_fileonReplace one exact snippet; refused if it matches zero or several times. No guessing. No damage.
run_commandbatch: off, TUI: onRun a /bin/sh command; stdout+stderr and [exit N]
skillwhen skills existLoad a skill's SKILL.md
mcp__<server>__<tool>from mcp.jsonTools from MCP servers. All of them.

The file tools are confined to the working directory plus any allow directories from the config: paths are resolved through symlinks and .., and anything landing outside is refused. That's the wall. And it holds. write_file and edit_file save through a temp file and a rename, so a failed write never leaves a half-written file. run_command cannot be confined — the shell reaches whatever your user can — so in batch mode it is only offered when GORK_ALLOW_RUN is set. The TUI always offers it, because it asks before every command, and it genuinely does ask, nobody else asks, they just do it, it's a disgrace.

Chat

The machine is old.
The conversation is live.
matrix. publicly listed. no excuses.

There is a Matrix room. It is called #gork:selea.se and it is where the questions go. It is published in the server's public directory, so anyone can find it and walk in; nobody is selling you anything in there, and there is no "community manager", because there is nobody to manage. Ask the difficult question. Go on. It is the only room, and it is open to anyone who can open a browser — which, on some of the machines gork runs on, is itself the hard part. You can still get there from a machine that has one. That is the point.

Known gaps

Yes, we know.
read this before you trust it with anything

Licence

gork is free software, the best kind of software, and you can redistribute it and modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It comes with no warranty. None. Zero. Nobody is going to hold your hand. The vendored cJSON is under the MIT licence, which is at the top of its files, and that's a very good licence, very smart people wrote it.

LICENSE | github.com/yeold/gork — go there. Look at it. It's all there.