Open-SWE Autonomous Software Engineering Agent & Sandbox Architecture

Open-SWE Autonomous Software Engineering Agent & Sandbox Architecture An architecture diagram generated by Archify. GitHub Webhook · Issue / Bug Report · Architecture component · Issue Ingress GitHub Webhook Issue / Bug Report Issue Ingress SWE Server · FastAPI Orchestrator · Open-SWE Control Plane · server.py SWE Server FastAPI Orchestrator server.py Codebase Analyzer · AST Symbol Indexer · Open-SWE Control Plane · analyzer.py Codebase Analyzer AST Symbol Indexer analyzer.py SWE ReAct Loop · Tool Calling Agent · Open-SWE Control Plane · SWE Reasoner SWE ReAct Loop Tool Calling Agent SWE Reasoner Task Supervisor · baby_sit.py Watcher · Open-SWE Control Plane · Timeout Guard Task Supervisor baby_sit.py Watcher Timeout Guard Docker Sandbox · Hardened Container · Hardened Sandbox Boundary · Isolated Linux Docker Sandbox Hardened Container Isolated Linux Patch Reviewer · Diff & Regression Gate · Open-SWE Control Plane · reviewer.py Patch Reviewer Diff & Regression Gate reviewer.py Pseudo-TTY Stream · Live stdout/stderr · Hardened Sandbox Boundary · Terminal IO Pseudo-TTY Stream Live stdout/stderr Terminal IO GitHub Pull Request · Verified Solution · Architecture component · PR Output GitHub Pull Request Verified Solution PR Output Mounted Workspace · Read-Write Repo · Hardened Sandbox Boundary · /workspace Mounted Workspace Read-Write Repo /workspace ingest index AST start loop monitor poll logs exec tools submit diff create PR modify files Open-SWE Control Plane Hardened Sandbox Boundary Legend Backend Database Cloud Security External

Autonomous SWE ReAct Loop

  • • Iteratively decomposes bug reports, authors reproduction tests, and applies source edits
  • • Executes all commands within isolated Docker container sandboxes

Codebase AST Symbol Indexing

  • • Extracts symbol definitions, import graphs, and test discovery mappings
  • • Provides precise surgical context to LLM reasoning prompts

Automated Pull Request Review

  • • Evaluates candidate git diffs against style rules, test suites, and regression checks
  • • Dispatches pull requests only when all verification criteria pass