Overview
Blocks can work across multiple repositories in a single request, enabling you to coordinate changes, analyze dependencies, and understand how different parts of your system interact. This is especially valuable for microservices architectures and polyrepo setups.How It Works
When you mention multiple repositories in a request, Blocks will:- Identify Repositories: Determine which repos are relevant to your request
- Access Multiple Codebases: Simultaneously examine code across repositories
- Understand Relationships: Map dependencies and interactions between services
- Coordinate Changes: Make changes across repos while maintaining consistency
- Create Multiple PRs: Generate pull requests for each affected repository
Using Multiple Repo Support
Cross-Repo Analysis
Understand how systems work together:Cross-Repo Changes
Make coordinated updates:Dependency Management
Work with shared libraries:Cross-Repo Investigation
Debug issues that span services:Specifying Repositories
Implicit References
Blocks can infer repositories from context:Explicit References
Specify repositories directly:Workspace Configuration
Configure your workspace to define logical groupings of repositories for easier reference. Learn more about Workspaces.Common Multi-Repo Scenarios
Microservices Architecture
Coordinate changes across services:Monorepo vs Polyrepo
Blocks works with both:- Monorepos: Access different packages and modules within a single repo
- Polyrepos: Coordinate across separate repositories
Shared Libraries
Manage packages used by multiple projects:Best Practices
- Be Explicit: When needed, clearly specify which repositories to work with
- Understand Dependencies: Know how your repos relate before making cross-repo changes
- Test Thoroughly: Cross-repo changes require careful testing across all affected services
- Coordinate PRs: Review all related PRs together to ensure consistency
- Document Relationships: Keep architecture diagrams updated as services evolve
Creating Coordinated PRs
When Blocks makes changes across multiple repos, it will:- Create a separate PR for each repository
- Link related PRs together in descriptions
- Provide a summary of all changes
- Suggest a merge order if dependencies exist
Integration Setup
Multiple Repo Support works automatically once you’ve connected your repositories through the GitHub integration.Learn More
- GitHub Integration - Connect your repositories
- Workspaces - Organize and group repositories
- Plan Mode - Plan multi-repo changes
- Available Agents - Choose agents for different tasks

