商业产业 Hacker News Agent 2026-08-18T22:00 正文 ok 335 words

🔶 fx:小巧、开源、原生的编码 Agent

英文标题:🔶 fx :Tiny, open, native coding agent.

fx 是一款使用 Zig 编写的开源编码 Agent 运行框架与 CLI,主打极小体积、快速启动和可嵌入性。其 v0.0.3 二进制仅约 6.39 MiB,冷启动时间为 10 微秒,基础内存占用为个位数 MB。项目支持本地及云端推理、模型无关调用,并可通过 skills、插件和 MCP 扩展。fx 还可编译为 WebAssembly,在支持 WebAssembly JSPI 的浏览器中运行,适合资源受限环境、Agent 沙箱和大规模多实例部署。
打开原文相关 6 · 机会 1
media12.7 KB

中文

小巧、开源、原生的编码 Agent。

$ curl -fsSL https://fx.sh/setup.sh | bash

v0.0.3 · 6.39 MiB · 状态:实验性 (i)请自行承担使用风险,我们将频繁进行改动

此演示通过 Zig 工具链编译的 WebAssembly 运行完整的 fx CLI。
网络请求委托给浏览器的 fetch,SDK 的各个方面都可在文档中配置。

𝒇x v0.0.3 · 输入 /help 查看命令

┃

auto · glm-5.2

(i)

该演示可在支持 WebAssembly JSPI 的浏览器中使用,例如 Safari 27+ 和 Chrome。该演示在 WebAssembly 中运行 fx,并使用由 just-bash 驱动的浏览器工作区。在你自己的文件上使用完整工具套件,请安装 fx。

fx 是一款使用 Zig 编写的编码 Agent 运行框架与 CLI,针对研究用途以及作为更大系统组成部分的嵌入式使用进行了优化。

它全面聚焦于极简主义与性能:从系统提示词设计,到工具、功能集和 6.39 MiB 二进制文件,均是如此。

对于终端用户,其 CLI 输出风格和形态旨在更接近 Unix shell,而非笨重的“终端中的 IDE”式 TUI。

它采用开源协议(Apache-2.0)、模型无关,并同时适用于本地和云端推理。


小巧的约 6 MB 二进制文件

专为即时安装以及在资源受限环境和 Agent 沙箱中嵌入而设计。

即时进入提示输入

fx 的冷启动时间为 10µs,在接受用户输入前不会执行任何不必要的工作或 I/O,因此非常适合以编程方式使用。

Wasm 支持

由 Zig 工具链生成优化的 fx.wasm 构建版本,可进一步缩小 fx 的体积,并使网络栈可插拔。

极低内存占用

fx 的基础内存占用仅为个位数 MB,使你能够在一台机器上部署大量实例。

类 Shell 的 UI 与交互体验

fx 默认保留滚动历史记录,输出保持精简,并尽量少使用复杂的 TUI 或视觉渲染效果。

高上下文效率

采用精简的系统提示词和工具,以节省 Token 成本,并实现最佳的首 Token 时间(TTFT)性能。

可嵌入且可扩展

核心体积小,可通过 skills、插件和 MCP 扩展,并遵循类 Unix 的可扩展性理念。

English / 原文

Tiny, open, native coding agent.

$ curl -fsSL https://fx.sh/setup.sh | bashcopied

v0.0.3 · 6.39mib · status: experimental (i)use at your own risk, we will be making frequent changes

This demo runs the full fx CLI as WebAssembly compiled with the Zig toolchain.
Networking is delegated to browser fetch, and every SDK aspect is configurable in the docs.

𝒇x v0.0.3 · Run /help for commands

┃

auto · glm-5.2

(i)

This demo is available in browsers with WebAssembly JSPI support, like Safari 27+ and Chrome.This demo runs fx in WebAssembly with a browser workspace powered by just-bash. Install fx for the full tool suite on your own files.

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.


Tiny ~6mb binary

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

Instant time to prompt

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.

Wasm support

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

Minimal memory footprint

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

Shell-like UI and ergonomics

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

Context efficient

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

Embeddable and extensible

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