@tangle-network/sandbox-cli 0.13.0-develop.20260727080351.3333e68 → 0.13.0-develop.20260727092139.956d833

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.
package/README.md CHANGED
@@ -92,6 +92,7 @@ Top-level command groups:
92
92
  - `usage`
93
93
  - `permissions`
94
94
  - `backend`
95
+ - `batch`
95
96
  - `process`
96
97
  - `fs`
97
98
 
@@ -189,6 +190,34 @@ tangle sandbox create --name gpu-eval \
189
190
  The final detach output includes billed seconds and customer cost.
190
191
  Use `tangle usage` to inspect account-level GPU seconds and GPU spend.
191
192
 
193
+ ## Batch Runs
194
+
195
+ Run each task against one explicitly named backend:
196
+
197
+ ```bash
198
+ tangle batch run --tasks tasks.json --backend primary=opencode
199
+ ```
200
+
201
+ `tasks.json` is an array of `{ "id": "...", "message": "..." }` objects or an object with a `tasks` array.
202
+ At least one `--backend <id=type>` is required with `--tasks` or `--task`.
203
+
204
+ Repeat `--backend <id=type>` to run every task against multiple backends:
205
+
206
+ ```bash
207
+ tangle batch run --tasks tasks.json \
208
+ --backend writer=opencode \
209
+ --backend reviewer=claude-code \
210
+ --stream
211
+ ```
212
+
213
+ Backend IDs must be unique and use 1 to 128 letters, numbers, dots, underscores, or hyphens.
214
+ Use `--model provider/model` only when one backend is selected.
215
+ Each result is identified by both `taskId` and `backendId`.
216
+ JSON output reports `totalTasks`, `totalBackends`, `totalExecutions`, `totalSuccess`, `totalFailure`, `totalRetries`, and `successRate`.
217
+
218
+ Use `--request <file.json>` when each backend needs its own model, profile, server, or lifecycle configuration.
219
+ The file uses the same complete request shape as the TypeScript SDK and cannot be combined with inline task or backend flags.
220
+
192
221
  ## Provisioning Coverage
193
222
 
194
223
  `tangle sandbox create` supports environments or container images, resources, temporary GPU leases, lifecycle limits, driver and backend selection, SSH and web terminal, environment variables, secrets, metadata, git clone, BYOS3 storage, and snapshot restore.
package/SKILL.md CHANGED
@@ -305,6 +305,7 @@ tangle tools install <id> python 3.12
305
305
 
306
306
  # Batch tasks across sandboxes
307
307
  tangle batch run --tasks tasks.json
308
+ tangle batch run --tasks tasks.json --backend writer=opencode --backend reviewer=claude-code --stream
308
309
 
309
310
  # Intelligence reports
310
311
  tangle intelligence sandbox <id>
@@ -340,7 +341,8 @@ tangle permissions add <sandboxId> --userId <userId> --role editor
340
341
  | Save and restore state | `tangle snapshot create <id>` → ...work... → `tangle snapshot revert <id> <snap-id>` |
341
342
  | Set secret for agent use | `tangle secret create GITHUB_TOKEN "..."` → agent reads via `process.env.GITHUB_TOKEN` |
342
343
  | Set hub permissions | `tangle hub permissions set --connection conn_xxx --action github.issues.createIssue --decision allow` |
343
- | Batch parallel agent prompts | `tangle batch run --tasks tasks.json` (array of `{sandboxId, message}`) |
344
+ | Batch parallel agent prompts | `tangle batch run --tasks tasks.json --backend primary=opencode` (array of `{id, message}`) |
345
+ | Compare backends on the same tasks | `tangle batch run --tasks tasks.json --backend writer=opencode --backend reviewer=claude-code --stream` |
344
346
 
345
347
  ## Common Mistakes
346
348