Skip to content

About

LayerFS gives every agent an isolated, disposable filesystem fork without copying the shared base. Useful states become durable, deduplicated checkpoints with workspace-scoped tool history—ready to branch, rewind, or reuse across parallel development, environment experiments, and MCTS-style rollouts.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3,886 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LayerFS

LayerFS

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.

MIT license 0.1.7 Developer Preview

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.

Core ideas

fs calls go straight into the Store as Commits; each Bash call mounts a Workspace, runs, commits and unmounts
01 · Ephemeral Computing
Compute exists only while a command runs.
Four agents, each on its own computer, read and commit to one shared Store
02 · Decentralized Agents
Agents on different computers share one serverless Store.
Main with two Branches, three agents on each; a commit to a file that already changed is refused with a Conflict
03 · Multiagent Coordination
One project, many Branches. One Branch, many agents.
Agents fork instantly into new Branches, recursively; each Branch is scored and the best one is kept
04 · Recursive Filesystem
Fork recursively any Commit, at any depth.
Four agents commit the same packages; the first stores every chunk and each later Commit adds only what is new
05 · Ultra Storage Optimization
10 copies compress into 0.31.
Without ignored files the tests fail until packages are installed; with LayerFS the mount already has them
06 · Instant Bootstrap
Dependencies come with every mount. No time lost reinstalling.

And underneath them

Supporting idea In one line
07 · Auto Checkpoints Every step an agent takes is a checkpoint to return to.
08 · Append-only Objects Saved objects are never rewritten. The Store only grows.
09 · Conflict Rules (.lww) Name the files that should never conflict. The newest edit wins.
10 · Big File, Small Edit An edit costs the size of the edit, not the size of the file.

See it run

A LayerFS project at work: agents fork Branches, mount Workspaces in Sandboxes, commit, merge and publish to main, while the history tree grows

Agents fork Branches, work in Workspaces inside Sandboxes, commit, merge and publish to main. The history grows as they go.

Get started

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.

Works with

  • 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.

Learn more

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)

License

LayerFS is licensed under the MIT License.

About

LayerFS gives every agent an isolated, disposable filesystem fork without copying the shared base. Useful states become durable, deduplicated checkpoints with workspace-scoped tool history—ready to branch, rewind, or reuse across parallel development, environment experiments, and MCTS-style rollouts.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages