← Back to digest
Tools & Demos

fx: a tiny coding agent in Zig

What's this about?

fx is a coding agent harness and CLI written in Zig, optimized for research and for embedding inside larger systems, with minimalism and performance as its stated differentiators.

What exactly does writing it in Zig buy you?

Most coding agents are written in JavaScript or Python, which means shipping a runtime and paying its startup cost and memory overhead on every invocation. Zig is a low-level compiled language producing small, fast binaries with no runtime. For an interactive tool the practical effect is that it starts instantly and uses little memory. The more interesting claim is embeddability: a small native binary can be dropped inside another program as a component, which is awkward for something that needs Node.js installed. That's the "harness as a library rather than an application" position.

What's the community saying?

HN 187 points, 89 comments
  1. "Why do we need yet another coding agent?" The thread's dominant reaction, sharpened by an outsider's genuine question: why is there a new one in the HN top ten every other day?
  2. The best answer defends it on specifics — small memory footprint and fast startup versus Pi, plus embeddability — which is a real niche rather than a general claim to be better.
  3. Abandonment anxiety. Several worried it's another experimental project that gets shelved, which is a reasonable prior for the category.
  4. A provider-lock concern: the docs appear to assume Vercel's AI gateway, and it wasn't clear whether another provider can be configured.
  5. A recurring aside that isn't about fx: "I wonder how long 'curl my arbitrary script and pipe it to bash' will continue being a delivery method."
← Cursor cloud agents hold a goalLaunch HN: OneCLI (YC S26) →