Skip to content

[skills] Add the working directory and drive guidance to the vercel-sandbox summary - #402

Closed
erulkey wants to merge 1 commit into
mainfrom
erulkey/sandbox-summary-workdir-drives
Closed

erulkey wants to merge 1 commit into
mainfrom
erulkey/sandbox-summary-workdir-drives

Conversation

@erulkey

@erulkey erulkey commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Most agents see only the vercel-sandbox summary, because the full skill (25 KB, or 43 KB after vercel/vercel-plugin#397) is over the 18 KB and 8 KB injection budgets. The summary was missing two things agents get wrong:

  • Working directory: commands start in /vercel, not /vercel/sandbox. The SDK reference says "Managed images use /vercel". On the current default image, a cwd under /vercel/sandbox fails with chdir /vercel/sandbox: no such file or directory unless something created it first.
  • Drives: put repos, caches, and datasets on a drive and keep snapshots for startup state. This follows the Drives page.

The summary grows from 962 to 1,229 bytes. Only overlay.yaml and the regenerated SKILL.md frontmatter change.

vercel/sandbox#459 fixes the same path in the upstream skill body, and it reaches this repo on the next resync. This branch merges cleanly with #397.

bun run build:all, validate, typecheck, and bun test (1313 pass, 0 fail) all pass locally. I checked the /vercel working directory against a live sandbox on @vercel/sandbox 3.9.1.

@erulkey

erulkey commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing this. Since #314, the inject hooks send only You must run the Skill(<name>) tool. and don't inject summary, so agents read the full SKILL.md. The working-directory and drive guidance is going into the skill body upstream in vercel/sandbox#459, which reaches the plugin on the next resync.

@erulkey erulkey closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant