Overview
Modern development often involves multiple repositories—microservices, frontend/backend splits, shared libraries, and more. Blocks understands this architecture and can:- Search and analyze code across all your repositories
- Make changes to multiple repos in a single session
- Create coordinated PRs across repositories
- Answer questions about cross-repo interactions
- Generate status reports spanning multiple projects
How It Works
Blocks automatically identifies which repositories are relevant to your request based on:- Workspace Configuration: Repositories connected to your workspace
- Context: The platform where you make the request (GitHub, Slack, Linear)
- Explicit Mentions: Repository names or paths you specify
- Request Analysis: Understanding which repos are needed for your task
Example Use Cases
Cross-Repo Search
Search for code patterns, functions, or configurations across all your repositories:- Search through all connected repositories
- Identify matching files and lines
- Provide links to each location
- Summarize the findings
Multi-Repo Changes
Make coordinated changes across multiple repositories:- Modify files in multiple repositories
- Create separate PRs for each repo
- Ensure consistency across changes
- Link the PRs for easy tracking
Status Reports
Get comprehensive status reports across your entire project:- Analyze all relevant repositories
- Compile information from each
- Provide an organized summary
- Include links to PRs and commits
Architecture Analysis
Understand how your multi-repo architecture works:- Analyze code in frontend, API, and service repos
- Trace the data flow across boundaries
- Explain interactions between services
- Identify integration points
Consistency Checking
Verify consistency across repositories:- Analyze patterns in each repository
- Identify inconsistencies
- Suggest improvements
- Recommend a unified approach
Viewing Connected Repositories
To see which repositories Blocks can access:- Open Blocks Dashboard
- Go to Settings → Integrations → GitHub → View Repositories
- View the list of connected repositories
Best Practices
Be Explicit When Needed
While Blocks is smart about finding relevant repos, you can be explicit:Organize Repository Access
For team workspaces:- Add only the repositories your team actively uses
- Remove archived or deprecated repos to reduce noise
- Use clear repository naming conventions
- Document which repos serve which purposes
Use Multi-Repo for Migrations
Multi-repo support is excellent for coordinated migrations:Leverage Cross-Repo Analysis
Take advantage of Blocks’ ability to see the big picture:Create Coordinated PRs
When making related changes across repos:Advanced Multi-Repo Workflows
Workflow 1: API Contract Changes
When updating an API that multiple services depend on:- Update the API schema
- Modify client code in both apps
- Add backward compatibility handling
- Create PRs for all three repos
- Link them with explanatory descriptions
Workflow 2: Shared Library Updates
When updating a shared library used across repos:- Identify all repositories using the library
- Find all usage locations
- Update code to match new API
- Test compilation/linting
- Create PRs for each affected repo
Workflow 3: Security Audits
For security reviews across your entire codebase:- Scan all connected repositories
- Identify potential issues in each
- Categorize by severity
- Provide fix recommendations
- Create issues or PRs as needed
Repository Context in Different Platforms
In GitHub
When you mention@blocks in a GitHub issue or PR:
- Blocks has access to the current repository by default
- You can reference other connected repos explicitly
- Blocks can create PRs in any accessible repo
In Slack
When you mention@blocks in Slack:
- Blocks has access to all connected repos
- You can specify which repos to focus on
- Ideal for cross-repo questions and status updates
In Linear
When you mention@blocks in a Linear issue:
- Blocks has access to all connected repos
- The Linear issue can link to multiple repos
- Blocks can create PRs and reference them in the issue
Limitations and Considerations
Permission Requirements
- Blocks can only access repositories you’ve explicitly granted access to
- In organization workspaces, permissions are managed at the workspace level
- Private repositories require appropriate GitHub App installation
Performance
- Very large operations across many repos may take longer
- Blocks processes repositories intelligently to optimize speed
- Complex cross-repo analyses benefit from specific scoping
Coordination
- When creating multiple PRs, review them together for consistency
- Use Plan Mode for complex multi-repo changes
- Link related PRs in descriptions for easy tracking
Troubleshooting
Blocks Can't Access a Repository
Blocks Can't Access a Repository
Solution: Grant Blocks access to the repository
- Go to Dashboard → Settings → Integrations → GitHub
- Click “Configure” to add more repositories
- Select the repository and approve permissions
Blocks Searches Wrong Repositories
Blocks Searches Wrong Repositories
Solution: Be explicit about which repos to search
Multi-Repo Operation Too Slow
Multi-Repo Operation Too Slow
Solution: Narrow the scope
- Specify which repositories to work with
- Break large operations into smaller chunks
- Use more specific queries to reduce search space

