Agent skill

Sandbox 2026 Deprecation

by try-works in try-works/role-model

Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).

Custom licenceAuto-check passedBackend & APIs

Install Sandbox 2026 Deprecation

skills CLI
$ npx skills add try-works/role-model --skill sandbox-2026-deprecation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install try-works/role-model sandbox-2026-deprecation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/try-works/role-model.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sandbox-2026-deprecation .claude/skills/sandbox-2026-deprecation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sandbox-2026-deprecation
GitHub stars
118
Token cost
~747 tokens
SKILL.md length
267 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).

  • Works in 9 steps: Update @cloudflare/sandbox and the… → Search the codebase for deprecated… → Switch every sandbox to RPC transport… → …
  • Tasks that involve Realtime and WebSockets
  • SKILL.md covers Migration checklist, API replacements and Notes for agents
  • Calls rg

What it does

Sandbox 2026 Deprecation is an agent skill from try-works/role-model. Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Realtime and WebSockets. It works with Cloudflare. The repository describes itself as: role-model is a protocol for assigning the right model for the right job. Use local and cloud AI together, or route between several cloud providers.

When your agent uses it

  • Tasks that involve Realtime and WebSockets

Example prompts

  • “/sandbox-2026-deprecation”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Update @cloudflare/sandbox and the sandbox container image before changing runtime configuration.
  2. Search the codebase for deprecated configuration and APIs
  3. Switch every sandbox to RPC transport with SANDBOX_TRANSPORT=rpc or getSandbox(..., { transport: "rpc" }).
  4. Replace Sandbox SDK desktop APIs with Cloudflare Browser Run where browser automation is required.
  5. Replace exposePort() with sandbox.tunnels.get(). Use quick tunnels for development and named tunnels for stable production hostnames.
  6. Set enableDefaultSession: false on getSandbox().
  7. Replace workflows that depend on persisted shell state with explicit sessions from sandbox.createSession().
  8. Move stream-specific file and command logic to the base readFile(), writeFile(), and exec() APIs where streaming behavior is supported.
  9. Deploy the Worker and smoke-test command execution, file operations, public URLs, and stateful session workflows.

What it can do on your machine

Read from SKILL.md and the folder at commit 96e209d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.cloudflare.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sandbox 2026 Deprecation loads about 747 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 267 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~747

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 267 words (~747 tokens).

“Use this skill when migrating a codebase that depends on the Cloudflare Sandbox SDK away from features deprecated in June 2026.”

— opening of SKILL.md by try-works, Custom licence
name
sandbox-2026-deprecation

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/sandbox-2026-deprecation of try-works/role-model.

Open the folder on GitHubat commit 96e209d

Compare with similar skills

Sandbox 2026 Deprecation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sandbox 2026 Deprecation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sandbox 2026 Deprecation this skilltry-works/role-model118—~747Automated safety check: PassCustom licence
Durable Objectshodgef/apiker1274 repos~1.5kAutomated safety check: PassMIT
Nitro Server Toolkitantfu/skills6k—~948Automated safety check: PassMIT
Building AI Agent On CloudflareCommandCodeAI/agent-skills133—~2.3kAutomated safety check: PassMIT
Agents SDKhodgef/apiker1273 repos~3kAutomated safety check: PassMIT
Cloudflare WorkersEpicenterHQ/epicenter4.8k—~576Automated safety check: PassCustom licence

