AI-powered multi-repo architecture discovery platform
Quick Start β’ What Is It β’ How It Works β’ Ecosystem β’ Contributing
π¦ Previously
loki-bedlam/repo-swarm. Moved to the RepoSwarm organization. Old URLs redirect automatically.
Install the CLI and bootstrap everything in one shot:
curl -fsSL https://raw.githubusercontent.com/reposwarm/reposwarm-cli/main/install.sh | shThen:
reposwarm new --local # Bootstrap everything: Temporal, API, Worker, UI
reposwarm doctor # Full health check
reposwarm repos add my-app --url https://github.com/org/my-app
reposwarm investigate my-app # Run your first investigation
reposwarm dashboard # Watch it workThat's it. The CLI handles setup, configuration, investigation, diagnostics, and results β all from a single binary.
π Full CLI docs: reposwarm-cli
RepoSwarm automatically analyzes your entire codebase portfolio and generates standardized architecture documentation. Point it at your GitHub repos (or CodeCommit, GitLab, Azure DevOps, Bitbucket) and get back clean, structured .arch.md files β perfect as AI agent context, onboarding docs, or architecture reviews.
- π AI-Powered Analysis β Uses Claude to deeply understand codebases
- π Standardized Output β Generates consistent
.arch.mdarchitecture files - π Incremental Updates β Only re-analyzes repos with new commits
- πΎ Smart Caching β DynamoDB or file-based caching avoids redundant work
- π― Type-Aware Prompts β Specialized analysis for backend, frontend, mobile, infra, and libraries
- π¦ Results Hub β All architecture docs committed to a centralized repository
- π Multi-Provider β Anthropic API, Amazon Bedrock, or LiteLLM proxy
- π Multi-Git β GitHub, GitLab, CodeCommit, Azure DevOps, Bitbucket
Check out RepoSwarm's self-analysis β RepoSwarm investigating its own codebase!
π¬ Architecture Overview (click to play)
graph TB
A[Your Repositories] -->|New commits detected| B[RepoSwarm Engine]
B -->|Temporal Workflow| C[Clone & Analyze]
C -->|Claude AI Analysis| D[Generate .arch.md]
D -->|Cache in DynamoDB| E[Store Results]
E -->|Auto-commit| F[Results Hub Repository]
F -->|Query with AI| G[Reports & Insights]
style A fill:#e1f5fe,color:#000
style B fill:#fff3e0,color:#000
style F fill:#f3e5f5,color:#000
style G fill:#e8f5e8,color:#000
Pipeline: Cache check β Clone β Type detection β Structure analysis β Prompt selection β AI analysis β Store results β Cleanup
reposwarm repos add my-app --url https://github.com/org/my-app
reposwarm investigate my-app
reposwarm wf progress
reposwarm results read my-appreposwarm investigate --all --parallel 3
reposwarm dashboardreposwarm doctor # Full health check
reposwarm errors # Stalls + failures
reposwarm wf retry <workflow-id> # Re-run a failed investigationreposwarm results search "authentication"
reposwarm results diff repo-a repo-b
reposwarm results export --all -d ./docsπ Full command reference: reposwarm-cli README
reposwarm config provider setup # Interactive (Anthropic, Bedrock, LiteLLM)reposwarm config git setup # Interactive (GitHub, GitLab, CodeCommit, Azure, Bitbucket)reposwarm repos add my-backend --url https://github.com/org/my-backend
reposwarm repos add my-frontend --url https://github.com/org/my-frontend
reposwarm repos discover # Auto-discover from CodeCommitOr edit prompts/repos.json directly:
{
"repositories": {
"my-backend": {
"url": "https://github.com/org/my-backend",
"type": "backend",
"description": "Main API service"
}
}
}| Type | Focus | Prompts |
|---|---|---|
| π§ Backend | APIs, databases, services | prompts/backend/ |
| π¨ Frontend | Components, routing, state | prompts/frontend/ |
| π± Mobile | UI, device features, offline | prompts/mobile/ |
| π Libraries | API surface, internals | prompts/libraries/ |
| βοΈ Infrastructure | Resources, deployments | prompts/infra-as-code/ |
| π Shared | Security, auth, monitoring | prompts/shared/ |
| Project | Description | Install |
|---|---|---|
| β¨οΈ reposwarm-cli | CLI β setup, investigate, diagnose, results | curl -fsSL .../install.sh | sh |
| π reposwarm-api | REST API server for repos, workflows, prompts | Managed by CLI |
| π reposwarm-ui | Next.js dashboard for browsing investigations | Managed by CLI |
| π€ reposwarm (this repo) | Core engine β Temporal workflows + analysis | Managed by CLI |
| π sample-results-hub | Example output β generated .arch.md files |
β |
reposwarm/
βββ prompts/ # AI analysis prompts by repo type
β βββ backend/ # API, database, service prompts
β βββ frontend/ # UI, component, routing prompts
β βββ mobile/ # Mobile app specific prompts
β βββ libraries/ # Library/API prompts
β βββ infra-as-code/ # Infrastructure prompts
β βββ shared/ # Cross-cutting concerns
β βββ repos.json # Repository configuration
βββ src/
β βββ investigator/ # Core analysis engine
β β βββ core/ # Main analysis logic
β βββ workflows/ # Temporal workflow definitions
β βββ activities/ # Temporal activity implementations
β βββ models/ # Data models and schemas
β βββ utils/ # Storage adapters and utilities
βββ tests/ # Unit and integration tests
βββ temp/ # Generated .arch.md files (local dev)
RepoSwarm was born out of a hackathon at Verbit, built by:
- Fork the repository
- Create a feature branch
- Make changes and add tests
- Submit a pull request
This project is licensed under the Apache License 2.0.


