@madarco/agentbox 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/README.md +4 -3
  3. package/dist/_cloud-attach-THTN4CFZ.js +18 -0
  4. package/dist/{chunk-U7IZS2ZP.js → chunk-3VFY3N4A.js} +1388 -234
  5. package/dist/chunk-3VFY3N4A.js.map +1 -0
  6. package/dist/{chunk-XWBFWUY2.js → chunk-52LKNUY7.js} +6 -3
  7. package/dist/chunk-52LKNUY7.js.map +1 -0
  8. package/dist/{chunk-6QFPYU4Z.js → chunk-7K2A3NLE.js} +8 -5
  9. package/dist/chunk-7K2A3NLE.js.map +1 -0
  10. package/dist/{chunk-5BO6SGMI.js → chunk-7RWFYLF3.js} +194 -34
  11. package/dist/chunk-7RWFYLF3.js.map +1 -0
  12. package/dist/{chunk-IA6YHH52.js → chunk-MODNW54N.js} +6 -3
  13. package/dist/{chunk-IA6YHH52.js.map → chunk-MODNW54N.js.map} +1 -1
  14. package/dist/{chunk-46NXCJ6Z.js → chunk-NXX3KQZ6.js} +2 -2
  15. package/dist/{chunk-3JXSW6PN.js → chunk-P6UT5XGE.js} +2 -2
  16. package/dist/{chunk-OG4KMYOJ.js → chunk-ZX6DTA4X.js} +276 -56
  17. package/dist/chunk-ZX6DTA4X.js.map +1 -0
  18. package/dist/{dist-CFSKUAS5.js → dist-3PLT2EK2.js} +17 -3
  19. package/dist/{dist-T7ESSBCZ.js → dist-3WFNXXPE.js} +20 -6
  20. package/dist/dist-3WFNXXPE.js.map +1 -0
  21. package/dist/{dist-3UYQZOAO.js → dist-7ELDXBAG.js} +19 -6
  22. package/dist/dist-7ELDXBAG.js.map +1 -0
  23. package/dist/{dist-4BHW7DCO.js → dist-C3YRC3PP.js} +10 -5
  24. package/dist/dist-C3YRC3PP.js.map +1 -0
  25. package/dist/{dist-7BS2JS27.js → dist-CZ6CRADC.js} +18 -7
  26. package/dist/dist-CZ6CRADC.js.map +1 -0
  27. package/dist/index.js +1218 -560
  28. package/dist/index.js.map +1 -1
  29. package/dist/{prepared-state-MQHD3M5F-OVABNV66.js → prepared-state-MQHD3M5F-5ZMCNY43.js} +2 -2
  30. package/package.json +4 -4
  31. package/runtime/docker/apps/cli/share/agentbox-setup/SKILL.md +1 -1
  32. package/runtime/docker/packages/ctl/dist/bin.cjs +255 -169
  33. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +13 -0
  34. package/runtime/docker/packages/sandbox-docker/scripts/claude-managed-settings.json +4 -4
  35. package/runtime/e2b/agentbox-dockerd-start +145 -0
  36. package/runtime/e2b/agentbox-setup-skill.md +1 -1
  37. package/runtime/e2b/attach-helper.cjs +23 -2
  38. package/runtime/e2b/claude-managed-settings.json +4 -4
  39. package/runtime/e2b/ctl.cjs +255 -169
  40. package/runtime/e2b/scripts/build-template.sh +22 -5
  41. package/runtime/hetzner/agentbox-dockerd-start +13 -0
  42. package/runtime/hetzner/agentbox-setup-skill.md +1 -1
  43. package/runtime/hetzner/claude-managed-settings.json +4 -4
  44. package/runtime/hetzner/ctl.cjs +255 -169
  45. package/runtime/relay/bin.cjs +267 -63
  46. package/runtime/vercel/agentbox-dockerd-start +145 -0
  47. package/runtime/vercel/agentbox-setup-skill.md +1 -1
  48. package/runtime/vercel/claude-managed-settings.json +4 -4
  49. package/runtime/vercel/ctl.cjs +255 -169
  50. package/runtime/vercel/custom-system-CLAUDE.md +5 -4
  51. package/runtime/vercel/scripts/provision.sh +20 -5
  52. package/share/agentbox-setup/SKILL.md +1 -1
  53. package/share/host-skills/agentbox/SKILL.md +4 -4
  54. package/share/host-skills/agentbox-info/SKILL.md +6 -6
  55. package/share/host-skills/codex/agentbox.md +12 -4
  56. package/share/host-skills/opencode/agentbox.md +2 -2
  57. package/dist/_cloud-attach-3UC3IL62.js +0 -16
  58. package/dist/chunk-5BO6SGMI.js.map +0 -1
  59. package/dist/chunk-6QFPYU4Z.js.map +0 -1
  60. package/dist/chunk-OG4KMYOJ.js.map +0 -1
  61. package/dist/chunk-U7IZS2ZP.js.map +0 -1
  62. package/dist/chunk-XWBFWUY2.js.map +0 -1
  63. package/dist/dist-3UYQZOAO.js.map +0 -1
  64. package/dist/dist-4BHW7DCO.js.map +0 -1
  65. package/dist/dist-7BS2JS27.js.map +0 -1
  66. package/dist/dist-T7ESSBCZ.js.map +0 -1
  67. /package/dist/{_cloud-attach-3UC3IL62.js.map → _cloud-attach-THTN4CFZ.js.map} +0 -0
  68. /package/dist/{chunk-46NXCJ6Z.js.map → chunk-NXX3KQZ6.js.map} +0 -0
  69. /package/dist/{chunk-3JXSW6PN.js.map → chunk-P6UT5XGE.js.map} +0 -0
  70. /package/dist/{dist-CFSKUAS5.js.map → dist-3PLT2EK2.js.map} +0 -0
  71. /package/dist/{prepared-state-MQHD3M5F-OVABNV66.js.map → prepared-state-MQHD3M5F-5ZMCNY43.js.map} +0 -0
