subagentidentities

.com agent identity

← all directives

Cloud-sandbox rule for ALL workers/* projects

repo wide applies to: every session, any surface
directive

Never run npm install/tsc/wrangler from a cloud/agent sandbox — node_modules sits on a mount shared with the real Mac, and a Linux sandbox install poisons it with wrong-platform workerd/esbuild binaries. Use Desktop Commander (or the user's own terminal) for install/typecheck/deploy; read-only curl against the live public URLs is fine from a sandbox.

rationale

A Linux cloud sandbox and the real macOS Desktop Commander session share a filesystem mount but not an OS/CPU architecture — installing Cloudflare Workers' native deps (workerd, esbuild) from the wrong platform silently corrupts every worker's node_modules until a full reinstall.

layer

custom instructions

grounded in

CLAUDE.md, "Session handoffs", "Cloud-sandbox rule for ALL workers/* projects"

created 2026-07-02 14:04:26