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.
Status: LayerFS 0.1.7 Developer Preview, released as source. It is for evaluation and agent-runtime integration, not production storage: there is no crash or power-loss durability. Read the release record and its waivers before relying on it.
And underneath them
Agents fork Branches, work in Workspaces inside Sandboxes, commit, merge and publish to main. The history grows as they go.
Paste this into your coding agent. It sets LayerFS up and works on a Branch of its own:
Set up LayerFS for this project and start using it for your work.
1. Read the setup guide in https://github.com/Ephemeral-AI-Lab/layerfs: sdk/js/README.md explains the JavaScript SDK, its native binding, the Linux daemon and the environment it reads (LAYERFS_HOME, LAYERFS_DOCKER, LAYERFS_IMAGE, LAYERFS_VOLUME, LAYERFS_DAEMON).
2. Check the requirements before you start: a Linux host, Docker Engine, Node 20 or newer, and a local ext4, xfs or btrfs filesystem for the Store. If one is missing, stop and tell me which.
3. Build what the guide says to build and set those variables.
4. Run project.init once on this repository. It captures the whole tree, ignored files included, as main @ L0.
5. Fork a Branch for your work. From now on, use sdk.fs for file reads and edits, and for each Bash command mount a Workspace on your Branch, exec, commit, then unmount.
6. Check it worked: write a file on your Branch and confirm list_commits shows the Commit.
Report what you ran and what each step returned. If a step fails, stop and give me the exact error; don't retry it on your own.
To set it up by hand, follow the JavaScript SDK guide.
- LayerFS × DSH (preview): agents in a DeepSeek Harness session fork, test, merge and publish from bash, and a LayerFS tab draws what each one did.
- LayerFS × Pi: planned.
| The 0.1.7 manual | Manual · SDK and terminal UI · SDK reference |
| Concepts | Core concepts · Documentation index |
| Release and limits | 0.1.7 release record · Known limits |
| Benchmarks | Released fs-bench-pro results: v0.1.4 · v0.1.5 · v0.1.6 (0.1.7 published none) |
LayerFS is licensed under the MIT License.
