Intrect-io/OpenSwarm
Agentic CLI and CI gate with isolated fixes, re-review, and deterministic checks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
OpenSwarm has two entry points into its TypeScript orchestration stack: the standalone openswarm review gate for local diffs or CI, and an optional autonomous daemon. The daemon separates issue intent in Linear or the local tracker from execution state in ~/.openswarm/automation.db. Its AutonomousRunner polls on a heartbeat, the DecisionEngine selects runnable issues, and RunLedger claims them for available slots while recording leases, attempts, file scope, and outbox entries. PairPipeline then runs Worker → Reviewer → Tester → Documenter with task workers isolated in Git worktrees.
The Node.js package exposes the openswarm CLI and includes better-sqlite3, @linear/sdk, discord.js, and @modelcontextprotocol/sdk. Provider adapters bridge native agent loops and external CLIs such as Codex and claude -p. Adapter choice affects enforcement as well as inference: native loops withhold mutating, web, and MCP tools in read-only mode, while external CLIs rely on their corresponding permission or sandbox controls. An adapter without declared read-only enforcement is refused.
Key Capabilities & Differentiators
The gate reviews committed or working-tree diffs and can group confirmed findings, apply fixes in isolation, and re-review the result. The PR publishing flow requires deterministic verification. openswarm review --max fans review out across codebase areas, with --max-files-per-area controlling granularity. Autonomous pipelines compare failing checks against the merge base by default so existing failures do not automatically block unrelated changes. Checks can be discovered for Node, Python, Rust, and Go or configured in .openswarm/verify.yaml.
Provider options include Codex/GPT, OpenRouter, Claude Code, and local endpoints such as Ollama and LM Studio. The composite GitHub Action derives a PR diff from its base, accepts an explicit reviewer model, and reports the decision, whether the gate ran, and a SARIF file output. Exit 0 includes approve, revise, or an empty diff; exit 1 covers rejection and, in fix mode, unresolved findings or failed verification; exit 2 means no verdict was produced. The hybrid routing experiment resolved 3 of 3 attempted SWE-bench Lite instances that the lightweight models alone had failed. That small sample demonstrates the workflow, not a general success rate.
Trade-offs & Limitations
Compared with standalone Codex or Claude Code, OpenSwarm adds role separation, repeatable verification, and tracker-to-worktree scheduling. Compared with CI that only runs repository checks, it adds judgment about diffs and an optional repair loop, but it also introduces provider quotas, model-dependent verdicts, and more state to operate. Start with the standalone gate unless issue scheduling and recovery justify a daemon. Shadow its verdicts before making it a required check: the default exit-code mapping is non-rejection, not explicit approval.
Worktrees isolate edits, not credentials. Keep secrets out of sandbox.sharedPaths, and treat a privileged PR review job differently from a trusted-branch fix job. The read-only Action runs from a temporary directory rather than letting the reviewed checkout supply its configuration; pin the action to a trusted immutable ref and keep write permissions out of review-only jobs. Hosted inference moves model compute off the runner but brings cost and source-data handling considerations. Local inference shifts capacity planning to the operator, and worker concurrency still multiplies checkout, build, and test load.
Hardware & Deployment Guide
The CLI requires Node.js 22 or later and is distributed as @intrect/openswarm. For an initial trial, configure one provider and run openswarm review --path . --read-only; no daemon or tracker is needed. For autonomous operation, openswarm init writes config.yaml and .env, openswarm doctor checks native dependencies, providers, and ports, and openswarm start launches the daemon. A local model endpoint plus the SQLite tracker avoids mandatory hosted inference and tracker accounts, but the model server and build toolchain still need their own provisioning.
The Docker Compose definition builds the production Dockerfile target. Run only one daemon per state volume, pin OPENSWARM_IMAGE to an immutable commit tag, and configure a dashboard token if the published port must be reachable; without a token the dashboard binds to container-local loopback. Linux verification requires working bubblewrap support and fails closed without it. Release v0.24.1 added reviewer model selection in the Action, v0.24.2 made the reviewer's final no-tools turn request an explicit verdict, and v0.24.4 added durable verdict replay for matching review kind, base, and changed-path content digest.
RunLedger persists claims, leases, attempts, file scope, and outbox entries separately from issue intent.PairPipeline runs Worker → Reviewer → Tester → Documenter, with task workers isolated in Git worktrees.revise, not just approval.Teams that want a consistent review-and-repair workflow for local changes and pull requests, with repository checks before publication and optional issue-driven automation.
Native CI already meets your needs, you want every edit to remain interactive, or you cannot isolate build and test execution or approve the chosen model's handling of source code.
Quick Start & Installation
npm install -g @intrect/openswarm export OPENROUTER_API_KEY=… # or use an authenticated codex/claude/local provider openswarm review --path . --read-only # review the current diff without mutation openswarm review --max --fix --path . # fix confirmed findings, re-review, then verify
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| OpenSwarm ★ | 871 | — | TypeScript | MIT | Agentic CLI and CI gate with isolated fixes, re-review, and deterministic checks |
| Codewhale | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| opencode | 230.9k | +1.3k | TypeScript | MIT | Terminal-first coding agent with separate planning and editing modes |
| claude-code | 158k | +709 | TypeScript | — | A terminal coding agent for navigating codebases, running tasks, and handling Gi |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Intrect-io/OpenSwarm.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about OpenSwarm
Does the review gate need the daemon or Linear?
openswarm review --path . --read-only can run with a configured model provider and no daemon or tracker. The composite GitHub Action reviews against the PR base and exposes decision, gate-ran, and sarif-file. Use Linear or the local SQLite tracker only if you want the daemon to schedule work from issues.What hardware does a self-hosted installation need?
Can we self-host OpenSwarm for commercial use?
When is OpenSwarm preferable to native CI checks or a standalone coding CLI?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy