← Open Source
langchain-ai

open-swe

An Open-Source Asynchronous Coding Agent

ApplicationsCodingPython
Open on GitHub
Momentum
+6stars in 24 hours+0.1%
10.8k
Stars
1.30k
Forks
+31
This week
62
Contributors
Created 2025-05-21 · Updated 2026-10-05 · #1293 today
Top developers
README

Open SWE Logo

An open-source software factory built on Deep Agents by LangChain.

License GitHub Stars Built on Deep Agents Powered by LangGraph Twitter / X

Open SWE turns engineering work into a repeatable system: investigate a codebase, implement changes, validate them, and deliver a pull request. It also reviews pull requests, learns repository-specific review preferences, monitors CI, and responds to feedback. Built by LangChain, it is open source and deployable in your infrastructure.

[!NOTE] Under active development. Expect breaking changes and rough edges. We’re not accepting issues or external contributions at this time. You’re welcome to explore and fork the code, but correctness, stability, and compatibility are not guaranteed.

Getting started

  • Deploy for a team — Set up the backend, dashboard, GitHub and Slack apps, and model credentials. Production standalone Agent Server deployments require a license key.
  • Develop locally — Follow the ordered setup for dependencies, credentials, the database, hot reload, and a webhook-only tunnel.
  • Desktop (experimental) — Work against local repositories. Packaged app releases target macOS; source builds also support Windows and Linux.
  • Use the CLI — Connect a local directory to an agent on your deployment. Commands execute locally as you, without sandbox isolation.

What Open SWE does

flowchart LR
    A[Issues, conversations, PRs, schedules] --> B[Plan and investigate]
    B --> C[Implement in an isolated sandbox]
    C --> D[Validate and deliver a PR]
    D --> E[Review, CI, and feedback]
    E -->|Follow-up work| B
  • Build: Investigate repositories, edit code, run focused validation, and open or update pull requests.
  • Parallelize: Use subagents for research and independent work.
  • Review: Run on-demand or opt-in automatic reviews, publish findings to GitHub, and learn from historical feedback.
  • Investigate: Use read-only PR chat to understand a change without implementing changes.
  • Operate: Schedule recurring tasks and monitor opted-in PRs with /baby-sit, diagnosing failures and rerunning only evidence-backed flaky jobs.
  • Customize: Choose models, reasoning effort, instructions, skills, integrations, and sandbox providers.

Start and continue work from the dashboard, GitHub issues and PR conversations, or Slack. Linear supports issue-comment triggers and replies through a configured Linear MCP connection. Cloud coding follow-ups reuse the thread’s context and sandbox; independent threads can run in parallel.

How it works

Deep Agents supplies planning, filesystem, shell, skills, and subagent primitives. LangGraph provides durable execution and thread state. Open SWE adds engineering tools, integrations, authorization, and user interfaces. The graph entrypoints are declared in langgraph.json, with an architecture inventory.

Cloud coding runs in persistent, per-thread Linux sandboxes with tooling supplied by workspace scripts or snapshots. An unreachable coding sandbox is not silently replaced. LangSmith is the default sandbox and tracing provider; other providers and local execution are configurable. PR chat does not need a sandbox.

Control and safety

  • GitHub access: Coding sandboxes normally receive installation-wide GitHub App access; selected workflows use narrower repository scopes. Workspace repository bindings control routing and preloaded checkouts, not a separate credential boundary. See GitHub access.
  • Integrations: MCP connections layer instance-wide, workspace-specific, and personal tools. Configure their scope and credentials in the customization guide.
  • Approvals: Workflow-file approval prompts guard detected Git pushes, not every possible shell or API write. Reviewers are instructed not to commit or push; PR chat excludes mutation tools.

Sandboxes have powerful tools and may have network access. Use least-privilege credentials, restrict repositories and integrations, and tailor approval policies to your deployment. Local execution does not provide cloud sandbox isolation.

Documentation

License

Open SWE is licensed under the MIT License.