Open SWE
Open SWE

Open SWE

Open SWE is LangChain's MIT-licensed framework for internal asynchronous coding agents triggered from Slack, Linear, and GitHub. Built on LangGraph and Deep Agents, it supports pluggable cloud sandboxes, subagents, draft PRs, follow-up messages, and organization-specific middleware. This guide covers architecture, security, validation, costs, rollout, and alternatives.

176

Views

0

Likes

May 2026

Added

swe.langchain.com

Website

Tags

coding agentLangChainasync executionGitHub automationopen source

Product Preview

A quick visual look at Open SWE before you visit the official site.

Published 5/27/2026
Open SWE screenshot

Editorial Review

About Open SWE

Open SWE is an open-source framework for building an organization’s internal asynchronous coding agent. A developer can mention a bot in Slack, Linear or GitHub; the service assembles issue/thread context, creates a persistent cloud sandbox, clones a repository, plans and edits code, runs commands, commits to a branch and opens or updates a draft pull request.

It is not a hosted coding service that becomes safe after installation. Open SWE is a reference architecture built on LangGraph and Deep Agents. The operator must select models and sandbox providers, create GitHub/Slack/Linear applications, secure the deployment, scope repositories and tokens, add deterministic validation, control network access and own every resulting pull request.

Official Open SWE interface and asynchronous coding-agent workflow
Official Open SWE preview. The pull request is the review boundary, not proof of correctness; issue text, web pages, logs and repository files remain untrusted inputs to a highly capable process.

The end-to-end architecture

LayerPublished roleDecision the operator owns
InvocationSlack mention, Linear comment or GitHub PR commentWho can trigger which repositories and at what cost
ContextAGENTS.md plus full issue or thread historyWhich content is trusted, redacted or prompt-injection-prone
HarnessDeep Agents composed inside LangGraphModel, system prompt, tools, middleware and call limits
SandboxPersistent remote Linux environment per taskProvider, image, egress, lifetime, resources and data location
ToolsShell, files, HTTP, Slack, Linear, GitHub and optional observabilityLeast privilege, side-effect approvals and secret boundaries
OrchestrationSubagents and deterministic middleware hooksConcurrency, budget, shared state and error handling
DeliveryCommit, push, draft PR and source-channel replyCI, reviewers, merge policy and deployment separation

Sandboxing reduces host risk, not external authority

The repository says each task receives an isolated cloud sandbox with full shell permissions and no confirmation prompts, and supports Modal, Daytona, Runloop, E2B and LangSmith sandboxes. A separate sandbox limits filesystem and process conflicts, but the README’s phrase that the blast radius is “fully contained” should not be treated literally.

The agent can have network egress, repository authority, package-registry access and external APIs. It may exfiltrate source, burn model credits, open harmful pull requests, abuse a token or attack internal services reachable from the sandbox. A sandbox-provider control-plane compromise can also cross task boundaries. Containment requires egress policy, short-lived credentials, quotas, provider isolation and an independent merge/deploy gate.

RiskSandbox helpsRequired companion control
Destructive shell commandLimits local disk/process damage to disposable environmentNo production mounts; resource/time limits and clean teardown
Malicious dependencySeparates task from developer laptopLockfiles, registry allowlist, scanning and restricted egress
GitHub token misuseLittle if token permits external actionsProxy/scoped app token limited to repo and branch operations
Prompt injectionMay limit host compromiseTrust labels, tool policy and denial of sensitive systems
Bad codeAllows tests in an isolated runtimeDeterministic CI, security review and protected branches
Data leakageSeparates local workstation dataProvider/data review, redaction and outbound destination controls

Issue and chat text are untrusted instructions

Open SWE injects the full Linear issue or Slack thread into agent context. That improves task comprehension but creates a direct prompt-injection path: an external reporter or copied log can instruct the agent to reveal secrets, fetch a malicious URL or change unrelated code. AGENTS.md is more authoritative, yet it is also repository content that a compromised branch can modify.

