benchmark-agents
Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features — Workflow SDK, AI Gateway, MCP, Chat…
Offload heavy builds, full test suites and parallel experiments from the local machine to Vercel Sandboxes with the `vercel sandbox` CLI. Use when a local machine is overloaded or shared by several agents, when a test suite should be sharded, or when many tasks should run side
$ npx -y skills add vercel/vercel-plugin --skill offload-to-sandbox --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/offload-to-sandboxContext preview
The summary Claude sees to decide when to auto-load this skill.
Offload heavy builds, full test suites and parallel experiments from the local machine to Vercel Sandboxes with the `vercel sandbox` CLI. Use when a local machine is overloaded or shared by several agents, when a test suite should be sharded, or when many tasks should run side
name: offload-to-sandbox
description: Offload heavy builds, full test suites and parallel experiments from the local machine to Vercel Sandboxes with the `vercel sandbox` CLI. Use when a local machine is overloaded or shared by several agents, when a test suite should be sharded, or when many tasks should run side by side without consuming local CPU, memory or disk.
summary: "Offload heavy work to Vercel Sandboxes: build a base snapshot once (toolchain + deps + baseline build), create one non-persistent sandbox per task from it (`vercel sandbox create --name <task> --non-persistent --snapshot <snap_id> --vcpus 8 --timeout 3h`; Hobby allows 4 vCPUs and 45-minute sessions), push code as a tarball of git-tracked and untracked files while keeping heavy dirs like node_modules, run commands as one quoted `sh -c` string (long jobs detached with an exit-status file you poll), copy small result files back, shard suites across sandboxes, check failures against an untouched baseline in the same sandbox, and `vercel sandbox remove` every sandbox when done. `vercel sandbox exec` exits 0 even when the remote command fails, so read the remote exit status yourself."
metadata:
priority: 5
docs:
- "https://vercel.com/docs/sandbox"
- "https://vercel.com/docs/cli/sandbox"
- "https://vercel.com/docs/sandbox/cli-reference"
- "https://vercel.com/docs/sandbox/pricing"
sitemap: "https://vercel.com/sitemap.xml"
pathPatterns: []
importPatterns: []
bashPatterns:
- '\b(?:vercel|vc)\s+sandbox\s+(?:create|exec|copy|cp|snapshot|run|fork)\b'
promptSignals:
phrases:
- "offload to a sandbox"
- "offload to sandbox"
- "run it in a sandbox"
- "run the tests in a sandbox"
- "remote sandbox"
- "remote sandboxes"
- "use sandboxes"
- "shard the test suite"
- "machine is overloaded"
allOf:
- [sandbox, offload]
- [sandbox, remote]
- [sandbox, "test suite"]
- [sandbox, shard]
- [sandbox, parallel]
- [sandboxes, agents]
anyOf:
- "sandbox"
- "sandboxes"
- "offload"
- "remote"
noneOf:
- "iframe sandbox"
- "sandbox attribute"
- "codesandbox.io"
minScore: 6
retrieval:
aliases:
- offload work to vercel sandbox
- remote build machine
- remote test runner
intents:
- offload builds and tests to a sandbox
- shard a test suite across machines
- run parallel experiments remotely
entities:
- Vercel Sandbox
- vercel sandbox CLI
- snapshotA Vercel Sandbox is a Linux microVM (x86_64) you can create in seconds and remove when you're done. That makes it a good remote worker: it keeps heavy builds and long test suites off your laptop and gives every agent or task its own clean machine. This skill covers how to do that efficiently with the `vercel sandbox` CLI. For the `@vercel/sandbox` SDK and running untrusted code, see the `vercel-sandbox` skill.
Offload:
Keep local:
A good default when several agents share one machine: agents edit locally and run quick focused checks, and everything heavy goes to their own sandboxes.
| | Hobby | Pro | Enterprise | |---|---|---|---| | Max vCPUs (2 GB memory each) | 4 (8 GB) | 8 (16 GB) | 32 (64 GB) | | Max session duration | 45 minutes | 24 hours | 24 hours | | Concurrent sandboxes | 10 | 10,000 | 10,000 |
`--vcpus` takes 1 or an even number up to your plan's maximum; the default is 2. The examples below use Pro sizes (`--vcpus 8`, `--timeout 3h`). On Hobby, use `--vcpus 4` and a timeout of `45m` or less. Hobby also includes only 5 hours of Active CPU a month, so heavy offloading realistically needs Pro.
Running sandboxes are billed for Active CPU and provisioned memory. Snapshots are billed as Snapshot Storage per GB-month for as long as they exist.
Installing toolchains and dependencies in every new sandbox wastes minutes and money. Do it once, snapshot, and start everything else from the snapshot:
# 1. Create a builder sandbox from the default image (Ubuntu, Node.js, Python, common tools). vercel sandbox create --name base-builder --non-persistent --vcpus 8 --timeout 2h --image vercel/sandbox/universal # 2. Install the pinned toolchain and build the baseline tree once. vercel sandbox copy ./setup-base.sh base-builder:/vercel/sandbox/setup-base.sh vercel sandbox exec base-builder -- sh -c 'cd /vercel/sandbox && sh setup-base.sh; echo "exit=$?"' # 3. Snapshot it (this stops the sandbox). The ID is printed on stderr, not stdout. vercel sandbox snapshot base-builder --stop --expiration 0 2>&1 | grep -o 'snap_[A-Za-z0-9_-]*' | head -n 1 > BASE_SNAPSHOT test -s BASE_SNAPSHOT # 4. The builder is no longer needed. Removing it keeps the snapshot. vercel sandbox remove base-builder
Check that step 2 printed `exit=0` before you snapshot (see [Run commands](#run-commands) for why).
What to put in the base:
Keep the snapshot ID in a file next to your tooling. `--expiration 0` means the snapshot never expires, so it is billed until you delete it. When the toolchain changes, build a new snapshot and delete the old
Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features — Workflow SDK, AI Gateway, MCP, Chat…
End-to-end benchmark suite for vercel-plugin. Runs realistic projects through skill injection, launches dev servers, verifies…
Run vercel-plugin eval scenarios in Vercel Sandboxes instead of local WezTerm panels. Provisions ephemeral microVMs with Claude…
Create and launch benchmark test projects to exercise vercel-plugin skill injection across realistic scenarios. Sets up isolated…
Audit vercel-plugin performance on real-world projects. Extracts tool calls from Claude Code conversation logs, tests hook…
Release vercel-plugin — run gates, bump version, generate artifacts, commit, and push. Use when asked to "release", "ship", "bump…