@@ -6,10 +6,11 @@ microVM on Amazon Linux 2023) provisioned just for this box. Your user is
6
6
  whole microVM is yours — the user's host filesystem is not visible from here
7
7
  and nothing is bind-mounted.
8
8
 
9
- **No containers.** Vercel Sandbox blocks the namespace syscalls a container
10
- runtime needs (no `CAP_SYS_ADMIN`, seccomp-filtered `clone`/`unshare`), so
11
- `docker` / `podman` cannot run here — not even rootless. Don't try to start a
12
- container engine; run build/test/dev processes directly on the microVM instead.
9
+ **Docker is available.** The box bakes the docker engine and `dockerd` is
10
+ started automatically, so `docker` works out of the box — no sudo needed (the
11
+ socket is opened to your user). Build images, run containers, and use
12
+ `image:` services in `agentbox.yaml` directly. Because this box is persistent,
13
+ pulled images and the docker install carry over across pause/resume.
13
14
 
14
15
  This box is **persistent**: stopping it captures a snapshot and resuming
15
16
  restarts from that snapshot, so the filesystem survives a pause. You can also
@@ -9,8 +9,9 @@
9
9
  # Differences from the hetzner installer (packages/sandbox-hetzner/scripts/
10
10
  # install-box.sh), which this mirrors:
11
11
  # - dnf, not apt (Amazon Linux 2023).
12
- # - NO docker / dockerd / iptables — Vercel Sandbox blocks the namespace
13
- # syscalls a container runtime needs, so DinD is impossible here.
12
+ # - docker is installed from the AL2023 repos (Vercel Sandbox now supports
13
+ # nested containers). dockerd is NOT auto-started by systemd; the cloud
14
+ # scaffold launches it via agentbox-dockerd-start on create/resume.
14
15
  # - The `vscode` user is created without forcing uid 1000 (the Vercel default
15
16
  # user may already hold it; there are no bind mounts so the exact uid is
16
17
  # irrelevant — only ownership of /workspace + /home/vscode matters).
@@ -18,6 +19,7 @@
18
19
  # Required inputs (uploaded to /tmp before this runs):
