agentleFS
LangChainKnown publisherlangchain-ai/open-swe/mda/skills/sandbox-images/SKILL.md

sandbox-images

Skill11k starsChanged 37 days agoMITView on GitHub

How Robin's global sandbox image, execution defaults, setup/update scripts, and build logs work. Read when someone asks about sandbox images, snapshots, provisioning, refreshes, or commands failing to find preinstalled tools, whether or not this is an admin thread.

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 13 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 1 mentionOct 2026: 3 mentionsNov 2026: 42 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the langchain-ai/open-swe repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about langchain-ai/open-swe

The biggest 5 of 73 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 73

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (73 times).

On GitHub · 50

45 more on GitHub

On YouTube · 9

4 more on YouTube

On Bluesky · 9

4 more on Bluesky

On Hacker News · 4

On the web · 1

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not infer an existing sandbox's contents from today's saved defaults.

    line 13
  2. Distinctive:

    Only authorized admins can change shared execution configuration or images.

    line 15
  3. Distinctive:

    If the asker is not an admin, explain what an admin needs to do.

    line 17
  4. Distinctive:

    Never publish an image or delete images without the corresponding explicit request.

    line 18
  5. Very specific:

    Read read_execution_defaults() first on a private admin surface and preserve omitted settings.

    line 22
  6. Very specific:

    Use paths appropriate to the command user, retain required system paths, and supply a complete literal value: $PATH, $HOME, and ~ are not …

    line 59
  7. Distinctive:

    Read existing provider, mount, federation, proxy, and run configuration privately before editing.

    line 60
  8. Distinctive:

    Before publishing, check tool lookup and versions from a separate execute call, with no inline exports or activation, in the repository …

    line 64
  9. Distinctive:

    If new creation settings need verification, a disposable sandbox also requires appropriate authorization.

    line 65
  10. Distinctive:

    Check representative repository tools and commit hooks, not just installation exit codes.

    line 66
  11. Distinctive:

    If installed, use the documented PATH or tool-manager context rather than reinstalling or bypassing hooks.

    line 69
  12. Distinctive:

    When present, a nightly full build runs it on a throwaway builder and publishes only after success.

    line 75
  13. Very specific:

    Write non-interactive, repeatable scripts starting with set -euo pipefail.

    line 77
  14. Distinctive:

    Use background-task completion rather than a polling loop.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 images and defaults

Robin has one global execution configuration and image. Admins manage shared configuration under Defaults (/settings) and repository/Slack bindings under Integrations (/admin/integrations). Preloading a repository is neither an access grant nor an integration binding. The stored immutable snapshot ID determines what a new sandbox boots from. An image capture does not replace a running thread's sandbox. Do not infer an existing sandbox's contents from today's saved defaults.

Only authorized admins can change shared execution configuration or images. Private diagnostics require a private dashboard admin thread or authenticated Slack DM; supported shared writes require a verified sole-writer thread and return acknowledgements only. If the asker is not an admin, explain what an admin needs to do; do not try the tools. Never publish an image or delete images without the corresponding explicit request.

Configure, build, or publish

Read read_execution_defaults() first on a private admin surface and preserve omitted settings. configure_execution_defaults saves instructions, preloads, snapshot IDs, resources, scripts, and provider/proxy configuration; saving is not a build. The Defaults page has no build or update buttons; use the authorized image tools.

  • read_execution_image() reads the current image and private refresh diagnostics
  • rebuild_execution_image(kind="full") queues a reproducible build from the configured base using the setup script
  • rebuild_execution_image(kind="update") queues an update from the current image using the update script
  • publish_execution_image() queues capture of this thread's current sandbox, without taking an arbitrary sandbox ID or changing routing, and never stops the source sandbox
  • snapshotctl(action="status") and snapshotctl(action="history") read private diagnostics and recent image actions; snapshotctl(action="stop") stops the current build

An image-... task ID means queued work, not completed publication. Inspect or stop it with background_task. A failed script/capture, changed build definition, or lost queue claim leaves the previous good image in place.

For manual provisioning, build and verify with ordinary file and shell tools in the current sandbox before publishing it. Confirm the intended shared instructions, configuration, and publication with the user first: global publication changes everyone's future sandbox creation. Everything on the filesystem is captured; leave no tokens, credentials, or proxy secrets on disk.

Installed tools must work in later commands

A successful provisioning command does not prove a usable image. Snapshots keep files, not the shell process that installed them: an export PATH=... in a script or one execute call does not carry into the next call. Commands are non-interactive; do not rely on .bashrc or a login shell to activate tools.

For durable command defaults, preserve and update the image configuration's create_params.run_config.env_vars. For example, an image that runs as root with mise and Rust under /root can use:

{
  "run_config": {
    "env_vars": {
      "PATH": "/root/.local/bin:/root/.cargo/bin:/root/.local/share/mise/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    }
  }
}

Use paths appropriate to the command user, retain required system paths, and supply a complete literal value: $PATH, $HOME, and ~ are not shell-expanded in this JSON. Read existing provider, mount, federation, proxy, and run configuration privately before editing; do not replace it with an empty object or store credentials in it. Creation settings apply to new sandboxes, not existing ones. An existing thread keeps its sandbox; a new thread picks them up.

Before publishing, check tool lookup and versions from a separate execute call, with no inline exports or activation, in the repository where they will run. If new creation settings need verification, a disposable sandbox also requires appropriate authorization; exporting the same PATH in the build command does not test them. Check representative repository tools and commit hooks, not just installation exit codes.

For a missing tool, inspect PATH, repository configuration, and documented installation locations first. If installed, use the documented PATH or tool-manager context rather than reinstalling or bypassing hooks. Genuinely missing dependencies still follow repository setup and approval rules.

Scripts and refreshes

setup_script describes the whole reproducible build from the configured base snapshot, not a delta on a parent image. When present, a nightly full build runs it on a throwaway builder and publishes only after success. With no setup script, there is no nightly full build; saving configuration still does not provision anything. Write non-interactive, repeatable scripts starting with set -euo pipefail. Clone preloads listed in ROBIN_REPOS under /workspace/<repo>; install required tools, dependencies, and caches without writing secrets to disk. OPENSWE_REPOS and OPENSWE_WORKSPACE_REPOS remain aliases for already-stored scripts; use ROBIN_REPOS in new scripts.

update_script is optional, typically a fast Git/dependency sync. It runs after a full build, and stale new boots can trigger an hourly update refresh from the current image. Boot-triggered background refresh failures are logged without interrupting the run; its sandbox keeps the captured image. New boots use the capture timestamp matching their pinned image, not a newer image's timestamp. Refreshes do not retrofit existing sandboxes or grant repository permissions.

Builds run on throwaway builders, not the thread's sandbox; manual publication captures the requested source without stopping it. Status reports the reached stage, such as boot, setup, update, or capture, and script output. Use background-task completion rather than a polling loop. On failure, inspect the script, exit code, and output; fix the saved configuration and request a new build. Logs and scripts under /open-swe/environment/logs/ (setup.log, update.log) are captured into images.

A thread keeps its sandbox

Nothing replaces a thread's sandbox. For a fresh sandbox from the current global image and creation settings, start a new thread.

Snapshot names

Names identify images, not source sandboxes. Publications and refreshes move a latest tag, but new runs resolve the stored immutable snapshot ID. Configure snapshot_name without a colon; do not paste :latest into that field or treat the tag as proof of the exact stored snapshot ID.

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.