workspaces
Skill11k starsChanged 2 months agoMITView on GitHub
How an Open SWE workspace's sandbox image works and how to change it — create one, edit or fork an existing one, start from scratch, what setup_script and update_script are for, why a nightly refresh failed, where the build logs are, and how to read a rebuild in progress. Read this whenever someone asks about workspaces, snapshots, sandbox images, or a refresh, whether or not this is an admin thread.
3 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- wyattjoh/skillstheir own version, first seen Sep 27, 2026
- MosoFin/mosofin-mcp-plugintheir own version, first seen Sep 8, 2026
- coder/skillstheir own version, first seen May 10, 2026
Who's talking about langchain-ai/open-swe
- @alexiskirke.bsky.social“I stumbled upon this excellent GitHub project about building safe, automated coding agents for internal …”Bluesky · Mar 21, 2026 · 6 likes
- copilot-coding-agent/user-feedback“Support for go mod operations against private repositories”GitHub · Sep 4, 2025 · 5 reactions
- A Hacker News story“An Open-Source Asynchronous Coding Agent”Hacker News · Aug 6, 2025 · 5 points
- @ai-nerd.bsky.social“Stripe, Coinbase, and Ramp all built internal coding agents independently and converged on the same …”Bluesky · Mar 19, 2026 · 3 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 langchain-ai / open-swe ⭐ 5,813 (+454) 🗒 Python An Open-Source …”Bluesky · Mar 19, 2026 · 3 likes
The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 48
Talked about on GitHub, Bluesky and Hacker News (48 times).
On GitHub · 35
- Sep 4, 2025Support for go mod operations against private repositories — copilot-coding-agent/user-feedback5 reactions · 2 comments
- Mar 21, 2026feat: Support plugin system in opencli — jackwener/OpenCLI1 reaction · 1 comment
- Mar 19, 2026chore(vendor): add open-swe submodule — pleaseai/agent-please1 reaction · 3 comments
- Mar 18, 2026Implement all development tasks required by ADR for SWE agent integration — abuxton/pheromone1 reaction
- Mar 18, 2026review SWE as ADR for integration — abuxton/pheromone1 reaction
30 more on GitHub
- Oct 12, 2025Integrate open swe — wafflestudio/retrochat1 reaction
- Oct 6, 2026agent-skills.github.langchain-ai.open-swe: 0.2.13 → 0.3.0 — sudosubin/agents.nix0 reactions
- Oct 5, 2026fix(core): expose branded class type for provider declarations — langchain-ai/langchainjs0 reactions · 2 comments
- Oct 3, 2026agent-skills.github.langchain-ai.open-swe: 0.2.11 → 0.2.13 — sudosubin/agents.nix0 reactions
- Oct 3, 2026ci: allow deps-dev scope in PR titles — langchain-ai/langchainjs0 reactions · 1 comment
- Sep 29, 2026agent-skills.github.langchain-ai.open-swe: init at 0.2.11 — sudosubin/agents.nix0 reactions
- Sep 25, 2026chore(infra): drop held mcp-adapters 2.0 changeset to unblock main releases — langchain-ai/langchainjs0 reactions · 1 comment
- Sep 24, 2026wiki: bulk update 2026-09-24 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 24, 2026wiki: bulk update 2026-09-24 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 22, 2026feat(openai,anthropic): update provider sdks, add new model compat — langchain-ai/langchainjs0 reactions · 2 comments
- Sep 22, 2026wiki: bulk update 2026-09-22 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 18, 2026ci: link generated openwiki pull request — langchain-ai/openwiki0 reactions · 1 comment
- Sep 11, 2026model routing spike — langchain-ai/deepagents0 reactions · 2 comments
- Sep 4, 2026feat: add automated Open SWE Desktop cask updates — langchain-ai/homebrew-tap0 reactions
- Jul 27, 2026OpenSwe research — vikramsg/dotfiles0 reactions · 5 comments
- Jul 12, 2026Create wiki-open-swe-template for sandboxed coding agents with semantic Wiki validation — wazootech/wiki-templates0 reactions
- Jun 3, 2026[Add] Open SWE (langchain-ai/open-swe) — PyTorchKR/landscape0 reactions
- Mar 21, 2026🤖 AI 트렌드 리포트 - 2026-03-21 13:26 KST — leaf468/autothreads0 reactions
- Mar 21, 2026📱 SNS 콘텐츠 - 2026-03-21 13:26 KST — leaf468/autothreads0 reactions
- Mar 20, 2026📱 SNS 콘텐츠 - 2026-03-20 23:42 KST — leaf468/autothreads0 reactions
- Mar 20, 2026🤖 AI 트렌드 리포트 - 2026-03-20 23:42 KST — leaf468/autothreads0 reactions
- Mar 20, 2026📱 SNS 콘텐츠 - 2026-03-20 15:57 KST — leaf468/autothreads0 reactions
- Mar 20, 2026🤖 AI 트렌드 리포트 - 2026-03-20 15:57 KST — leaf468/autothreads0 reactions
- Mar 20, 2026📈 Bản tin xu hướng AI mã nguồn mở 2026-03-20 — compasify/agents-radar0 reactions
- Mar 18, 2026https://github.com/langchain-ai/open-swe/pull/1073 — yuvarajcloud/sep-ansible0 reactions
- Mar 18, 2026📱 SNS 콘텐츠 - 2026-03-18 22:15 KST — leaf468/autothreads0 reactions
- Mar 18, 2026🤖 AI 트렌드 리포트 - 2026-03-18 22:15 KST — leaf468/autothreads0 reactions
- Aug 16, 2025Convert project to Maestro — ahmedmayestro77/test0 reactions
- Aug 14, 2025[Suggestion] Temporal + Claude Code sample — temporal-community/code-exchange0 reactions
- Aug 10, 2025Design Negotiation Skills Training App Architecture — MaciejReimann/negotiator0 reactions · 1 comment
On Bluesky · 9
- Mar 21, 2026I stumbled upon this excellent GitHub project about building safe, automated coding agents for internal tools - with sandboxing,… — @alexiskirke.bsky.social6 likes and reposts · 3 replies
- Mar 19, 2026Stripe, Coinbase, and Ramp all built internal coding agents independently and converged on the same architecture, LangChain packaged those… — @ai-nerd.bsky.social3 likes and reposts
- Mar 19, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 langchain-ai / open-swe ⭐ 5,813 (+454) 🗒 Python An Open-Source Asynchronous Coding Agent — @github-trending.bsky.social3 likes and reposts · 1 reply
- Mar 20, 2026https://github.com/langchain-ai/open-swe — @tom-doerr.bsky.social2 likes and reposts
- Mar 21, 2026Anybody played with open-swe yet ? github.com/langchain-ai... — @0xmeow.bsky.social1 likes and repost
4 more on Bluesky
- Mar 20, 2026今日のGitHubトレンド langchain-ai/open-swe 組織内のコーディングエージェントを構築するためのオープンソースフレームワークです。 SlackbotやCLIなど、社内システムと連携し、安全な環境で自動的にPR作成を行うエージェントを構築できます。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 18, 2026今日のGitHubトレンド langchain-ai/open-swe 組織内のコーディングエージェントを構築するためのオープンソースフレームワークです。 SlackbotやCLIなど、社内システムと連携し、安全な環境で自動的にPR作成を行うエージェントを構築できます。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 11, 2025GitHub CopilotはAIがコードを提案してくれるツールらしい。コーディングのスピードアップに役立つかもしれない。 yug1224 starred langchain-ai/open-swe https://github.com/langchain-ai/open-swe — @yug1224.com1 likes and repost
- Aug 11, 2025ほう。LangChainから。 — @matsuu.bsky.social1 likes and repost
On Hacker News · 4
- Aug 6, 2025An Open-Source Asynchronous Coding Agent5 points
- Aug 7, 2025OpenSWE: Open Source Devin alternative2 points
- Mar 18, 2026OpenSWE1 point
- May 29, 2025Open SWE is an open-source cloud based coding agent1 point
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- coder/skills★ 14same name
- MosoFin/mosofin-mcp-plugin★ 2same name
- wyattjoh/skills★ 2same 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 repository12 other files it gives its agents.
- agent/middleware/AGENTS.mdAGENTS.md
- agent/sandboxes/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- agent/tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- baby-sitSkill
- html-artifactsSkill
- linear-ticketsSkill
- bootstrap-repo-analysisSkill
- continual-learningSkill
- writing-pr-body-title-descriptionSkill
- local-gh-devSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
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
- Distinctive: line 19
Only workspace admins can change a workspace's image, from an admin thread or through supported writes in a verified sole-writer shared …
- Distinctive: line 65
In a run's own sandbox: when it boots from an image older than an hour, before the first model call, so the run works against fresh …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workspaces
A workspace prefers repositories and owns Slack channels, MCP connections, and
team settings, plus the sandbox image its runs boot from. Preferring a
repository routes its GitHub and Linear events here and preloads it into the
image; it does not limit access, since every workspace's sandbox can reach
every repository the GitHub App installation can. That image is two
things: a record (name, prompt, repos, sizing, optional scripts) and a
published sandbox image, <prefix>-environment-<slug>:latest. Runs
routed to a workspace boot from its image and get its prompt appended to
their system prompt. The workspace named default is what a run uses when
routing picks no other.
Only workspace admins can change a workspace's image, from an admin thread or through supported writes in a verified sole-writer shared thread. Shared writes return only acknowledgements; workspace reads and switching to another workspace's image still require a private admin surface. Anyone can read workspaces on the Workspaces page. If the asker is not an admin, tell them what would need to happen and who can do it; do not try the tools.
The one rule: build here, publish from here
You do not write a workspace's image as a script and hope. You build it in
the current thread's own sandbox with ordinary tools — execute, the file
tools — and when it works you call publish_workspace. That captures this
sandbox as the image and writes the record only after the capture
succeeded. Nothing is half-written on failure, and the image is usable the
moment the call returns.
Everything on the sandbox filesystem is captured, so provision it fully and leave no tokens, credentials, or proxy secrets on disk.
Which image to start from
The image you publish is whatever you are sitting on plus your changes, so start the admin thread on the right one:
| You want to… | Start the admin thread… | Then |
| Edit a workspace's image | in that workspace (composer → Workspace picker) | change it, publish_workspace under the same name |
| Fork one into a new workspace | in the parent | change what differs, publish_workspace under a new name |
| Build from scratch | in no workspace, or recreate_sandbox(source="base") | provision everything, publish |
Already on a private admin surface and need a different image? recreate_sandbox(workspace=<slug>) with a slug from list_workspaces. The old sandbox is detached, not deleted.
setup_script — the reproducibility contract
Optional. It is not the build; you already did the build by hand. It is the record of how to reproduce the image from the base snapshot, and when present a nightly cron replays it on a throwaway sandbox and replaces the image only if it exits 0. Anything you did by hand that the script does not do therefore shows up as a failed refresh on the Workspaces page rather than as silent drift. refresh_workspace_start runs the same check on demand.
Two consequences:
- The script must describe the whole build from base, even for a fork. By hand you only did the delta on top of the parent; the nightly does not start from the parent.
- Leaving it off is allowed. The workspace then has no nightly check and keeps whatever image was last published.
Write it non-interactive and safe to re-run: start with set -euo pipefail; clone the preferred repos listed in OPENSWE_WORKSPACE_REPOS into /workspace/<repo>, where runs expect every checkout (runs clone any other repository on demand); install rg, gh, toolchains, dependencies; warm caches. Never write a secret to disk — the proxy injects git auth per run.
update_script — keeping a live image fresh
Optional; typically git pull plus a dependency sync. Keep it to seconds. It runs in three places:
- At the end of every full rebuild, so a broken one is caught on a builder.
- In a run's own sandbox when it boots from an image older than an hour, before the first model call, so the run works against fresh checkouts. Never fatal — a failure is logged and the run continues on the image as captured.
- As an hourly update refresh — boot from the current image, run it, capture — enqueued by that same creation, so later runs skip step 2.
Reading a refresh
A rebuild takes minutes to an hour and runs on a throwaway builder, not the thread's sandbox. refresh_workspace_start returns status: "started" and a task_id; it is not done. Read it with background_task("status", task_id), which reports the stage reached — boot, setup, update, capture — and, while a script is running, a tail of its live bash -x trace. Check in at intervals; do not poll in a loop.
When it fails: the stage that broke is marked failed with its exit code, error names the script, and output is the log. The previous image stays in place — runs never drop to the base snapshot because a script broke. Fix the script, publish_workspace with the new setup_script, and run the check again.
Logs are written under /open-swe/environment/logs/ (setup.log, update.log) with the scripts beside them, and are captured into the image — so any sandbox booted from a workspace's image can read how it was built.
Snapshot names
The name belongs to the workspace, not to whichever sandbox produced the image: every publish and every refresh moves the same latest tag. Runs boot from the immutable snapshot id on the record, so a capture mid-run cannot change what a reconnecting sandbox comes back to. Override the name with snapshot_name on publish; it must not contain a colon.
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
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.