Mark content by provenance and trust level. System policy, organization rules and approved repository configuration should outrank ticket descriptions, comments, logs, web pages and code strings. Do not let an untrusted contributor trigger a run with observability or internal-data tools. The current project explicitly limits optional Datadog/LangSmith tools to authorized users; preserve and test that boundary.

Tool curation and credentials

The default tool set includes shell execution, file operations, URL fetch, arbitrary HTTP requests, Linear search/comments and Slack reactions/replies. GitHub operations can be proxied so the sandbox sees a dummy token while the server performs authorized requests. Optional Datadog, LangSmith and Corridor tools run server-side, keeping those credentials out of the sandbox.

Tool groupMinimum permissionHigh-risk misuse
GitHubRead code; push one task branch; open/update draft PRChanging protections, secrets, releases or other branches
Slack/LinearRead triggering thread/issue and reply thereSearching confidential discussions or mass messaging
HTTP/fetchAllowlisted public documentation where possibleSSRF, metadata access, exfiltration and hostile page instructions
ObservabilityRead-only, scoped services and authorized usersLeaking customer data or secrets embedded in logs/traces
ShellFull control only inside resource-limited sandboxFork bombs, cryptomining, network scanning or persistence
SubagentsSame or narrower authority than parentMultiplying cost, conflicts and tool calls

Validation is the biggest default gap

The README describes validation as prompt-driven: the agent is instructed to run linters, formatters and tests before committing. Instructions are not enforcement. An agent can skip expensive tests, misread output, weaken a test, mock away behavior or claim success after a timeout. The project itself recommends adding deterministic CI, visual verification or review gates.

Move acceptance outside the model loop. The service should not mark a task successful until required commands execute in a fresh environment and return expected machine-readable results. The agent must not edit the workflow that determines its own pass state unless that workflow change is separately reviewed.

GateIndependent evidenceFailure policy
ScopeChanged paths compared with issue allowlistBlock PR update or request human exception
Build/typecheckFresh checkout command and exit codeAttach logs and mark incomplete
TestsRequired suites plus changed-test reviewNo retry loop that silently edits expectations
SecurityDependency, secret and static-analysis scannersQuarantine finding; never auto-dismiss
VisualScreenshot comparison at defined routes/viewportsHuman approval for meaningful diffs
ReviewabilityDiff size, summary, risk and rollback fieldsSplit oversized or mixed-concern changes

Persistent threads need lifecycle rules

Follow-up Slack/Linear messages route to the same deterministic thread and persistent sandbox. This preserves context but can also preserve compromised state, stale branches, downloaded secrets and runaway processes. Define maximum lifetime, idle timeout, disk quota and a “recreate from clean template” path. A reopened ticket weeks later should not silently resume an old unpatched environment.

Middleware injects queued messages before the next model call. Record which message changed the task, who sent it and whether scope expanded. If a follow-up requests a new repository, external system or production action, create a new authorization decision instead of treating it as ordinary conversational context.

Subagents: useful parallelism with nonlinear cost

Deep Agents can spawn child agents with their own middleware, todo lists and file operations. Use them only for independent read-heavy work such as locating tests, comparing APIs or reviewing a bounded diff. Multiple writers in one branch can overwrite assumptions and create a larger, less coherent change.

  • Set a maximum child count, model-call limit, token budget and wall-clock deadline.
  • Assign non-overlapping files or require one parent to serialize edits.
  • Keep child permissions no broader than the parent.
  • Make every child return evidence and uncertainty, not only prose conclusions.
  • Charge all child activity to the originating task for cost measurement.

Deployment and dependency choices

Open SWE requires more than installing a Python package: backend, dashboard, LangGraph/LangSmith services, GitHub App/OAuth, invocation integrations, sandbox provider, model credentials and production hosting. The code is MIT licensed, but cloud sandboxes, models, observability and messaging platforms have separate pricing and data terms.