Similar skills

  • Durable Objects

    hodgef/apiker

    Create and review Cloudflare Durable Objects. An agent skill from hodgef/apiker.

    127 GitHub starsUsed in 4 repos~1.5k tokens
    Backend & APIsAuto-check passed
  • Reference for Nitro v3, the server toolkit behind Nuxt: file routing, route rules, caching, storage, tasks, websockets and deployment presets.

    6k GitHub stars~948 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Building AI Agent On Cloudflare

    CommandCodeAI/agent-skills

    Builds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities.

    133 GitHub stars~2.3k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Agents SDK

    hodgef/apiker

    Build AI agents on Cloudflare Workers using the Agents SDK. An agent skill from hodgef/apiker.

    127 GitHub starsUsed in 3 repos~3k tokens
    Backend & APIsAuto-check passed
  • Cloudflare Workers

    EpicenterHQ/epicenter

    Cloudflare Workers patterns for Worker runtime APIs, Durable Objects, KV, R2, D1, Queues, WebSockets, streaming responses, bindings, wrangler configuration, and deployment limits.

    4.8k GitHub stars~576 tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Hono

    EpicenterHQ/epicenter

    Hono patterns for TypeScript API routes, middleware, request and response typing, streaming, WebSockets, and Cloudflare Workers deployment.

    4.8k GitHub stars~513 tokensUpdated 3 days ago
    Backend & APIsAuto-check passed

More from try-works/role-model

All 19 skills in this repo
  • E2E Testing Patterns

    try-works/role-model

    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment.

    117 GitHub starsUsed in 14 repos~990 tokens
    Auto-check passed
  • UI Design System

    try-works/role-model

    React UI component systems with TailwindCSS + Radix + shadcn/ui.

    117 GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Swiss Design

    try-works/role-model

    Apply a Swiss International Style design system using Tailwind CSS.

    117 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Contributing

    try-works/role-model

    A skill your agent uses when contributing to the Cloudflare Docs repository — writing or editing documentation pages, choosing content types or components, adding changelog entries, reviewing docs…

    117 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Effect V3 To V4

    try-works/role-model

    A skill your agent uses when migrating a codebase from Effect v3 to Effect v4, upgrading effect or any @effect/ package across the v3/v4 boundary.

    117 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Turnstile Spin

    try-works/role-model

    Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and…

    117 GitHub stars~3.8k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Sandbox 2026 Deprecation

What does Sandbox 2026 Deprecation do?

Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs). Sandbox 2026 Deprecation is an agent skill from try-works/role-model. Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).

When should I use Sandbox 2026 Deprecation?

Sandbox 2026 Deprecation fits situations like: tasks that involve Realtime and WebSockets.

How do I install Sandbox 2026 Deprecation in Claude Code?

Run `npx skills add try-works/role-model --skill sandbox-2026-deprecation -a claude-code`. Or copy the skill folder (.agents/skills/sandbox-2026-deprecation in try-works/role-model) into .claude/skills/sandbox-2026-deprecation in your project. Claude Code loads it when a task matches its description.

How do I install Sandbox 2026 Deprecation in Codex?

Run `npx skills add try-works/role-model --skill sandbox-2026-deprecation -a codex`. Or copy the skill folder (.agents/skills/sandbox-2026-deprecation in try-works/role-model) into .agents/skills/sandbox-2026-deprecation in your project. Codex loads it when a task matches its description.

Can I use Sandbox 2026 Deprecation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add try-works/role-model --skill sandbox-2026-deprecation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sandbox-2026-deprecation, .gemini/skills/sandbox-2026-deprecation, .github/skills/sandbox-2026-deprecation and .opencode/skills/sandbox-2026-deprecation in your project.

What does Sandbox 2026 Deprecation need to run?

Going by SKILL.md and its folder, Sandbox 2026 Deprecation needs the command-line tools its instructions call (rg).

Does Sandbox 2026 Deprecation access the network?

SKILL.md names 1 domain. As links in the text: developers.cloudflare.com. This is read from the text; nothing was executed.

Is Sandbox 2026 Deprecation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sandbox 2026 Deprecation use?

Sandbox 2026 Deprecation has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Sandbox 2026 Deprecation use?

About 747 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sandbox 2026 Deprecation?

Skills that share tags, products or a category with Sandbox 2026 Deprecation: Durable Objects (hodgef/apiker, 127 stars), Nitro Server Toolkit (antfu/skills, 6k stars), Building AI Agent On Cloudflare (CommandCodeAI/agent-skills, 133 stars) and Agents SDK (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sandbox 2026 Deprecation?

try-works (a GitHub user) maintains it in try-works/role-model, which has 118 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 10, 2026.

Source: try-works/role-model on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.