19
20
  # /tmp/agentbox-ctl -- prebuilt @agentbox/ctl bundle (cjs)
20
21
  # /tmp/agentbox-vnc-start -- VNC startup helper
22
+ # /tmp/agentbox-dockerd-start -- in-box dockerd startup helper
21
23
  # /tmp/agentbox-checkpoint-cleanup -- pre-snapshot cleanup helper
22
24
  # /tmp/agentbox-open -- in-box xdg-open shim
23
25
  # /tmp/agentbox-gh-shim -- in-box `gh` shim (routes to host gh)
@@ -104,6 +106,18 @@ chmod 755 /workspace
104
106
  chown vscode:vscode /workspace /run/agentbox /var/log/agentbox /var/lib/agentbox
105
107
  done_ "agentbox base dirs + /workspace ownership"
106
108
 
109
+ step "docker engine (in-box DinD)"
110
+ # Vercel Sandbox now supports nested containers. Install the engine + iptables
111
+ # from the AL2023 repos; dockerd itself is launched by the cloud scaffold via
112
+ # agentbox-dockerd-start (NOT systemd), so the agentbox path owns its lifecycle.
113
+ # No /etc/docker/daemon.json here — agentbox-dockerd-start rewrites it with the
114
+ # resolved storage-driver on every start.
115
+ dnf install -y -q --allowerasing docker iptables
116
+ groupadd -f docker
117
+ usermod -aG docker vscode
118
+ systemctl disable --now docker.service docker.socket 2>/dev/null || true
119
+ done_ "docker engine (in-box DinD)"
120
+
107
121
  step "node setcap (bind <1024 without root)"
108
122
  # The cloud WebProxy binds port 80; grant node the capability so it needn't run
109
123
  # as root. Best-effort — if setcap is unavailable the WebProxy can still be
@@ -134,8 +148,9 @@ step "agentbox-ctl install"
134
148
  install -m 0755 /tmp/agentbox-ctl /usr/local/bin/agentbox-ctl
135
149
  done_ "agentbox-ctl install"
136
150
 
137
- step "baked helper scripts (vnc / cleanup / xdg-open)"
151
+ step "baked helper scripts (vnc / dockerd / cleanup / xdg-open)"
138
152
  install -m 0755 /tmp/agentbox-vnc-start /usr/local/bin/agentbox-vnc-start
153
+ install -m 0755 /tmp/agentbox-dockerd-start /usr/local/bin/agentbox-dockerd-start
139
154
  install -m 0755 /tmp/agentbox-checkpoint-cleanup /usr/local/bin/agentbox-checkpoint-cleanup
140
155
  install -m 0755 /tmp/agentbox-open /usr/local/bin/agentbox-open
141
156
  ln -sf /usr/local/bin/agentbox-open /usr/local/bin/xdg-open
@@ -143,7 +158,7 @@ ln -sf /usr/local/bin/agentbox-open /usr/local/bin/xdg-open
143
158
  # Installing them here would put the relay-routing `git` on PATH ahead of
144
159
  # /usr/bin/git and route provision.sh's own noVNC `git clone` through a relay
145
160
  # that doesn't exist during the bake.
146
- done_ "baked helper scripts (vnc / cleanup / xdg-open)"
161
+ done_ "baked helper scripts (vnc / dockerd / cleanup / xdg-open)"
147
162
 
148
163
  step "baked config files (claude / codex / setup guide / tmux.conf)"
149
164
  install -m 0644 /tmp/agentbox-custom-CLAUDE.md /etc/claude-code/CLAUDE.md
@@ -328,7 +343,7 @@ install -m 0755 /tmp/agentbox-linear-shim /usr/local/bin/linear
328
343
  done_ "relay shims (gh + git + ntn + linear)"
329
344
 
330
345
  step "trim /tmp/agentbox-*"
331
- rm -f /tmp/agentbox-ctl /tmp/agentbox-vnc-start \
346
+ rm -f /tmp/agentbox-ctl /tmp/agentbox-vnc-start /tmp/agentbox-dockerd-start \
332
347
  /tmp/agentbox-checkpoint-cleanup /tmp/agentbox-open \