Pin the Open SWE commit and all dependency locks. Store application secrets in a managed secret system, rotate webhook secrets, validate signatures and reject replayed events. Separate development and production installations. A public webhook plus a powerful GitHub App is an attractive target.

Task selection

TaskSuitabilityReason
Mechanical API migrationGood pilotClear patterns, bounded files and deterministic tests
Add missing unit testsGood with reviewUseful research, but tests can encode wrong behavior
Dependency updateConditionalNeeds changelog, security and compatibility review
Ambiguous product featurePoor initial fitRequirements and UX judgment dominate coding
Authentication redesignHigh riskSecurity architecture requires accountable expertise
Production incidentPoor autonomous fitTime pressure and live authority magnify mistakes

Measure accepted engineering work

Track task acceptance rate, reviewer minutes, CI pass on first independent run, reopened defects, security findings, sandbox minutes, model tokens and total cost per merged PR. Compare with a human baseline at similar task complexity. PR count and lines changed are output volume, not productivity.

Maintain a no-agent control group and a synchronous-agent group. Asynchronous agents may reduce interruption while increasing review batches. The useful question is whether lead time and accepted quality improve without transferring hidden workload to reviewers and platform engineers.

Alternatives

OptionBest fitTradeoff versus Open SWE
Open SWETeams building a customizable internal async-agent platformSignificant integration, security and operational ownership
Codex / Claude CodeSynchronous developer-supervised terminal workLess background workflow orchestration
GitHub Copilot coding agentGitHub-native managed issue-to-PR flowLess framework-level customization and different hosting model
DevinManaged autonomous coding workspaceCommercial hosted platform and less internal control
OpenHandsOpen-source coding-agent runtime and researchDifferent integration and orchestration focus
CI scripts/botsDeterministic migrations, formatting and updatesLess flexible reasoning, often safer and cheaper for known tasks

Frequently asked questions

Is Open SWE a hosted service?

It is an open-source framework. Operators deploy and configure it and purchase or run the required model, sandbox and integration services.

Which sandboxes are supported?

The current repository lists Modal, Daytona, Runloop, E2B and LangSmith, plus a customization path.

Does it support Slack, Linear and GitHub?

Yes. These are the primary documented invocation and follow-up surfaces.

Does a sandbox make full permissions safe?

No. It isolates local execution, but network, repository and external-account authority need separate controls.

Does it automatically verify code?

The default relies heavily on agent instructions to run checks. Teams should add deterministic external CI and review gates.

Is it open source?

Yes. The current repository is licensed under MIT.

Primary sources

Last reviewed July 25, 2026. Open SWE evolves quickly; pin the deployed revision and revalidate integrations, sandbox behavior, tools and security controls after upgrades.

Ready to try Open SWE?

Visit the official website to get started

Visit Open SWE

Quick Info

Added
5/28/2026
Published
5/27/2026
Updated
8/26/2026

Share This Tool

Have an AI tool to share?

Submit it to AI Dreamhub

Get your product in front of people actively exploring AI tools.

Submit Your Tool
Cursor

Cursor

Built to make you extraordinarily productive, Cursor is the best way to code with AI.

ai-codingfree
2810
GitHub Copilot

GitHub Copilot

GitHub Copilot is GitHub’s AI coding assistant across IDEs, GitHub.com, pull requests, CLI workflows, code review, and agentic development. It is best for developers and teams that want AI help inside existing repositories while keeping review, tests, and governance in the workflow.

GitHub CopilotAI coding assistantCopilot Chat
3100
Trae

Trae

Trae is your helpful coding partner. It offers features like AI Q&A, code auto-completion, and agent-based AI programming capabilities.

ai-codingfree
3720
MarsCode

MarsCode

MarsCode is an AI coding assistant and IDE-style development tool for code completion, explanation, debugging, and code generation. Current official metadata also points to Trae AI IDE, so the page should explain the product carefully instead of treating it as a static legacy listing.

MarsCodeTrae AI IDEAI coding assistant
6920