DEV Community

Qingfeng
Qingfeng

Posted on

GAL: a single-binary AI agent runtime that is kernel-sandboxed by default

Most "AI agent" projects you can try today want you to pip install a tree of dependencies, hand over an API key, and then trust the thing with rm -rf-level access to your shell. That is a lot of trust to give a model that is, famously, confidently wrong sometimes.

GAL (General Agent Loop & Executor) takes a different bet: an LLM agent you can actually let loose on your own machine, because it ships as one binary and runs inside a real OS sandbox by default.

No Python. No Node. No Docker. Download a file, run it.

What it is

GAL is a self-contained agent runtime with three front ends built into the same binary family:

  • gal — a terminal/SSH agent (great for servers, CI, and "just get it done" work)
  • galw — a desktop GUI you double-click
  • gal serve — an IM / HTTP server so the same agent is reachable from chat

It runs on Linux, macOS, and Windows, and it is local-first: your files, your machine, your tokens. Zero install means there is nothing to break and nothing to keep in sync.

The part I actually care about: safe by default

The reason most people won't let an agent touch their real machine is that one bad turn can cost hours. GAL's answer is a kernel-level sandbox that behaves the same way on every OS:

  • Linux — private mount namespace + OverlayFS
  • macOS — Seatbelt
  • Windows — AppContainer

Inside your project the agent gets full productivity. Outside it — corrupting the machine, exfiltrating secrets — it is blocked by the kernel, not by a polite prompt.

And when it genuinely needs elevated access? You type

/sudo restart the nginx service and tail the log
Enter fullscreen mode Exit fullscreen mode

which grants exactly one turn of unrestricted access and then automatically snaps back to the sandbox. No permanent "yes, allow everything" checkbox.

Long sessions that don't lose the plot

Model-driven memory means the agent decides what to summarize and what to keep, so you can run tens of thousands of agent rounds in a single session with the current turn always protected. No more "sorry, I forgot what we were doing 40 steps ago."

Self-extending

  • Skills — drop a SKILL.md plus scripts into a folder; the LLM discovers it and turns the scripts into tools.
  • MCP — connect any MCP server and its tools/resources show up automatically.

So the runtime stays small; you grow its capability with plain files and standard MCP servers.

Install (60 seconds)

Grab the archive for your platform from the download page or the GitHub releases:

Platform CLI (gal) GUI (galw)
Linux amd64 gal-linux-amd64.tar.gz galw-linux-amd64.tar.gz
macOS Intel gal-darwin-amd64.tar.gz galw-darwin-amd64.zip
macOS Apple Silicon gal-darwin-arm64.tar.gz galw-darwin-arm64.zip
Windows amd64 gal-windows-amd64.zip galw-windows-amd64.zip

Linux / macOS:

tar xzf gal-linux-amd64.tar.gz   # or gal-darwin-arm64.tar.gz, etc.
chmod +x gal
./gal init && ./gal chat
Enter fullscreen mode Exit fullscreen mode

Windows: unzip gal-windows-amd64.zip, double-click gal.exe (CLI) or galw.exe (GUI).

Verify what you downloaded:

sha256sum -c checksums.txt --ignore-missing
Enter fullscreen mode Exit fullscreen mode

Why another agent runtime?

Because the hard part of putting an agent on a real machine was never the model call — it's the blast radius. GAL's wager is that capability is becoming cheap, and the thing worth engineering carefully is the boundary: what the agent may touch, when it must ask, and how it gets put back in its box afterwards. A single binary with a kernel sandbox is a much smaller thing to trust than a dependency tree with sudo.

If you try it, I'd genuinely like to hear where it fights you — that's the useful feedback.

Top comments (0)