fx :Tiny, open, native coding agent.

(fx.sh)

57 points | by handfuloflight 1 hour ago

17 comments

  • rsyring 54 minutes ago
    For all the people asking "Why?", it seems like TFA has a pretty good list of features/attributes that it thinks sets it apart:

    - fx is a coding agent harness and CLI written in Zig, optimized for research and embeddability as part of larger systems.

    - It focuses on minimalism and performance across the board, from system prompt design, to its tools, feature set, and 6.39mib binary.

    - For end users, its CLI output style and form factor aims to be closer to a Unix shell than a heavy "IDE in the terminal" TUI.

    - It's open source (Apache-2.0), model-agnostic, and suitable for both local and cloud inference.

    - Designed for instant installation and embedding in resource constrained environments and agent sandboxes.

    - fx cold starts in 10µs and does no unnecessary work or I/O prior to accepting user input, making it ideal for programmatic use.

    - Optimal fx.wasm builds produced by the Zig toolchain, which further reduce fx's size, making the network stack pluggable.

    - fx contributes single-digit megabytes of memory baseline, allowing you to pack many instances in one machine.

    - fx preserves scroll history by default, produces minimal output, and makes sparing use of complex TUI or paints

    - Minimal system prompt and tools, to save on token costs and to yield optimal time-to-first-token performance (TTFT).

    - Small core, extended via skills, plugins, MCPs, with a Unix-like philosophy to extensibility.

    - Designed to work with local models, gateways, direct provider API access or subscriptions.

    • Kim_Bruning 50 minutes ago
      Very neat. The demo on the page feels very intuitive to me! (if you're used to bash at least)
    • jauntywundrkind 29 minutes ago
      I've only done a little of the new opencode v2 "mini" but it too offers a nice preserve-scroll by default.

      OpenCode is the best behaved TUI i've seen by far (they invented OpenTUI to make it so good, also in Zig), so it feels less crucial. But it's nice to have there!

      The "small core" model is very popular all of a sudden. DeepSeek's new harness is famously like that. https://news.ycombinator.com/item?id=49285244

      OpenCode isn't quite as small, but there's very much been a deliberate attempt to drive much more into a plugin-based system. I enjoyed Dax talking about the new constitution of opencode, and the results of his agent comparing OpenCode & the new DeepSeek. https://bsky.app/profile/thdxr.com/post/3msy4gjttoc2f https://bsky.app/profile/thdxr.com/post/3msygiqyg6v2y

      > an architectural change we made in opencode2 is nearly everything is an internal plugin / there's 68 of them that cover our built in agents, integrations, config loading, etc

      i also think this is such a brilliant fun architectural twist too:

      > OpenCode is the first time i could justify event sourcing in a real system / everything that happens is an event which gets projected into the sqlite db

      https://bsky.app/profile/thdxr.com/post/3mt2qx3ktib2c

      it's so fun seeing new malleable software cores emerge, try to figure out how to augment agency. agentic software striving itself to extend the agency it itself offers. it's been way too long since we've had ambitions to build general system, architectures that serve more than the user. this has held computing back for far too long. this is such an excellent interesting field, of such a more ambitious computing, opening up.

    • rvz 45 minutes ago
      Most of all what you have said is not really any clear differentiation against the rest of the 100s of other agents. Just minuscule or non-negligible implementation details and I'm afraid it is sadly yet another experimental slop project.

      It is a branded "mee too" coding agent that we have seen hundreds of them already.

      • rsyring 35 minutes ago
        I can't say I'm super into all the agents that are being created. But I do try to keep up here on HN and I can't say that I can remember any with this particular set of attributes.

        In particular, aiming to be embeddable into other projects seems rather notable. At least, not something I've remembered of other projects that have made there way across the HN front page.

    • cmrdporcupine 45 minutes ago
      "- For end users, its CLI output style and form factor aims to be closer to a Unix shell than a heavy "IDE in the terminal" TUI."

      I've actually been wondering lately why coding agent functionality isn't just... part of my shell already. Just another kind of interaction modality with an existing shell. Could probably even be an extension to fish or nu-shell even.

      Please stop me from forking off on yet another project though.

      • rsyring 38 minutes ago
        Originally, Warp was doing just that. Reimagining the terminal including making AI a part of it. I don't think they really found much purchase there because they ended up needing to make a platform out of it:

        https://www.warp.dev/

        • cmrdporcupine 33 minutes ago
          Yeah terminal window is a bit of a different story, though. I mean the actual shell binary.

          With some ... intensive ... security/sandboxing/containerizing of some kind though, I guess.

  • kgeist 11 minutes ago
    >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.

  • impulser_ 1 minute ago
    I'm sorry, but this is pure slop. This has 26 tools and a tool for every single file operation and a tool for read tool output? What the fuck... And they call this minimalist.... Lmfao

    The person who built this obviously has little understanding of harnesses.

    You should have significantly less tools today with how good LLMs have become.

    The start up time and binary size are quite literally the most useless stats to base a harness off of lol

    Man what with Cloudflare, Vercel and all these tech companies just releasing pure slop.

    Just use Pi. It's actually minimal and well thought out by people who actually understand agents.

  • vhantz 34 minutes ago
    I wonder how long will the "curl my arbitrary script and pipe it to bash" will continue being a delivery method.
    • cfiggers 9 minutes ago
      If it isn't still common practice 40 years from now (8/18/2066), I'll give the first person to challenge me and cite this comment $1 USD (or equivalent value in the One-World Order-issued omni-currency that we will probably be using by then).
    • roywiggins 14 minutes ago
      Not long. We are transitioning to your LLM curling an arbitrary markdown file and doing whatever it says.
  • SmashDan 58 minutes ago
    I'm not in the tech industry. Could someone explain why there are so many new coding agents, and why they're commonly upvoted on HackerNews? It seems like there's a new one in the top 10 every other day.
    • rglover 12 minutes ago
    • odo1242 28 minutes ago
      It's basically just a relatively simple to create piece of software that's important to get right (since you use it so much), can be made by many different design philosophies (maximal vs. minimal, customizability, etc.), and has very few good standards around it as of yet.
    • a2ff6eeb0 42 minutes ago
      Because we're actively exploring the best way to remove any need to deal with code, and make it so that you don't need any real talent to make a computer do things for anyone.

      We haven't quite hit on the right formula yet, but people are very excited by the possibility.

    • ricardobeat 18 minutes ago
      It's a delicate mix of providing good system prompts, tools, workflows for agents, extensibility etc. I've used several and have yet to find the one that fits exactly how I want to work.
    • chrysoprace 45 minutes ago
      Hacker news generally follows trends, and this is the current trend.

      The discussion around coding agents nowadays is steering towards harnesses (which is probably a better description of what this is). "Agent" here is doing a lot of heavy lifting and has become a bit of a catch-all term to describe a model + harness + tooling + prompt + some other things that I've probably not thought about. The harness is a part that's being explored more as many believe it's where we can get some better performance out of the models.

      This one in particular is from Vercel who provide a service to use models, so they have a vested interest in providing a harness.

    • roywiggins 39 minutes ago
      It's a brand new type of software. Nobody knows what the best way to do it is so a lot of people are trying stuff out, and a lot of people are interested in new ideas.
    • selcuka 17 minutes ago
      Another cause of coding harness inflation is that every model provider release their own coding agent, optimised for their models.
    • zerotolerance 29 minutes ago
      Because they're valueless and trivial to produce, but trends are gonna trend.
    • rvz 35 minutes ago
      > Why there are so many new coding agents, and why they're commonly upvoted on HackerNews? It seems like there's a new one in the top 10 every other day.

      It is widely known that upvote rings happen on this site.

  • sixtyj 46 minutes ago
    I don’t want another coding agent. I would have to be unemployed to try all new software that pops up everywhere. :)

    And every says it is the one :)

  • hankbond 1 hour ago
    Will dive in later to see how its contribution/extension model differs from Pi. Pi is great for a lot of things but has a larger memory footprint and start time than this claims to have so it would be interesting to compare the two.
  • fazxes 4 minutes ago
    fx isn’t primarily “another coding agent.” It’s a tiny, embeddable agent harness and infrastructure component that also happens to have a good CLI.
  • smy20011 23 minutes ago
    I was wondering to build the same thing but someone already built it. I just need some agent that open/close super fast and don't eat half a gb of memory.
  • konaraddi 41 minutes ago
    Nice to see herdr support. The docs seem to imply it only works with vercel’s AI gateway? I guess it cant be configured to use another provider?
    • chrysoprace 18 minutes ago
      It's a Vercel project, so I assume this is intentional. The steps to get started are to log in with Vercel or add an AI Gateway key.
    • fazxes 3 minutes ago
      support incoming for subscriptions (Codex, Grok)
  • jauntywundrkind 59 minutes ago
    Is Vercel so all-in on Zig elsewhere too?
  • rvz 1 hour ago
    Some questions:

    1. Why do we need yet another coding agent over the rest of them?

    2. Is this going to be another Vercel Labs slop project that they will abandon like the others since this is super experimental?

  • kevinbaiv 2 minutes ago
    [dead]
  • fenestella 8 minutes ago
    [dead]
  • wonderwaffle27 1 hour ago
    [dead]
  • catlover76 1 hour ago
    [dead]