333
348
  /tmp/agentbox-gh-shim /tmp/agentbox-git-shim /tmp/agentbox-ntn-shim \
334
349
  /tmp/agentbox-linear-shim \
@@ -276,7 +276,7 @@ On Vercel: this actually STOPS the sandbox, so warn the user about it. Also the
276
276
 
277
277
  - For Nextjs/Vite/Tasnstack projects, makes sure to forward also websocket for hot reload.
278
278
 
279
- - Service like flask, nextjs, BETTER_AUTH_URL, NEXT_PUBLIC_APP_URL should use the `<boxname>.localhost` url for the local development so that on the host it will use the same url as the box. Render this automatically instead of hand-writing `sed` — see section 6c.
279
+ - Service like flask, nextjs, BETTER_AUTH_URL, NEXT_PUBLIC_APP_URL should use the env-init `{{AGENTBOX_BOX_HOST}}` in agentbox.yaml so it will be automatically replaced.
280
280
 
281
281
  - The `install` task above uses `run_once: true`, so it is a no-op on warm boots. Do **not** wrap it in a manual marker check too. To force a one-off rebuild, run `agentbox-ctl run-task install --force` (which bypasses the run_once marker), or edit the command (a changed command invalidates the hash and re-runs).
282
282
 
@@ -12,8 +12,8 @@ Fork the current Claude Code session into a fresh AgentBox box.
12
12
 
13
13
  1. **Resolve the provider flag from `$ARGUMENTS`:**
14
14
  - empty → no flag (uses the default docker provider)
15
- - `docker` | `daytona` | `hetzner` | `vercel` → pass `--provider $ARGUMENTS`
16
- - anything else → stop and tell the user the valid values are `docker`, `daytona`, `hetzner`, `vercel`
15
+ - `docker` | `daytona` | `hetzner` | `vercel` | `e2b` → pass `--provider $ARGUMENTS`
16
+ - anything else → stop and tell the user the valid values are `docker`, `daytona`, `hetzner`, `vercel`, `e2b`
17
17
 
18
18
  2. **Detect an active plan (optional `--plan`).** If this session was just working on a Claude Code plan, carry it into the box so the fork resumes in plan mode.
19
19
  - **If you know the plan file path** for this session (plan mode writes it to `~/.claude/plans/<slug>.md`, and you have it from the plan you just produced in this conversation), use that path.
@@ -26,10 +26,10 @@ Fork the current Claude Code session into a fresh AgentBox box.
26
26
 
27
27
  If it prints a path, that's the current plan; if it prints nothing, there is no active plan — skip `--plan`.
28
28
 
29
- 3. **Fork.** If you are in plan mode, exit it, then run, via the Bash tool, exactly one command (add `--plan "<path>"` only if step 2 found a plan):
29
+ 3. **Fork.** If you are in plan mode, exit it, then run, via the Bash tool, exactly one command (add `--plan "<path>"` only if step 2 found a plan). Do NOT pass `--session`: `agentbox fork` autodetects the current Claude session itself (and safely falls back to the newest session for this workspace), which is correct even when this skill runs in a subagent where `$CLAUDE_CODE_SESSION_ID` would be the subagent's id, not the conversation you want to fork:
30
30
 
31
31
  ```
32
- agentbox fork --session ${CLAUDE_SESSION_ID} [--provider $ARGUMENTS] [--plan "<plan path>"]
32
+ agentbox fork [--provider $ARGUMENTS] [--plan "<plan path>"]
33
33
  ```
34
34
 
35
35
  4. **Report.** In one line, give the user the new box name (parse it from the command output) and confirm their host session is unaffected. If you passed `--plan`, mention the box opens in plan mode ready to resume. Do not summarize the conversation — the fork already carries it.
