vercel-sandbox
Skill365 starsChanged 8 months agoApache-2.0View on GitHub
Investigate Vercel Sandbox lifecycle, timeout, snapshot, and persistence behavior. Use when users ask about Vercel Sandbox, `@vercel/sandbox`, `Sandbox.create`, `Sandbox.get`, why files disappeared, how snapshots differ from persistence, or whether Vercel's persistent sandbox beta applies.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- vercel-labs/agent-browsertheir own version, first seen Sep 16, 2026
- vercel/vercel-plugintheir own version, first seen Aug 12, 2026
- openai/pluginstheir own version, first seen May 13, 2026
- vercel-labs/workflow-workshoptheir own version, first seen Apr 20, 2026
- ludwighb/claude_skillstheir own version, first seen Apr 13, 2026
- miketromba/skillstheir own version, first seen Apr 8, 2026
Used with
Projects with it also use electron, slack and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillelectron
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
Also in 3 projects that use this
VercelSkillslack
Emulated Slack API for local development and testing. Use when the user needs to interact with Slack API endpoints locally, test Slack integrations, emulate channels/messages/users/views, set up Slack OAuth flows, test incoming webhooks, or work with the Slack Web API without hitting the real Slack API. Triggers include "Slack API", "emulate Slack", "mock Slack", "test Slack OAuth", "Slack bot", "Slack views", "incoming webhook", "local Slack", or any task requiring a local Slack API.
Also in 3 projects that use this
- +1 more from vercel-labs
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- vercel-labs/agent-browser★ 44ksame name
- openai/plugins★ 7.3ksame name
- vercel/vercel-plugin★ 297same name
- vercel-labs/workflow-workshop★ 6same name
- JayAI623/claude-code-config★ 2same name
- miketromba/skills★ 2same name
- ludwighb/claude_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/docs/public/llms.txtllms.txt
- nitroSkill
- pi-agent-integrationSkill
- public-docsSkill
- slack-developmentSkill
- vercel-queuesSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- eval-guardian-actionsSkill
- eval-authSkill
- eval-directorySkill
- eval-mcpSkill
- eval-oauthSkill
- eval-operationSkill
- incident-briefSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- self-updateSkill
- notionSkill
- octolensSkill
- sentrySkill
- jr-rpcSkill
- eval-authSkill
- eval-mcp-openSkill
- ttsSkill
- vercelSkill
- junior-qaSkill
- juniorSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If the task spans categories, load only the relevant files above.
- Very specific: line 23
If local types only expose sandboxId, Sandbox.get({ sandboxId }), extendTimeout, and snapshot-backed source, treat the runtime as stable …
- Very specific: line 24
If local code and types expose named sandboxes, name, persistent, session updates, or automatic resume after stop, treat the runtime as the …
- Distinctive: line 40
Do not infer persistent-beta behavior from a changelog alone.
- Distinctive: line 44
Check the installed SDK surface first:
- Distinctive: line 88
Use external storage or migrate intentionally to the persistent beta model after confirming API availability.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Investigate Vercel Sandbox using current official docs, installed SDK contracts, and only then any consumer-specific integration code.
Step 1: Classify the request
Pick the narrowest reference set before answering:
| Request type | Read first |
| SDK/API behavior, lifecycle semantics, snapshots, stable vs beta persistence | references/api-surface.md |
| Product-level usage patterns and architectural choices | references/common-use-cases.md |
| Broken behavior, confusing docs, missing files, or suspected persistence bugs | references/troubleshooting-workarounds.md |
If the task spans categories, load only the relevant files above.
Step 2: Establish which sandbox model applies
- Inspect the installed
@vercel/sandboxversion and local types before trusting any doc page or changelog. - If local types only expose
sandboxId,Sandbox.get({ sandboxId }),extendTimeout, and snapshot-backedsource, treat the runtime as stable 1.x ephemeral sandboxes. - If local code and types expose named sandboxes,
name,persistent, session updates, or automatic resume after stop, treat the runtime as the persistent beta model. - Qualify time-sensitive claims with a date or retrieval note.
Step 3: Apply core guardrails
- Distinguish three separate clocks before diagnosing workspace loss:
- Vercel function/runtime timeout
- Application/request timeout in the embedding system
- Sandbox timeout
- On stable 1.x,
Sandbox.get({ sandboxId })only helps while the sandbox is still alive. - On stable 1.x, once the sandbox stops, its filesystem is gone. Do not describe that as resumable persistence.
sandbox.snapshot()is not workspace durability. It creates a new snapshot artifact and stops the source sandbox.- Snapshots and persistent beta solve different problems:
- snapshots create new starting points
- persistent beta preserves named workspace state across sessions
- In embedded systems, inspect the consumer's persistence wiring before concluding that Vercel destroyed the workspace immediately.
- Do not infer persistent-beta behavior from a changelog alone. Confirm the installed SDK and local call sites.
Step 4: Investigate the Vercel surface first
- Check the installed SDK surface first:
- installed
@vercel/sandboxtypes - official stable docs for concepts, snapshots, SDK reference, and limits
- persistent-beta changelog only if named persistence is relevant
- installed
- Determine whether the question is about:
- active sandbox reuse
- stopped sandbox recovery
- snapshot-based warm starts
- persistent named workspaces
- Establish which timeout fired first and whether the sandbox should still have been active.
Step 5: Inspect consumer code only when the task is app-specific
For repo-local debugging in Junior, inspect:
- timeout budget alignment:
packages/junior/src/chat/config.tspackages/junior/src/chat/app/production.ts
- sandbox identity persistence and reuse:
packages/junior/src/chat/runtime/thread-state.tspackages/junior/src/chat/runtime/turn-preparation.tspackages/junior/src/chat/sandbox/session.ts
- whether timeout paths actually resume:
packages/junior/src/chat/agent/index.tspackages/junior/src/chat/agent/resume.tspackages/junior/src/chat/runtime/agent-continue-runner.ts
- where sandbox metadata is persisted:
packages/junior/src/chat/runtime/reply-executor.ts
- whether consumer-specific snapshots are being confused with Vercel product persistence:
packages/junior/src/chat/sandbox/README.md
Step 6: Recommend the smallest correct fix
Choose the narrowest fix that matches the diagnosed failure mode:
- Sandbox still alive but next turn started fresh:
- Persist sandbox identity earlier.
- Resume from the active sandbox instead of recreating it.
- Sandbox actually stopped:
- Increase sandbox timeout or extend it while work is active.
- Externalize intermediate outputs if they must survive stop.
- Confusion caused by docs drift:
- Align implementation advice to the installed SDK, not the newest beta docs.
- Need true durability across stop/timeout boundaries:
- Use external storage or migrate intentionally to the persistent beta model after confirming API availability.
Step 7: Return a concrete diagnosis
Default report structure:
- Active sandbox model:
stable-ephemeralorpersistent-beta - What likely timed out first
- Whether the sandbox probably still existed after the failed turn
- Whether workspace loss came from Vercel stop/destruction or consumer state handling
- Smallest next fix, with the exact file(s) or SDK change required
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

