>Tiny ~6mb binary
I wonder why it's so large for a program written in Zig. It's basically just a loop that accepts user input, prepares the context, sends it to the LLM, parses the output, invokes the tools, and presents it all in the terminal. Add the built-in prompts and a few checks here and there (like blocking a write tool call before the file has been read first), and I'd expect a truly tiny native agent to be around 200-300 KB max.
I was looking it last night and the repo is something like 600k lines of Zig. Maybe 500k after comments and blank lines.
In my own experiments to build a tiny zig agent it came out to under 800kb.
So large? Really? Allow me to introduce you to electron.
fwiw, here's 3code which is 1.6MiB written in Nim - https://3code.capocasa.dev/