```LayerFS:AI 编码代理的文件系统```
LayerFS: The filesystem for AI coding agents

原始链接: https://layerfs.ai/

代理共享一个无服务器 Store:每个文件或 Bash 工具调用都是分支上的原子提交,并支持冲突检测和逐行追溯。分支 fork 仅保存元数据,可在不复制文件的情况下进行递归探索。通过分块去重和压缩减少存储。与丢弃忽略文件并重新安装依赖的 git 式设置不同,LayerFS 将依赖保留在提交中,因此工作区可在毫秒级挂载,无需安装延迟。分布式代理各自在自己的计算机上运行,同时共享同一个 Store。

Hacker News 推荐了 LayerFS,一个面向 AI 编码代理的文件系统(75 分,47 条评论)。反应不一:一些评论者引用了现有技术/专利,并质疑它与 btrfs、UnionFS 或 overlay2 等现有系统有何不同;其他人则指出基准测试显示了节省空间和面向代理工作树的内容感知版本控制。批评者抱怨网站的滚动劫持,质疑其成熟度,并警告不要信任一个 vibe-coded 文件系统,而应选择久经考验的替代方案。评论者还提到了 lossy-git 和“try”,后者在当前系统的镜像中运行代理,以便检查、应用或丢弃更改。一个旁支讨论探讨了会话和技能在不同运行器和操作系统之间的可移植性。总体而言,人们对面向代理的文件系统感兴趣,但对新颖性、可靠性和实现成熟度持怀疑态度。
相关文章

原文

six core · four supporting

Compute exists only while a command runs.

fs · atomic write → Storewriteeditrmsandbox · workspace per bashmountexeccommitunmountmountexeccommitunmountmountexeccommitunmountmountexeccommitunmountmountexeccommitunmount>_ mkdir out>_ cat log.txt>_ python train.py>_ node build.jsUpToDateStoreC41C42C43C44C45C46

Agents on different computers share one serverless Store.

store.dbC41C42C43C44C45C46C47computer 1computer 2computer 3computer 4

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

mainauthuilogin.tsapi.tssession.tsapp.tsxtoken.tsapp.tsxnav.tsxConflict: app.tsxapp.tsx · merge markers<<<<<<< head C44 <Cart />======= <Search />>>>>>>> workspaceblame app.tsxC12import NavC44<Header />C44<Cart />C46<Search />L3 · publishL4 · publish

Fork recursively any commit, at any depth.

publish0.620.480.210.400.780.660.300.710.910.69prunedprunedprunedprunedpruned★ best 0.91explorers ×3explorers ×3explorers ×4explorers ×3explorers ×1fork: no files copied

10 copies compress into 0.31.

commits1 · dedupe12 chunks13 chunks14 chunks15 chunks11 matched · +1 new11 matched · +1 new11 matched · +1 newdedup → ≈1.05 copies→2 · compress≈0.31 copiesillustrative · store.stats

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

1 · git / other AgentFS without .gitignore filesoops!src/package.json.git/node_modules/node_modules/.cache/.cache/$ npm test✗ Error: Cannot find module 'react'$ npm install$ npm test✓ passed⏱ 0:05⏱ 0:20⏱ 1:00⏱ 2:00⏱ 3:00⏱ 4:00⏱ 5:00⏱ ≈5 min before the first runclone + install, typical⚠ wasting time · waiting on install⌛2 · LayerFSnpm install committed once, back then (C12)src/package.json.git/node_modules/.cache/$ mount → workspace ready$ npm test✓ passedinstant · no install⚡ mount 0.05 smeasured mounts: 5–20 ms⚡⚡ ready the moment it mounts
联系我们 contact @ memedata.com