软件是在代码提交的间隙中构建的。
Software Is Made Between Commits

原始链接: https://zed.dev/blog/introducing-deltadb

Zed 团队正在超越传统的基于 Git 的工作流,他们认为“拉取请求”(pull request)文化导致了代码与产生代码的对话之间产生了脱节。Zed 意识到现代软件开发正日益受到与 AI 智能体持续对话的驱动,因此推出了 **DeltaDB**,这是一个旨在保持代码与对话统一的新型版本控制系统。 与依赖离散快照的 Git 不同,DeltaDB 将代码记录为细粒度、可寻址的“增量”(deltas)流。通过将对话直接锚定在这些操作上,DeltaDB 确保了代码演进时上下文不会丢失。这使得开发人员和智能体能够在同一个工作树内实时协作,从而消除了对事后评审流程的需要。借助 DeltaDB,对话本身成为了事实的主要来源,使团队能够追踪每一次编辑背后的逻辑,并无缝加入正在进行的工作,而无需等待提交(commit)或推送(push)。 Zed 计划在未来几周内发布 DeltaDB 的测试版本,旨在用流畅的、集成智能体的开发体验取代被迫的协作瓶颈。目前可通过其网站上的候补名单获取早期访问权限。

```Hacker News 新闻 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 软件是在提交(commit)的间隙中完成的 (zed.dev) 9 点,由 jeremy_k 发布于 34 分钟前 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 timuthang 2 分钟前 [–] 音乐是音符之间的留白 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索: ```
相关文章

原文

I have never been a big fan of pull requests.

Before agents, it was easier to believe that the ceremony of trading comments on snapshots was an effective way to collaborate on software, but it never really worked for the Zed team. We frequently work together in the same worktree, building trust and shared understanding by discussing the code as we write it. GitHub doesn't let you talk about code until after you commit and push, but by then our most important conversations are usually already over.

So in 2021, we founded Zed to move beyond the constraints of commits. Our plan was to build an editor worthy of the world's best developers, then offer a better way to work together inside it. We didn't foresee then how the problems we'd spent years thinking about in the context of human-to-human collaboration would become even more important when collaborating with agents.

Increasingly, the conversation that generates the code is becoming the true source of our software. That conversation unfolds continuously and must be cross-referenced to the code as it changes. Git, organized around discrete commits, was never designed to support this.

So we're building something that is. We call it DeltaDB, a new kind of version control built on a single coherent abstraction that transforms your conversations with agents and the worktrees they edit into shared artifacts. We've made a ton of progress since I first spoke about it last fall, and with a beta version ready in a few weeks, I'm excited to share more about what we're launching.

DeltaDB breaks your work into a stream of fine-grained deltas. Where Git captures a snapshot at each commit, DeltaDB captures every operation in between and gives each one a stable identity. Because every delta can be addressed on its own, you can point to the code at any moment in its evolution, even as it keeps changing. That lets us version a worktree as it evolves, together with the conversation driving it.

A message and the edit it produced are recorded side by side, so neither drifts away from the other. Because DeltaDB embeds conflict-free replicated worktrees, many people and agents can edit the same files at once across different machines. The files are real: agents work in them through a terminal, and you can mount the whole worktree to disk whenever you want your own tools on it.

Because every reference is anchored to a delta instead of a line number, it survives as the code moves underneath it. From any line in a past conversation, you can jump to that code as it stands now or as it stood the moment the agent wrote it. From any line of code, you can find the conversation that produced it and every conversation that has touched it since.

Agents can draw on it too. They pick up the context behind the code they're touching or convene the prior agents that worked on it and ask why it's written the way it is.

What we're really after is simple: the conversation with the agent becomes the only conversation you need to have. A teammate can join while the work is still happening, talk to the agent that did the work, and annotate as they go, without waiting for you to commit and push first.

Pull requests, review threads, and inline comments exist to reattach a discussion to code after the fact because the discussion and the code lived in separate places. Put them in the same place, and the ceremony disappears. Git and CI stay for what they're good at: running checks and connecting you to the rest of the world, rather than being the place collaboration is forced to happen.

Software now takes shape in the conversation, not the commit. DeltaDB is the version control built for that, and in a few weeks we'll start putting it in the hands of early users.

If you'd like to be among the first to try it, join the waitlist.

Related Posts

Check out similar blogs from the Zed team.


Looking for a better editor?

You can try Zed today on macOS, Windows, or Linux. Download now!


We are hiring!

If you're passionate about the topics we cover on our blog, please consider joining our team to help us ship the future of software development.

联系我们 contact @ memedata.com