@@ -13,7 +13,7 @@ If you find yourself *inside* a box (`/workspace` exists and `AGENTBOX_RELAY_URL
13
13
 
14
14
  ## What AgentBox is, in one paragraph
15
15
 
16
- AgentBox spins up one isolated sandbox per agent run — a local Docker container (default), a Hetzner VPS (`--provider hetzner`), a Vercel Sandbox (`--provider vercel`), or a Daytona cloud sandbox (`--provider daytona`, partial support). Each box has its own `/workspace`, but the host's `.git/` is shared, so commits made inside the box land on the host immediately. The agent inside the box has **no host credentials** — `git push`, opening URLs in the host browser, capturing checkpoints, and all other host-side operations flow through a small host process called the **relay** that runs alongside the CLI.
16
+ AgentBox spins up one isolated sandbox per agent run — a local Docker container (default), a Hetzner VPS (`--provider hetzner`), a Vercel Sandbox (`--provider vercel`), an E2B microVM (`--provider e2b`), or a Daytona cloud sandbox (`--provider daytona`, partial support). Each box has its own `/workspace`, but the host's `.git/` is shared, so commits made inside the box land on the host immediately. The agent inside the box has **no host credentials** — `git push`, opening URLs in the host browser, capturing checkpoints, and all other host-side operations flow through a small host process called the **relay** that runs alongside the CLI.
17
17
 
18
18
  ## The two starting commands
19
19
 
@@ -28,7 +28,7 @@ agentbox create --provider hetzner # cloud VPS (requires `agentbox prepare --
28
28
  agentbox create --attach # drop into a shell inside the box after create
29
29
  ```
30
30
 
31
- Useful flags: `-n <name>` (friendly box name), `--provider docker|daytona|hetzner|vercel`, `--attach`, `-w <path>` (workspace to mount; defaults to `cwd`), `--snapshot <ref>` (start from a checkpoint).
31
+ Useful flags: `-n <name>` (friendly box name), `--provider docker|daytona|hetzner|vercel|e2b`, `--attach`, `-w <path>` (workspace to mount; defaults to `cwd`), `--snapshot <ref>` (start from a checkpoint).
32
32
 
33
33
  Non-docker providers require a one-time `agentbox prepare --provider <name>` to bake the base image / snapshot.
34
34
 
@@ -66,13 +66,13 @@ agentbox dashboard # TUI with status + leader-key actions
66
66
  agentbox claude attach <name|n> # reattach to a specific box
67
67
  ```
68
68
 
69
- `-i` works on every provider — pass `--provider daytona|hetzner|vercel` (or set `box.provider`) and the queued job creates a cloud box and pre-starts the seeded agent session detached, same as docker. The host must have valid agent credentials. Extra args after `--` are forwarded to the in-box agent (e.g. `agentbox claude -i "<prompt>" --provider vercel -- --permission-mode=plan`).
69
+ `-i` works on every provider — pass `--provider daytona|hetzner|vercel|e2b` (or set `box.provider`) and the queued job creates a cloud box and pre-starts the seeded agent session detached, same as docker. The host must have valid agent credentials. Extra args after `--` are forwarded to the in-box agent (e.g. `agentbox claude -i "<prompt>" --provider vercel -- --permission-mode=plan`).
70
70
 
71
71
  `-i` honors the project's `carry:` block: the carry gate runs on the host when you submit (it prompts there, since you're at the terminal), and the approved files ride the queued job and land in the box at create time. Auto-approve non-interactively with `--carry-yes` (or `AGENTBOX_CARRY_YES=1`); skip with `--carry skip` (or `AGENTBOX_CARRY=skip`).
72
72
 
73
73
  ## Forking the current session into a box
74
74
 
