fx:轻量、开源的原生编码智能体。
fx :Tiny, open, native coding agent.

原始链接: https://fx.sh

**fx** 是一款由 Zig 编写的轻量级、高性能编码代理(coding agent),专为研究、可嵌入性及资源受限环境而设计。其二进制文件仅 6MB,冷启动时间近乎瞬时(10微秒),针对速度和最小系统占用进行了优化。 与笨重的“终端 IDE”工具不同,fx 提供了极简的类 Unix 界面,优先考虑类 Shell 的操作逻辑和滚动历史记录。它是模型无关的、开源的(Apache-2.0),并支持本地及云端推理。核心特性包括: * **高性能:** 针对低内存占用和高效的 Token 消耗进行了优化。 * **高度可嵌入:** 具备出色的 WebAssembly 支持,非常适合集成到大型系统或代理沙箱中。 * **可扩展:** 采用模块化的“技能”和插件架构,包括对 MCP 的支持,允许用户在不臃肿核心的前提下定制功能。 无论是通过 CLI 使用,还是作为便携式工具通过 Wasm 集成,fx 都是为那些需要快速、无干扰且易于编程的编码助手的开发者而打造。

**fx** 是一款使用 Zig 语言编写的新型极简编码代理及工具框架。它专为高性能和可移植性而设计,二进制文件仅约 6MB,具有极快的冷启动速度(10微秒)和极低的内存占用,非常适合嵌入到资源受限的环境或大型系统中。与笨重的 TUI(终端用户界面)IDE 不同,它模拟 Unix shell 且不绑定特定模型。 该项目在 Hacker News 上引发了激烈讨论。支持者看重其速度快、体积小以及易于嵌入的特性。然而,许多用户也对以下问题表示不满: * **Vercel 绑定**:当前版本强制要求使用 Vercel AI Gateway 账户,这限制了那些希望使用本地或自托管 LLM(不依赖特定服务商)的用户的使用体验。 * **市场饱和**:怀疑论者认为,“代理框架”领域已经充斥着大量同质化的“跟风”项目。 * **工具复杂度**:一些开发者批评该项目的工具集过于臃肿,认为现代大模型并不需要 *fx* 中包含的那么多辅助工具。 * **技术实现**:尽管其选择 Zig 语言备受称赞,但也有人质疑,与 Nim 或 C 等其他能实现更小体积的极简方案相比,6MB 是否真的算得上“微型”。 归根结底,*fx* 凸显了业界对标准、轻量且可扩展的代理架构的持续探索。
相关文章

原文

Tiny, open, native coding agent.

v0.0.36.39mibstatus: experimental use at your own risk, we will be making frequent changes

This demo is available in browsers with WebAssembly JSPI support, like Safari 27+ and Chrome.

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.

联系我们 contact @ memedata.com