New community tools package @magpie-community/tools-layerfs 0.7.1 (Mola-maker): LayerFS workspaces as tools for every agent. It imports a source folder into a versioned workspace under MAGPIE_LAYERFS_HOME (default ~/.magpie-layerfs), with checkpoints, history and diffs. Running commands (exec) is off unless the user turns it on. No network access. registry.json gains its one entry.
Run at the reviewed head 4795df0 (merges cleanly onto origin/main 1ae89aa):
- bun scripts/check.mjs layerfs: ok
- bun test in the package under a temp HOME: 48 of 48 pass, worktree clean after
- the seven points from the last review, each re-run:
1. source guard: ~/.Config/Magpie, a symlink to ~/.config/magpie, ~/.AWS, ~/.CONFIG and a symlinked parent are all refused
2. names: project a / branch b--c and project a--b / branch c no longer share a workspace; Main and main are apart
3. layerfs_history {limit:1} at 200 checkpoints: 0.1 ms (151 ms before), no trajectory.json written
4. native backend and its SDK path removed; asking for it throws a clear error
5. repository points at this repo; README images pinned
6. runShell: cat returns in 32 ms (2005 before), a backgrounded sleep doesn't hold the call, a timeout kills the process
7. storedBytes equals stored content plus checkpoint records; the description says so
- read every line changed since 1c9e4c1: no path escape, no writes outside its home
Not tried: a real agent using the tools through magpie.
Known: something exec starts in the background keeps running after a successful call, like a normal shell, and can land in the next checkpoint.
2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
globalThis.LayerfsTrajectory = {"generatedAt":"2026-10-22T16:23:37.610Z","backend":"sim","projects":[{"name":"demo","branches":[{"name":"claude","commits":[{"id":"91fd049a2e02","parent":"73ef781c1180","message":"claude: round 1 edits","time":"2026-10-22T16:23:37.327Z","files":25,"logicalBytes":229927,"newBytes":16132,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"be54f31c73e6","parent":"91fd049a2e02","message":"claude: round 2 edits","time":"2026-10-22T16:23:37.347Z","files":26,"logicalBytes":219318,"newBytes":32147,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"783846ed73db","parent":"be54f31c73e6","message":"claude: round 3 edits","time":"2026-10-22T16:23:37.355Z","files":26,"logicalBytes":224694,"newBytes":48132,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"codex","commits":[{"id":"201b3e7532cd","parent":"73ef781c1180","message":"codex: round 1 edits","time":"2026-10-22T16:23:37.367Z","files":25,"logicalBytes":229923,"newBytes":16128,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"d251d3299d0e","parent":"201b3e7532cd","message":"codex: round 2 edits","time":"2026-10-22T16:23:37.375Z","files":26,"logicalBytes":219309,"newBytes":32142,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"d9b237bcece0","parent":"d251d3299d0e","message":"codex: round 3 edits","time":"2026-10-22T16:23:37.382Z","files":26,"logicalBytes":224681,"newBytes":48128,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"cursor","commits":[{"id":"71b2dd5a5e10","parent":"73ef781c1180","message":"cursor: round 1 edits","time":"2026-10-22T16:23:37.428Z","files":25,"logicalBytes":229927,"newBytes":16132,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"6303b7629ab1","parent":"71b2dd5a5e10","message":"cursor: round 2 edits","time":"2026-10-22T16:23:37.441Z","files":26,"logicalBytes":219318,"newBytes":32147,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"86c8fc87627e","parent":"6303b7629ab1","message":"cursor: round 3 edits","time":"2026-10-22T16:23:37.452Z","files":26,"logicalBytes":224694,"newBytes":48132,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"gemini","commits":[{"id":"d3a15a864eeb","parent":"73ef781c1180","message":"gemini: round 1 edits","time":"2026-10-22T16:23:37.472Z","files":25,"logicalBytes":229927,"newBytes":16132,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"5f25521930c6","parent":"d3a15a864eeb","message":"gemini: round 2 edits","time":"2026-10-22T16:23:37.495Z","files":26,"logicalBytes":219318,"newBytes":32147,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"26dc7718a1d9","parent":"5f25521930c6","message":"gemini: round 3 edits","time":"2026-10-22T16:23:37.509Z","files":26,"logicalBytes":224694,"newBytes":48132,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"main","commits":[{"id":"73ef781c1180","parent":null,"message":"Import /tmp/lfs-sample-wp308x/src","time":"2026-10-22T16:23:37.291Z","files":25,"logicalBytes":256551,"newBytes":256551,"delta":{"added":25,"modified":0,"deleted":0}}]},{"name":"opencode","commits":[{"id":"d595570cae2c","parent":"73ef781c1180","message":"opencode: round 1 edits","time":"2026-10-22T16:23:37.391Z","files":25,"logicalBytes":229935,"newBytes":16140,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"4a41d832201b","parent":"d595570cae2c","message":"opencode: round 2 edits","time":"2026-10-22T16:23:37.397Z","files":26,"logicalBytes":219336,"newBytes":32157,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"8ea084955aff","parent":"4a41d832201b","message":"opencode: round 3 edits","time":"2026-10-22T16:23:37.403Z","files":26,"logicalBytes":224720,"newBytes":48140,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"pi","commits":[{"id":"42310fc68fbb","parent":"73ef781c1180","message":"pi: round 1 edits","time":"2026-10-22T16:23:37.533Z","files":25,"logicalBytes":229911,"newBytes":16116,"delta":{"added":0,"modified":4,"deleted":0}},{"id":"8445e58c0cb1","parent":"42310fc68fbb","message":"pi: round 2 edits","time":"2026-10-22T16:23:37.548Z","files":26,"logicalBytes":219282,"newBytes":32127,"delta":{"added":1,"modified":4,"deleted":0}},{"id":"949429bb257c","parent":"8445e58c0cb1","message":"pi: round 3 edits","time":"2026-10-22T16:23:37.560Z","files":26,"logicalBytes":224642,"newBytes":48116,"delta":{"added":0,"modified":4,"deleted":0}}]},{"name":"release","commits":[{"id":"626e6a6ee6cf","parent":"d9b237bcece0","message":"release: round 1","time":"2026-10-22T16:23:37.585Z","files":27,"logicalBytes":224699,"newBytes":18,"delta":{"added":1,"modified":0,"deleted":0}},{"id":"d06e4115a6a6","parent":"626e6a6ee6cf","message":"release: round 2","time":"2026-10-22T16:23:37.596Z","files":28,"logicalBytes":224717,"newBytes":18,"delta":{"added":1,"modified":0,"deleted":0}}]}]}],"events":[{"t":"2026-10-22T16:23:37.298Z","kind":"provision","project":"demo","branch":"main","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.301Z","kind":"fork","project":"demo","branch":"claude","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.314Z","kind":"provision","project":"demo","branch":"claude","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--claude","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.329Z","kind":"checkpoint","project":"demo","branch":"claude","commit":"91fd049a2e02","message":"claude: round 1 edits"},{"t":"2026-10-22T16:23:37.348Z","kind":"checkpoint","project":"demo","branch":"claude","commit":"be54f31c73e6","message":"claude: round 2 edits"},{"t":"2026-10-22T16:23:37.355Z","kind":"checkpoint","project":"demo","branch":"claude","commit":"783846ed73db","message":"claude: round 3 edits"},{"t":"2026-10-22T16:23:37.356Z","kind":"fork","project":"demo","branch":"codex","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.359Z","kind":"provision","project":"demo","branch":"codex","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--codex","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.368Z","kind":"checkpoint","project":"demo","branch":"codex","commit":"201b3e7532cd","message":"codex: round 1 edits"},{"t":"2026-10-22T16:23:37.375Z","kind":"checkpoint","project":"demo","branch":"codex","commit":"d251d3299d0e","message":"codex: round 2 edits"},{"t":"2026-10-22T16:23:37.383Z","kind":"checkpoint","project":"demo","branch":"codex","commit":"d9b237bcece0","message":"codex: round 3 edits"},{"t":"2026-10-22T16:23:37.383Z","kind":"fork","project":"demo","branch":"opencode","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.386Z","kind":"provision","project":"demo","branch":"opencode","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--opencode","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.392Z","kind":"checkpoint","project":"demo","branch":"opencode","commit":"d595570cae2c","message":"opencode: round 1 edits"},{"t":"2026-10-22T16:23:37.398Z","kind":"checkpoint","project":"demo","branch":"opencode","commit":"4a41d832201b","message":"opencode: round 2 edits"},{"t":"2026-10-22T16:23:37.404Z","kind":"checkpoint","project":"demo","branch":"opencode","commit":"8ea084955aff","message":"opencode: round 3 edits"},{"t":"2026-10-22T16:23:37.405Z","kind":"fork","project":"demo","branch":"cursor","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.420Z","kind":"provision","project":"demo","branch":"cursor","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--cursor","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.430Z","kind":"checkpoint","project":"demo","branch":"cursor","commit":"71b2dd5a5e10","message":"cursor: round 1 edits"},{"t":"2026-10-22T16:23:37.443Z","kind":"checkpoint","project":"demo","branch":"cursor","commit":"6303b7629ab1","message":"cursor: round 2 edits"},{"t":"2026-10-22T16:23:37.453Z","kind":"checkpoint","project":"demo","branch":"cursor","commit":"86c8fc87627e","message":"cursor: round 3 edits"},{"t":"2026-10-22T16:23:37.454Z","kind":"fork","project":"demo","branch":"gemini","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.465Z","kind":"provision","project":"demo","branch":"gemini","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--gemini","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.474Z","kind":"checkpoint","project":"demo","branch":"gemini","commit":"d3a15a864eeb","message":"gemini: round 1 edits"},{"t":"2026-10-22T16:23:37.498Z","kind":"checkpoint","project":"demo","branch":"gemini","commit":"5f25521930c6","message":"gemini: round 2 edits"},{"t":"2026-10-22T16:23:37.510Z","kind":"checkpoint","project":"demo","branch":"gemini","commit":"26dc7718a1d9","message":"gemini: round 3 edits"},{"t":"2026-10-22T16:23:37.511Z","kind":"fork","project":"demo","branch":"pi","from":"main","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.523Z","kind":"provision","project":"demo","branch":"pi","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--pi","commit":"73ef781c1180"},{"t":"2026-10-22T16:23:37.533Z","kind":"checkpoint","project":"demo","branch":"pi","commit":"42310fc68fbb","message":"pi: round 1 edits"},{"t":"2026-10-22T16:23:37.549Z","kind":"checkpoint","project":"demo","branch":"pi","commit":"8445e58c0cb1","message":"pi: round 2 edits"},{"t":"2026-10-22T16:23:37.562Z","kind":"checkpoint","project":"demo","branch":"pi","commit":"949429bb257c","message":"pi: round 3 edits"},{"t":"2026-10-22T16:23:37.566Z","kind":"publish","project":"demo","branch":"codex","commit":"d9b237bcece0","layer":1,"overwrote":false},{"t":"2026-10-22T16:23:37.567Z","kind":"fork","project":"demo","branch":"release","from":"main","commit":"d9b237bcece0"},{"t":"2026-10-22T16:23:37.577Z","kind":"provision","project":"demo","branch":"release","path":"/tmp/lfs-sample-wp308x/store/workspaces/demo--release","commit":"d9b237bcece0"},{"t":"2026-10-22T16:23:37.588Z","kind":"checkpoint","project":"demo","branch":"release","commit":"626e6a6ee6cf","message":"release: round 1"},{"t":"2026-10-22T16:23:37.598Z","kind":"checkpoint","project":"demo","branch":"release","commit":"d06e4115a6a6","message":"release: round 2"},{"t":"2026-10-22T16:23:37.602Z","kind":"publish","project":"demo","branch":"release","commit":"d06e4115a6a6","layer":2,"overwrote":false}],"totals":{"logicalBytes":4749523,"storedBytes":835014,"savedBytes":3914509,"dedupRatio":5.69,"workspaces":8},"sample":true};
|