75
- From host Claude, run the **`/agentbox`** slash command (optional arg: `docker` | `daytona` | `hetzner`) to snapshot the *current* Claude Code session into a brand-new box that resumes it. With tmux or iTerm it opens in a new terminal tab; otherwise it starts in the background. The host session is unaffected — you get two parallel timelines. The underlying CLI is `agentbox fork` (`agentbox fork --help`); `/agentbox` requires `agentbox install` to have been run once. This is distinct from `-i`, which seeds a *new* prompt rather than resuming the live conversation. Fork **sends** the project's `carry:` block by default (the host is trusted; the box is the untrusted side, so host→box copy is safe) — opt out with `agentbox fork --carry skip`.
75
+ From host Claude, run the **`/agentbox`** slash command (optional arg: `docker` | `daytona` | `hetzner` | `vercel` | `e2b`) to snapshot the *current* Claude Code session into a brand-new box that resumes it. With tmux or iTerm it opens in a new terminal tab; otherwise it starts in the background. The host session is unaffected — you get two parallel timelines. The underlying CLI is `agentbox fork` (`agentbox fork --help`); `/agentbox` requires `agentbox install` to have been run once. This is distinct from `-i`, which seeds a *new* prompt rather than resuming the live conversation. Fork **sends** the project's `carry:` block by default (the host is trusted; the box is the untrusted side, so host→box copy is safe) — opt out with `agentbox fork --carry skip`.
76
76
 
77
77
  ## Driving one agent from another (`drive`, `agent`, `queue wait-for`)
78
78
 
@@ -80,7 +80,7 @@ When *you* are the host-side agent and want to orchestrate other agents running
80
80
 
81
81
  ### `agentbox drive <box>` — terminal driving
82
82
 
83
- Targets the running tmux session inside a box (auto-picks the agent session: `claude` → `codex` → `opencode` → the only running session; override with `--session <name>`). Provider-uniform — works the same on docker / daytona / hetzner / vercel.
83
+ Targets the running tmux session inside a box (auto-picks the agent session: `claude` → `codex` → `opencode` → the only running session; override with `--session <name>`). Provider-uniform — works the same on docker / daytona / hetzner / vercel / e2b.
84
84
 
85
85
  ```sh
86
86
  agentbox drive snapshot 1 # print rendered TUI as plain text
@@ -225,7 +225,7 @@ If a PR op appears to hang, tell the user to check the dashboard footer for the
225
225
  | `agentbox url [n\|name]` | Open the box's web app URL (`<box-name>.localhost` via Portless) in the host browser. |
226
226
  | `agentbox screen [n\|name]` | Open the box's **own** Chromium via VNC — useful for OAuth flows the agent inside the box initiates. |
227
227
  | `agentbox code [n\|name]` | Open VS Code / Cursor pointed at the box. |
228
- | `agentbox prepare --provider <name>` | One-time base image / snapshot build for `daytona` or `hetzner` or `vercel`. With no `--provider`, prints status across all providers. |
228
+ | `agentbox prepare --provider <name>` | One-time base image / snapshot build for `daytona`, `hetzner`, `vercel`, or `e2b` (e2b builds the base from a Dockerfile via `Template.build()`). With no `--provider`, prints status across all providers. |
229
229
  | `agentbox prune --provider <name>` | Clean up orphan boxes / images / snapshots for a provider (docker + daytona supported; hetzner pending). |
230
230
  | `agentbox cp <src> <dst>` | Copy a file/dir host↔box (`box:/path` prefix picks direction). Heavy dirs (`.git`, `node_modules`, build output) are dropped by default; add `--exclude=<glob\|name>` or `--no-default-excludes`. Uploads over `box.cpMaxBytes` (100 MB, post-exclude) are **blocked** with a size breakdown — trim with `--exclude`, copy heavy folders one at a time, or pass `--yes`. |
231
231
 
@@ -6,7 +6,7 @@ argument-hint: [provider]
6
6
 
7
7
  Fork the current Codex session into a fresh AgentBox box running Codex.
8
8
 
9
- Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default docker).
9
+ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner | vercel | e2b; default docker).
10
10
 
11
11
  ## Steps
12
12
 
@@ -14,7 +14,13 @@ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default do
14
14
  - If `AGENTBOX_RELAY_URL` is set in the environment, you are running *inside* a box — box→box fork is not supported yet; stop and tell the user.
15
15
  - If `which agentbox` fails, tell the user to install AgentBox (`npm -g install @madarco/agentbox`) and stop.
16
16
 
17
- 2. **Find the current Codex session id.** Codex exposes no session-id variable, so resolve it from the most recently written rollout file (that is the live session). Run via your shell tool:
17
+ 2. **Find the current Codex session id.** Codex exposes it as `CODEX_THREAD_ID` in your shell. Run via your shell tool:
18
+
19
+ ```
20
+ printenv CODEX_THREAD_ID
21
+ ```
22
+
23
+ That prints the session `<uuid>`. If it prints nothing (older Codex without the variable), fall back to the most recently written rollout file (that is the live session):
18
24
 
19
25
  ```
