agentleFS
The-BiomechanistThe-Biomechanist/Windows-Dev-Agent/skills/sandbox-run/SKILL.md

sandbox-run

Skill0 starsChanged 3 months agoMITView on GitHub

Route command execution through WSL, a project Dev Container, or Windows Sandbox when that boundary materially fits the task. Launching execution is host approval-gated.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. gaganjainse/shesh-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 repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not map arbitrary host folders writable into Windows Sandbox.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sandbox Run

Choose the boundary from the task's required property, not from whichever backend happens to be installed first.

Routing

Requirementisolation_requirementAuto routeBoundary
Linux-native compatibility or a low-risk Linux execution surfacelinux_compatibilityWSLInteroperable Linux environment; not hostile-code containment from the Windows host.
Reproduce the project's declared devcontainer environmentproject_reproducibilityDev ContainerRequires the devcontainer CLI and project devcontainer configuration.
Run an untrusted Windows artifact away from the hostuntrusted_windowsWindows SandboxDisposable Windows VM with networking and clipboard disabled; the selected workload must be staged explicitly.

environment: auto is legal only when isolation_requirement is supplied. For untrusted_windows, also supply one or more workspace-relative payload_paths; the runtime refuses an auto-routed hostile-workload plan that would launch a sandbox without the workload inside it.

Procedure

  1. Establish the property the boundary must provide. Do not silently substitute Linux compatibility for hostile-Windows containment.
  2. Inspect relevant backend availability with env_inspect when it is not already established. Treat null/unknown availability as unresolved rather than missing.
  3. For WSL or Dev Container work, use the active project as workspace_folder. WSL execution enters that Windows project directory through WSL's --cd boundary and uses sh -lc; a task requiring Bash-specific semantics should request Bash explicitly.
  4. For Windows Sandbox, identify exactly which project files/directories the isolated command needs and pass them as workspace-relative payload_paths. Every selected path component and every traversed child must remain an ordinary workspace path: symbolic links and NTFS reparse points such as junctions are rejected before traversal crosses them, and failure to establish that metadata blocks staging rather than being treated as safe. Overlapping selections are rejected, and staged input is limited to 10,000 filesystem entries and 1 GiB total file bytes. Write the inner command relative to the staged payload root (C:\WDAShare\payload).
  5. Call sandbox_run with execute: false and inspect the selected route, payload list, and launch plan. Planning must not create the temporary bundle or launch the workload. In Codex, a trusted PermissionRequest hook may auto-allow this plan-only request; without trusted hooks, the host may prompt for the plan.
  6. To launch, call the same reviewed tool with execute: true. The active host decides whether that exact call proceeds; do not invent a second approval token.
  7. For WSL and Dev Container runs, use captured return code/stdout/stderr only for what they establish. For Windows Sandbox, report only that the interactive sandbox launched; the inner command remains unknown until an observation from inside the sandbox establishes its outcome.
  8. An executed Windows Sandbox launch returns cleanup_path. Remove the temporary bundle only after the sandbox no longer needs it. If staging or process launch fails before the Sandbox starts, the runtime removes the partial bundle itself.

Safety and scope

  • Sandbox execution is approval-required even when the inner command looks harmless.
  • WSL interoperability is not a substitute for Windows Sandbox containment.
  • Hyper-V is not an implemented sandbox_run backend.
  • Do not map arbitrary host folders writable into Windows Sandbox. Only the generated staging bundle is mapped, read-only.
  • Isolation establishes a boundary, not semantic correctness. Verify the task result separately.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.