Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

reposwarm/reposwarm-old

Β 
Β 

Repository files navigation

πŸ€– RepoSwarm

RepoSwarm - Multi-Repo Architecture Discovery

AI-powered multi-repo architecture discovery platform

License Python 3.12+ YouTube Demo

Quick Start β€’ What Is It β€’ How It Works β€’ Ecosystem β€’ Contributing

πŸ“¦ Previously loki-bedlam/repo-swarm. Moved to the RepoSwarm organization. Old URLs redirect automatically.


Quick Start

Install the CLI and bootstrap everything in one shot:

curl -fsSL https://raw.githubusercontent.com/reposwarm/reposwarm-cli/main/install.sh | sh

Then:

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 work

That's it. The CLI handles setup, configuration, investigation, diagnostics, and results β€” all from a single binary.

πŸ‘‰ Full CLI docs: reposwarm-cli


What is RepoSwarm?

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.

RepoSwarm Agents

✨ Key Features

  • πŸ” AI-Powered Analysis β€” Uses Claude to deeply understand codebases
  • πŸ“ Standardized Output β€” Generates consistent .arch.md architecture 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

πŸ“‹ See It In Action

Check out RepoSwarm's self-analysis β€” RepoSwarm investigating its own codebase!

🎬 Architecture Overview (click to play)

β–Ά Watch on YouTube


How It Works

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
Loading

Pipeline: Cache check β†’ Clone β†’ Type detection β†’ Structure analysis β†’ Prompt selection β†’ AI analysis β†’ Store results β†’ Cleanup


Common Workflows

Run an Investigation

reposwarm repos add my-app --url https://github.com/org/my-app
reposwarm investigate my-app
reposwarm wf progress
reposwarm results read my-app

Investigate All Repos in Parallel

reposwarm investigate --all --parallel 3
reposwarm dashboard

Diagnose Issues

reposwarm doctor                       # Full health check
reposwarm errors                       # Stalls + failures
reposwarm wf retry <workflow-id>       # Re-run a failed investigation

Search Across All Architecture Docs

reposwarm results search "authentication"
reposwarm results diff repo-a repo-b
reposwarm results export --all -d ./docs

πŸ‘‰ Full command reference: reposwarm-cli README


Configuration

LLM Provider

reposwarm config provider setup        # Interactive (Anthropic, Bedrock, LiteLLM)

Git Provider

reposwarm config git setup             # Interactive (GitHub, GitLab, CodeCommit, Azure, Bitbucket)

Adding Repositories

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 CodeCommit

Or edit prompts/repos.json directly:

{
  "repositories": {
    "my-backend": {
      "url": "https://github.com/org/my-backend",
      "type": "backend",
      "description": "Main API service"
    }
  }
}

Analysis Prompt Types

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/

Ecosystem

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 β€”

Project Structure

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)

Credits

RepoSwarm was born out of a hackathon at Verbit, built by:


Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes and add tests
  4. Submit a pull request

License

This project is licensed under the Apache License 2.0.

About

RepoSwarm is an AI powered multi-repo architecture discovery platform that generates its output in a specialized output repository that you can use for agent context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 93.2%
  • Shell 6.4%
  • Dockerfile 0.4%