20
26
  ls -t "$HOME"/.codex/sessions/*/*/*/rollout-*.jsonl 2>/dev/null | head -1 \
@@ -22,9 +28,9 @@ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default do
22
28
  | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
23
29
  ```
24
30
 
25
- That prints the session `<uuid>`. If it prints nothing, stop and tell the user no Codex session was found for this machine.
31
+ If both print nothing, stop and tell the user no Codex session was found for this machine.
26
32
 
27
- 3. **Resolve the provider flag from `$ARGUMENTS`:** empty → none; `docker` | `daytona` | `hetzner` → `--provider $ARGUMENTS`; anything else → stop and report the valid values.
33
+ 3. **Resolve the provider flag from `$ARGUMENTS`:** empty → none; `docker` | `daytona` | `hetzner` | `vercel` | `e2b` → `--provider $ARGUMENTS`; anything else → stop and report the valid values.
28
34
 
29
35
  4. **Fork.** Run, via your shell tool:
30
36
 
@@ -32,4 +38,6 @@ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default do
32
38
  agentbox fork --agent codex --session <uuid> [--provider <from step 3>]
33
39
  ```
34
40
 
41
+ (`agentbox fork` autodetects Codex from `CODEX_THREAD_ID` on its own, so a bare `agentbox fork` works too — passing `--agent codex --session <uuid>` explicitly is just the most reliable form.)
42
+
35
43
  5. **Report** the new box name from the command output. Your current Codex session is unaffected — you now have two parallel timelines.
@@ -5,7 +5,7 @@ description: Spawn a parallel AgentBox box running OpenCode for this project (op
5
5
 
6
6
  Spawn a new AgentBox box running OpenCode for the current project, in a new terminal tab.
7
7
 
8
- Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default docker).
8
+ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner | vercel | e2b; default docker).
9
9
 
10
10
  **Note:** resuming an OpenCode session into a box isn't supported yet (sessions live in a shared SQLite DB), so this starts a **fresh** OpenCode session in the box — it does not carry the current conversation.
11
11
 
@@ -15,7 +15,7 @@ Optional provider argument: `$ARGUMENTS` (docker | daytona | hetzner; default do
15
15
  - If `AGENTBOX_RELAY_URL` is set in the environment, you are running *inside* a box — not supported; stop and tell the user.
16
16
  - If `which agentbox` fails, tell the user to install AgentBox (`npm -g install @madarco/agentbox`) and stop.
17
17
 
18
- 2. **Resolve the provider flag from `$ARGUMENTS`:** empty → none; `docker` | `daytona` | `hetzner` → `--provider $ARGUMENTS`; anything else → stop and report the valid values.
18
+ 2. **Resolve the provider flag from `$ARGUMENTS`:** empty → none; `docker` | `daytona` | `hetzner` | `vercel` | `e2b` → `--provider $ARGUMENTS`; anything else → stop and report the valid values.
19
19
 
20
20
  3. **Fork.** Run, via your shell tool:
21
21
 
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- buildCloudAttachInnerCommand,
4
- cloudAgentAttach,
5
- cloudAgentStartDetached
6
- } from "./chunk-5BO6SGMI.js";
7
- import "./chunk-U7IZS2ZP.js";
8
- import "./chunk-6QFPYU4Z.js";
9
- import "./chunk-G3H2L3O2.js";
10
- import "./chunk-WJFZJZIM.js";
11
- export {
12
- buildCloudAttachInnerCommand,
13
- cloudAgentAttach,
14
- cloudAgentStartDetached
15
- };
16
- //# sourceMappingURL=_cloud-attach-3UC3IL62.js.map