跳到正文
Hacker News-首页· l2dy·· 5 天前AI 评分66

LayerFS:专为 AI 编码智能体设计的文件系统

LayerFS: The filesystem for AI coding agents

AI 导读

LayerFS 推出了专为 AI 编码智能体设计的文件系统,支持多智能体并发挂载独立可写工作区、共享持久化提交历史并实现零成本分支复刻。该系统将每个文件工具调用视为原子存储操作,通过内容寻址与重复数据删除降低存储开销。

正文 · 原文

Ephemerality: scaling multi-agent development beyond imagination

Ephemeral Workspaces.
Durable Shared History.

LayerFS is the substrate under your agents. Each one mounts a complete, writable Workspace over shared committed history, does its work, commits what it changed, and goes away.

  • Ephemeral workspaces
  • Durable results
  • Massive parallelism

LayerFSandDSHLayerFSandPisoon

Why LayerFS

Ten ideas, one filesystem.

six core · four supporting

Compute exists only while a command runs.

  • Compute: Agents spend ~80% thinking, ~10% in Bash.
  • FS: Each file tool call is one atomic Store op.
  • Sandbox: Each Bash tool call mounts an ephemeral workspace, then commits.

Agents on different computers share one serverless Store.

  • Shared storage: Every agent commits to one Store, with no DB server.
  • Distributed computing: Each agent runs on its own computer.

One project, many branches. One branch, many agents.

  • Commits: Every tool call is a commit on its branch.
  • Conflict: A same-file clash is refused with Conflict.
  • Blame: Each line names the step that wrote it.

Fork recursively any commit, at any depth.

  • Zero cost: A fork is metadata and copies no files.
  • Recursive: A filesystem for RSI agents and recursive exploration for RL training.

10 copies compress into 0.31.

  • Dedup: Each content chunk is stored once.
  • Compression: The stored chunks shrink further.
  • Ratio: 10 copies → 1.05 dedup → 0.31 compression wtf???

Dependencies come with every mount. No wasting time for re-installation.

  • Git / other AgentFS: Drops ignored files; reinstalls.
  • LayerFS: Ignored files stay in every commit.
  • Comparison: ~5 min to install vs 0.05 s to mount.

Four supporting ideas

Agent tool calls and their history

HISTORYmain @ L00 commits · 0 live

main is the green middle bough; each publish adds a Layer bandLayer · a band on mainCommit · a leafBranch · a boughmerge · grafts backpublish · adds a bandstopped · bare twigclick a name tag to focus its Branch

store.statsmain · read-only

dedupe1.5×

compression3.32×

stored9.4 MB

file10.0 MB

logical 48.0 MB · canonical 31.2 MB · metadata 420 KB · free 180 KB · 0 commits · 1 layers

orchestratorproject · branch

来源:Hacker News-首页 · layerfs.ai