open-swe
AGENTS.md11k starsChanged 2 months agoMITView on GitHub
Open SWE is an asynchronous coding agent and software factory. Each thread uses an isolated sandbox. A separate read-only reviewer graph reviews pull requests, and a review-style analyzer learns repository-specific review preferences. ui, desktop, and tests/e2e form a pnpm/turbo workspace (pnpm-workspace.yaml). Use pnpm for them. Follow docs/DEVELOPMENT.md for local startup, tunnel configuration, and preserving LangGraph state across worktrees. langgraph.json: The FastAPI app is agent.webapp:app. agent/dashboard/routes.py only aggregates routers under /dashboard/api: each feature package (agent/threads/, agent/review/, agent/workspaces/, agent/schedules/, agent/skill_store/, agent/mcp/, agent/slack/,…
Trending
More talk lately.about the whole repository
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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- agent/middleware/AGENTS.mdAGENTS.md
- agent/sandboxes/AGENTS.mdAGENTS.md
- agent/tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- baby-sitSkill
- html-artifactsSkill
- linear-ticketsSkill
- workspacesSkill
- bootstrap-repo-analysisSkill
- continual-learningSkill
- writing-pr-body-title-descriptionSkill
- local-gh-devSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Follow docs/DEVELOPMENT.md for local startup, tunnel configuration, and preserving LangGraph state across worktrees.
- Very specific: line 34
Use async-only implementations.
- Distinctive: line 36
Use absolute imports across packages.
- Distinctive: line 38
Keep comments minimal and only explain non-obvious reasons.
- Very specific: line 41
Create database migrations with make migration m="Short description".
- Very specific: line 42
Use structured logging with a static message and values in extra.
- Very specific: line 45
Never discard an error. Every except either propagates (re-raise, or raise a more useful error) or logs what it swallowed — a bare except …
- Distinctive: line 49
Never run the full test suite locally.
- Distinctive: line 53
Prefer extending one existing behavioral test over adding a new test file, fixture framework, or mock-heavy harness.
- Distinctive: line 54
Do not add tests for documentation, prompt wording, constants, mappings, source structure, trivial getters/setters, or behavior already …
- Distinctive: line 56
Do not enumerate speculative edge cases or duplicate the same behavior across layers.
- Distinctive: line 58
Before submitting, prune redundant or low-signal tests introduced by the change.
- Distinctive: line 64
Do not include test-running or validation sections in descriptions.
- Distinctive: line 72
Treat source code and tests as authoritative.
- Distinctive: line 73
Prefer the narrowest quiet validation that proves the changed behavior.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.
Files
AGENTS.md
Project
Open SWE is an asynchronous coding agent and software factory.
Each thread uses an isolated sandbox. A separate read-only reviewer graph reviews pull requests, and a review-style analyzer learns repository-specific review preferences.
ui, desktop, and tests/e2e form a pnpm/turbo workspace (pnpm-workspace.yaml). Use pnpm for them.
Local Development
Follow docs/DEVELOPMENT.md for local startup, tunnel configuration, and preserving LangGraph state across worktrees.
Architecture
langgraph.json:
| Graph | Entrypoint | Implementation |
agent | agent.graphs.agent:traced_agent | agent/server.py |
reviewer | agent.graphs.reviewer:traced_reviewer_agent | agent/reviewer.py |
analyzer | agent.graphs.analyzer:traced_analyzer | agent/analyzer.py |
review-scout | agent.graphs.review_scout:traced_review_scout | agent/review_scout/graph.py |
chat | agent.graphs.chat:traced_chat_agent | agent/chat.py |
scheduler | agent.graphs.scheduler:get_scheduler | agent/scheduler.py |
The FastAPI app is agent.webapp:app. agent/dashboard/routes.py only aggregates routers under /dashboard/api: each feature package (agent/threads/, agent/review/, agent/workspaces/, agent/schedules/, agent/skill_store/, agent/mcp/, agent/slack/, agent/analytics/, agent/incidents/, agent/github/, agent/bridge/) exposes its own router, and agent/dashboard/ keeps auth, session, and per-user/team settings. New endpoints go in the package that owns the feature, never in routes.py.
The main agent is assembled in agent/server.py from the middleware in agent/middleware/, with tools from agent/tools/ and sandboxes from agent/sandboxes/.
Conventions
- Use async-only implementations. Add a sync method only when an interface requires it, and then raise
NotImplementedError. - Use strong types everywhere, in both Python and TypeScript. Prefer precise types, type aliases, TypedDicts/dataclasses/Pydantic models (Python) or interfaces/
satisfies(TypeScript), and Literal/enum types over loose ones. Never useAny(Python) orany(TypeScript) — strongly discouraged even when it would be convenient; if a value's shape is dynamic, type it with a union, a generic, a protocol, orobject/unknownplus narrowing instead. Widening a parameter or return type toAny/anyis not acceptable to silence a type error. Expanding the scope of a PR to add or fix types is worth it. - Use absolute imports across packages; same-package imports may start with one dot. Never use parent-relative imports.
- Keep model-facing prompts (system prompts, tool descriptions, agent wake-up prompts) in Markdown files under
agent/resources/prompts/and render them withprompt("<dir>/<name>"), which uses<name>.md.jinja(Jinja for variables and conditional sections) when it exists and otherwise loads static<name>.mdwithout substitutions; never inline prompt text in Python. This applies to instructions sent to the model, not ordinary user-facing copy: UI labels, Slack button/modal text, and Slack or GitHub notifications may remain inline. - Keep comments minimal and only explain non-obvious reasons.
- For Slack interactions, prefer @mentions with plain-language requests and buttons for explicit actions. Keep typed commands, including slash commands, as optional shortcuts; never make them the only way to perform an action.
- Make user-initiated UI mutations optimistic by default: update the visible state immediately, roll it back on failure, and show an error toast. Use a non-optimistic flow when an immediate update would be unsafe or misleading.
- Create database migrations with
make migration m="Short description". - Use structured logging with a static message and values in
extra; never interpolate values into log messages. Avoid standardLogRecordfield names inextra. - Prefer making API write operations exposed through UI controls available as appropriately authorized agent tools, but treat this as a guideline, not a requirement. Destructive or sensitive UI actions may remain human-only. Prefer reversible operations and existing sandbox CLIs, such as the authenticated
gh, over adding tools. - A person's concierge DM thread must know everything that happens in their DM with the bot. Anything Open SWE posts into that DM outside the concierge thread's own run (approval cards, notifications, messages from other threads or schedules), and every button the person clicks there, must reach the concierge thread's context. Never add a DM post or DM button without that.
- Never discard an error. Every
excepteither propagates (re-raise, or raise a more useful error) or logs what it swallowed — a bareexcept ...: return None/passhides the failure from everyone debugging it later.
Testing
Never run the full test suite locally; run only tests related to the change.
Tests are maintenance cost, not a deliverable quota. Default to no new tests unless you can name a concrete, plausible behavioral regression that existing coverage would miss. A code change alone is not justification for a test.
- Prefer extending one existing behavioral test over adding a new test file, fixture framework, or mock-heavy harness. Add the smallest deterministic test that catches the identified failure.
- Do not add tests for documentation, prompt wording, constants, mappings, source structure, trivial getters/setters, or behavior already guaranteed by types or a library. Test a meaningful observable outcome, not that the implementation matches itself.
- Reject change-detector tests, snapshots of incidental details, internal call-order assertions, and mocks that merely prove the mocked calls happened. Refactors that preserve behavior should not require mechanical test updates; rewrite or remove tests that do.
- Do not enumerate speculative edge cases or duplicate the same behavior across layers. Each case must protect a distinct, credible failure with real user impact; security, authorization, data integrity, and tricky state transitions are worth targeted coverage.
- For bug fixes, prefer a focused regression test that fails before the fix and passes after it when it adds missing behavioral coverage. Do not build elaborate scaffolding solely to test a tiny change.
- Before submitting, prune redundant or low-signal tests introduced by the change. It is correct to ship no new tests when existing coverage or a focused manual check is sufficient.
Pull Requests
Titles are linted as Conventional Commits by .github/workflows/pr_lint.yml: <type>: <description>, or <type>(<scope>): <description> since the scope is optional. The type must be one of feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, release. The ignore-lint-pr-title label bypasses the check.
Do not include test-running or validation sections in descriptions.
<!-- OPENWIKI:START -->OpenWiki
This repository has a generated openwiki/ evidence index. It is optional just-in-time context, not required startup reading.
- Treat source code and tests as authoritative. A brief's unknowns and review items are verification gaps, not automatic requirements.
- Prefer the narrowest quiet validation that proves the changed behavior. Preserve complete failure output.
The scheduled OpenWiki GitHub Actions workflow refreshes the repository wiki. Do not hand-edit generated OpenWiki pages unless explicitly asked; prefer updating source code/docs and letting OpenWiki regenerate.
<!-- OPENWIKI:END -->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.

