You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- support incremental init and rootfs/bundle export-import
- preserve hardlinks and metadata across environment migration
- add a rootless rollback demo and sharpen project positioning
@@ -116,6 +120,9 @@ btrfs backend, when used, requires `AGENTENV_ROOT` to be on a btrfs fs.
116
120
| Command | Effect |
117
121
|--------------------|--------|
118
122
|`init --from <dir>` / `init --tarball <p>`| seed root from a directory tree (one-time copy) or extract a `.tar(.gz)`; freeze as the root node |
123
+
|`init --sync --from <dir>` / `--tarball <p>`| incremental: overlay the source onto `work/current` and freeze a **child** of HEAD (folds in files added to the host after the first seed); `--delete` also mirrors removals |
124
+
|`export [ref] --format rootfs\|agentenv [--all]`| write a node's rootfs as a flat tar (for `docker import` / migration), or an agentenv **bundle** (`--all` = whole DAG + tags + history; else one self-contained snapshot) |
125
+
|`import <tar\|URL>`| auto-detected: flat rootfs → one node under HEAD; snapshot bundle → its node; whole-repo bundle → restore the full DAG into an empty root |
119
126
|`supervise -- <cmd>`| start the inner agent under auto-capture; survives rollbacks (relaunches the agent from the restored env) |
120
127
|`daemon`| serve the newline-JSON protocol on the unix socket (for orchestrators / `ctl`) |
121
128
|`mcp`| MCP server over stdio (Claude Code / any MCP host); bridges tool calls to the daemon socket |
Copy file name to clipboardExpand all lines: Makefile
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
#
4
4
# Cheat sheet:
5
5
# make help list every target with a short description
6
+
# make demo watch agentenv undo whole-system changes, rootless
6
7
# make build cross-compile a Linux static binary into ./bin/
7
8
# make test cross-platform unit tests (dag, image, ...)
8
9
# make vet gofmt check + go vet
@@ -13,13 +14,20 @@
13
14
14
15
GOOS_LINUX ?= linux
15
16
GOARCH ?= $(shell uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/;s/arm64/arm64/')
16
-
GOPROXY ?= $(shell go env GOPROXY)
17
+
GOPROXY ?= $(shellif command -v go >/dev/null 2>&1; then go env GOPROXY; else printf '%s' 'https://proxy.golang.org,direct'; fi)
17
18
18
-
.PHONY: help build test vet verify-rootless verify-btrfs verify-supervise verify-mcp verify-rollback openapi-snapshot dev-shell dev-shell-stop clean
19
+
.PHONY: help demo build test vet verify-rootless verify-btrfs verify-supervise verify-mcp verify-rollback openapi-snapshot dev-shell dev-shell-stop clean
0 commit comments