档案库 · 开发与企业工具 · 产品决策 · 2026
Huzzah 押注持久化伪代码而非聊天提示词,才是 AI 编程的正确界面
Huzzah 是一个实验性编辑器,开发者编辑持久化伪代码,AI 仅重新生成每次保存所影响的代码。
Huzzah
做的是什么生意
Huzzah is an open-source, experimental code editor in which the developer authors .hz pseudocode files describing the software; saving a file sends the diff to an LLM, which regenerates the affected source code while the pseudocode persists as living documentation.
起因
Daniel Vaughn, a software engineer, worked almost exclusively with coding agents from January 2026 and by August felt utterly fatigued by writing longform English for every change. His critique: agent prompts are long-form, imperative and transient, so no reliable record of intent survives, and beyond some complexity the agents begin confusing themselves. Huzzah inverts the workflow: you write a fizz_buzz.hz pseudocode file in whatever style feels natural, save it, and the editor diffs the file and uses the change as the prompt.
经过
On save Huzzah captures the pseudocode diff and sends it to the model so only the affected source is regenerated, not whole files; the pseudocode persists as versioned documentation and can be written language-agnostically. The prototype runs on Node.js 22.19+, uses the multi-provider Pi framework (Anthropic, OpenAI, Google, Azure, Amazon Bedrock), and includes semantic highlighting and local JavaScript execution in Web Workers. Vaughn lists caveats himself: the approach is unproven at scale and better for new codebases, cross-file dependencies are hard to express, and LSP-style features are missing.
还没有结局,它还在跑。
背景
Huzzah 是由独立开发者 Daniel Vaughn 开发的一个实验性、开源编辑器,它提出了不同的 AI 编码范式:不是向聊天输入冗长的自然语言提示词,而是开发者编写描述软件的 .hz 持久化伪代码文件,保存文件触发 AI 重新生成受该变更影响的源代码。
Vaughn 通过疲惫想到了这个想法。他从 2026 年 1 月起几乎仅使用编码代理工作,到 8 月时他厌倦了每次更改都写长篇英语,同时感到失去了对代码的洞察和控制。他认为提示词冗长、命令式且短暂:没有可靠的人类意图记录,指令重复且烧钱,并且许多自然语言的存在是基于社会原因而非信息传递。
该工作流程将提示词作为产物:将 fizz_buzz.hz 编写精简的伪代码大纲,保存以生成真实代码,然后在逻辑变更时再次编辑文件。Huzzah 对伪代码进行 diff,并使用该差异作为提示词,因此仅重新生成受影响的源代码,且伪代码作为开发者文档持久存在。原型在 Node.js 22.19+ 上运行,通过 Pi 框架支持多个模型提供商,并包含语义高亮和本地 JavaScript 执行。
8 月 20 日的 Show HN 获得了 384 分和 209 条评论。讨论混合了热情与怀疑:批评者质疑精确的伪代码是否重造了规范驱动开发或真正想要一个编译器,以及疲劳是否源于长提示词还是源于外包思考本身。Huzzah 起初明确是早期阶段,启动时约有 158 个 GitHub 星和 7 个分叉,Vaughn 请大家试用并反馈。
这件事要成立,得有什么
- 编码代理聊天在每次变更后丢弃提示词,因此开发者反复重新解释意图,代码存在原因没有持久记录。
- 伪代码迫使开发者设计代码形态并保持人类可读,将指令本身转化为活文档。
- 对伪代码文件进行 diff 可将 AI 的范围限定在受影响的代码,而不是重新生成整个文件,减少了令牌浪费和审查负担。
- 简洁、声明式格式适合知道自己想要的开发者,只给缺乏领域知识的人留下自然语言。
可借鉴之处
当模型编写代码时,开发者的意图仍然需要一个持久存储之所:兼作文档的持久化伪代码优于向聊天重新解释一切。
后续进展
截至 2026 年 9 月 5 日,Huzzah 仍是构建阶段的实验:源代码位于 GitHub(danielvaughn/hz),带有设置说明的原型,Vaughn 积极征求反馈。它在 Hacker News 上引发的对话在启动后仍在继续,评论者争论这种范式是真正的新创作模式还是规范驱动开发的复兴,Vaughn 则回应他指出的权衡,包括规模、遗留代码库以及缺少的 LSP 功能。
资料来源
发现哪里写错了?告诉我们。
轮到你了
你刚读完一家。说说你在做什么,看看谁在赌同一件事。
免费账号 · 3 次免费提问 · 不用绑卡