OpenSwarm
Autonomous AI agent orchestrator powered by Claude Code CLI
OpenSwarm orchestrates multiple Claude Code instances as autonomous agents. It picks up Linear issues, runs Worker/Reviewer pair pipelines to produce code changes, reports progress to Discord, and retains long-term memory via LanceDB vector embeddings.
Architecture
┌──────────────────────────┐ │ Linear API │ │ (issues, state, memory) │ └─────────────┬────────────┘ │ ┌─────────────────────┼─────────────────────┐ │ │ │ v v v ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │ AutonomousRunner │ │ DecisionEngine │ │ TaskScheduler │ │ (heartbeat loop) │─>│ (scope guard) │─>│ (queue + slots) │ └────────┬─────────┘ └──────────────────┘ └────────┬─────────┘ │ │ v v ┌──────────────────────────────────────────────────────────────┐ │ PairPipeline │ │ ┌────────┐ ┌──────────┐ ┌────────┐ ┌─────────────┐ │ │ │ Worker │──>│ Reviewer │──>│ Tester │──>│ Documenter │ │ │ │ (CLI) │<──│ (CLI) │ │ (CLI) │ │ (CLI) │ │ │ └────────┘ └──────────┘ └────────┘ └─────────────┘ │ │ ↕ StuckDetector │ └──────────────────────────────────────────────────────────────┘ │ │ │ v v v ┌──────────────┐ ┌──────────────────┐ ┌──────────────────┐ │ Discord Bot │ │ Memory (LanceDB │ │ Knowledge Graph │ │ (commands) │ │ + Xenova E5) │ │ (code analysis) │ └──────────────┘ └──────────────────┘ └──────────────────┘
Features
Autonomous Pipeline - Cron-driven heartbeat fetches Linear issues, runs Worker/Reviewer pair loops, and updates issue state automatically
- Cron-driven heartbeat fetches Linear issues, runs Worker/Reviewer pair loops, and updates issue state automatically Worker/Reviewer Pairs - Multi-iteration code generation with automated review, testing, and documentation stages
- Multi-iteration code generation with automated review, testing, and documentation stages Decision Engine - Scope validation, rate limiting, priority-based task selection, and workflow mapping
- Scope validation, rate limiting, priority-based task selection, and workflow mapping Cognitive Memory - LanceDB vector store with Xenova/multilingual-e5-base embeddings for long-term recall across sessions
... continue reading